The problem I have is that the query returns true all the time even if the string from the request is empty! It doesn't filter the results.
I can see that I can index the data in solr using the bundle, however the problem I have is that it returns all the results even if the string is empty "". What am I doing wrong.
By the way, I like the extension and thank you for the efforts, please excuse me as I am newbie to solr.
I have the following code:
$query->addSearchTerm('title_s', $searchfor); $query->addField('title_s'); $query->addField('id'); $query->addField('content_s'); //$query->addSearchTerm('content_s', $searchfor);
$results = $query->getResult();
The problem I have is that the query returns true all the time even if the string from the request is empty! It doesn't filter the results.
I can see that I can index the data in solr using the bundle, however the problem I have is that it returns all the results even if the string is empty "". What am I doing wrong.
By the way, I like the extension and thank you for the efforts, please excuse me as I am newbie to solr.