solr的索引和查询顺序
拜读了solr的部分源码,却急于弄明白solr的索引顺序和查询顺序,如下是探访结果.
所有的配置都在solr/example/solr/conf/schema.xml当中.
?
??? 大致的索引顺序会是:
1.空格..............................solr.WhitespaceTokenizerFactory
??? 2同义词............................solr.SynonymFilterFactory
??? 3过滤词...........................solr.StopFilterFactory
??? 4拆字..............................solr.WordDelimiterFilterFactory
??? 5小写过滤.....................solr.LowerCaseFilterFactory
??? 6关键字.........................solr.KeywordMarkerFilterFactory
??? 7词干抽取算法............solr.PorterStemFilterFactory
?
大致的搜素顺序是:
?
1.空格..............................solr.WhitespaceTokenizerFactory
??? 2同义词............................solr.SynonymFilterFactory
??? 3过滤词...........................solr.StopFilterFactory
??? 4拆字..............................solr.WordDelimiterFilterFactory
??? 5小写过滤.....................solr.LowerCaseFilterFactory
??? 6关键字.........................solr.KeywordMarkerFilterFactory
??? 7英文相近词..................solr.EnglishMinimalStemFilterFactory
??? 8去除重复词.................solr.RemoveDuplicatesTokenFilterFactory
?
??? 当然了,你可以根据自己的权重来重新分配索引和搜素顺序
?