[英]solr - searching part of words
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 * text_en定义为solr随附的原始schema.xml
Now, my field has the following vaues 现在,我的领域有以下几点
searching for "one" returns only the field "one". 搜索“一个”仅返回字段“一个”。 What causes it?
是什么原因造成的? how can I change it?
我该如何更改?
If you want to match the words from an alphanumeric indexed term, you may want to check for the WordDelimiterFilterFactory . 如果要匹配字母数字索引词中的单词,则可能需要检查WordDelimiterFilterFactory 。
WordDelimiterFilterFactory allows splitOnNumerics which would allow One1
to be divided into One
and 1
tokens and hence matching the Searched term One
. WordDelimiterFilterFactory允许splitOnNumerics,这将允许将
One1
分为One
和1
令牌,从而匹配搜索到的术语One
。
You can always preserveOriginal
to match One1 as well. 您始终可以
preserveOriginal
Original以匹配One1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.