Search code examples
selectsolrsolr6

Select query for search with 2 or more words without double quotes against more than one field in solr


Please refer My previous question .

With respect to the this answer for my question, I could do with one filed.

I Could not able to do with multiple fields.

http://$solr_host:8983/solr/magazines/select&q=sport+education&df=title&q.op=OR - this is working for one field. How can I do it for multiple field.

What is the right way to achieve my objective. Thank you in advance.


Solution

  • Use Dismax/eDismax with qf (Query Fields) Parameter.

    example:

    http://$solr_host:8983/solr/magazines/select&q=sport+education&defType=edismax&qf=title name&q.op=OR
    

    Check this here