We upgraded from Solr 3.6 to Solr 4.0. Unfortunately the behaviour of how to retrieve a document from the index by a unique key has apparently changed.
In Solr 3.6 the following query retrieves a single document:
key:conf/socc/AscottS09
But when using Solr 4.0 with the same document collection (re-indexed) an empty result list is returned. It seems that Solr 4.0 is processing/analyzing the term conf/socc/AscottS09 even though it is of type solr.StrField. The query works as expected in Solr 4.0 when the term in enclosed in quotation marks:
key:"conf/socc/AscottS09"
schema.xml:
...
<fieldType name="string" class="solr.StrField" sortMissingLast="true" mitNorms="true"/>
...
<field name="key" type="string" indexed="true" stored="true" multiValued="false" required="true"/>
...
Is this a bug or have there been any changes on how Solr processes the string field?
EDIT: I haven't found any related information in the migration infos of Solr 4.0