Reputation: 18551
My field is defined as
<field name="PackageName" type="text_en" indexed="true" stored="true" required="true"/>
*text_en is defined as in the original schema.xml that comes with solr
Now, my field has the following vaues
searching for "one" returns only the field "one". What causes it? how can I change it?
Upvotes: 1
Views: 54
Reputation: 52799
If you want to match the words from an alphanumeric indexed term, you may want to check for the WordDelimiterFilterFactory.
WordDelimiterFilterFactory allows splitOnNumerics which would allow One1
to be divided into One
and 1
tokens and hence matching the Searched term One
.
You can always preserveOriginal
to match One1 as well.
Upvotes: 1