Did you blindly switch to the new solrconfig.xml? If so, the default query
request handler sets the "df" parameter to "text", which would give you
different results compared to having the "<defaultSearchField>" set to some
other field, like your "ID" field.
Read the comments in the new schema.xml about <defaultSearchField> being
deprecated in favor of the "df" parameter.
-- Jack Krupansky
-----Original Message-----
From: shashi.rsb
Sent: Wednesday, July 23, 2014 5:51 AM
To: solr-user@lucene.apache.org
Subject: solr 3.6 to 4.7 upgrade has changed the query string
Hi,
Our backend application queries solr to retrieve certain records.
We were initially on 3.6 version and now upgrade to 4.7 solr version.
something has changed in terms of query string which needs a parentheses for
the below query
both the queries are from 4.7 solr.
returns 1 record
http://solr-dev.ss.com/solr/hotel/select/?q=ID:AFLGWBDAB OR AFLGWBGIB OR
FLGWGNDG
returns 14 records as expected.
http://solr-dev.ss.com/solr/hotel/select/?q=ID:(AFLGWBDAB OR AFLGWBGIB OR
FLGWGNDG)
If you notice I had to add parentheses to get expected records.
Also I cannot change the application code now as the release process to the
application will go beyond 1 month. Is there a workaround within solrconfig
to not use parentheses in 4.7
Thanks
Shashi
--
View this message in context:
http://lucene.472066.n3.nabble.com/solr-3-6-to-4-7-upgrade-has-changed-the-query-string-tp4148719.html
Sent from the Solr - User mailing list archive at Nabble.com.