Search configuration

Hi All,

I am using the cod e below to enable Search on the home page
2023-12-11_22-04-56

By default " the operator for query expressions" is OR, i would like to change to AND by input type=“hidden” name=“q.op” value=“AND”, but it does not work.

I am very appreciate for any help

Thanks
John

You can’t set the operator from the search form because it isn’t exposed as a URL parameter to the search page. You have to do it:

  • either globally from solrconfig.xml
  • or from the Main.SolrSearchMacros page (look for bindValue calls)

Hope this helps,
Marius

Let me try

Thank for your help
John