wangwengwu 发表于 2016-12-15 10:10:42

solr 分词 后 结果

  http://lucene.apache.org/solr/tutorial.html

Analysis Debugging
写道
There is a handy analysisdebugging page where you can see how a text value is broken down into words, and shows the resulting tokens after they pass through each filter in the chain.
   
这个功能可以很方便的看到在经过多个过滤器后切词后我们得到的分词情况

http://localhost:8983/solr/admin/analysis.jsp?name=name&val=Canon+PowerShot+SD500

本地启动的solr 分析Canon PowerShot SD500后分词的结果为
Index Analyzer
CanonPowerShotSD500CanonPowerShotSD500CanonPowerShotSD500PowerShotcanonpowershotsd500powershotcanonpowershotsd500powershotcanonpowershotsd500powershot 写道
Selecting verbose output will show more details, such as the name of each analyzer component in the chain, token positions, and the start and end positions of the token in the original text.

Selecting highlight matches when both index and query values are provided will take the resulting terms from the query value and highlight all matches in the index value analysis.
  verbose output更多分词细节描述
  highlight matches
  在 http://localhost:8983/solr/admin/analysis.jsp 页面输入 Field value (Query)将同时得到 搜索结果,可高亮显示。
Index Analyzer
CanonPowerShotSD500CanonPowerShotSD500CanonPowerShotSD500PowerShotcanonpowershotsd500powershotcanonpowershotsd500powershotcanonpowershotsd500powershotQuery Analyzer
power-shotpower-shotpower-shotpowershotpowershotpowershotpowershot
页: [1]
查看完整版本: solr 分词 后 结果