Thomas Beckers created SOLR-4276:
------------------------------------
Summary: Handling of string field is broken
Key: SOLR-4276
URL: https://issues.apache.org/jira/browse/SOLR-4276
Project: Solr
Issue Type: Bug
Components: Schema and Analysis, search
Affects Versions: 4.0
Reporter: Thomas Beckers
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:
bq. 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:
bq. key:"conf/socc/AscottS09"
schema.xml:
{quote}
...
<fieldType name="string" class="solr.StrField" sortMissingLast="true"
mitNorms="true"/>
...
<field name="key" type="string" indexed="true" stored="true"
multiValued="false" required="true"/>
...
{quote}
Is this a bug or have there been any changes on how Solr processes the string
field?
see also:
http://stackoverflow.com/questions/13511969/solr-4-0-searching-in-string-field
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]