solr 分词 后 结果

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

Analysis Debugging

 

写道
There is a handy analysis debugging 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

Canon PowerShot SD500
Canon PowerShot SD500
Canon Power Shot SD 500
PowerShot
canon power shot sd 500
powershot
canon power shot sd 500
powershot
canon power shot sd 500
powershot

 

写道
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

Canon PowerShot SD500
Canon PowerShot SD500
Canon Power Shot SD 500
PowerShot
canon power shot sd 500
powershot
canon power shot sd 500
powershot
canon power shot sd 500
powershot

Query Analyzer

power-shot
power-shot
power-shot
power shot
power shot
power shot
power shot

你可能感兴趣的:(apache,html,jsp,Solr,Lucene)