We have two banks of Solr nodes with identical schemas.  The data I'm
searching for is in both banks.

One has defaultSearchField set to field1, the other has defaultSearchField
set to field2.

We need to support both user queries and facet queries that have no user
content.  For the latter, it appears I need to use q.alt=*:*, so I am
investigating also using q.alt for user content (e.g., q.alt=banana).

I run the following query:

q.alt=banana
&defType=dismax
&mm=1
&tie=0.1
&qf=field1+field2


On bank one, I get the expected results, but on bank two, I get 0 results.

I noticed (via debugQuery=true), that when I use q.alt, it resolves using
the defaultSearchField (e.g., field1:banana), not the value of the qf param. 
Therefore, I get different results.

If I switched to using q for user queries and q.alt for facet queries, I
would still get different results, because q would resolve against the
fields in the qf param, and q.alt would resolve against the default search
field.

Is there a way to override this behavior in order to get consistent results?

Thanks!






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Dismax-q-q-alt-and-defaultSearchField-tp2621061p2621061.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to