目前我正在研究 Solr 的最佳配置是什么,以适应我的应用程序范围。它涉及大量测试,我想知道是否可以显示 Solr 保存为索引的内容。即我想查看我的文档的标记化、词干化、小写等版本。Solr 有什么方法可以提供这些信息吗?
谢谢简
目前我正在研究 Solr 的最佳配置是什么,以适应我的应用程序范围。它涉及大量测试,我想知道是否可以显示 Solr 保存为索引的内容。即我想查看我的文档的标记化、词干化、小写等版本。Solr 有什么方法可以提供这些信息吗?
谢谢简
看看卢克:http ://www.getopt.org/luke/
Solr 还内置了一个 Luke 处理程序:https ://wiki.apache.org/solr/LukeRequestHandler
You can use the Solr Analysis which is provided on Solr admin interface. http://wiki.apache.org/solr/SolrAdminGUI
When on the analysis page, just putting the 'field type' or 'field name' you want the analysis on and put in any field value. Solr Analysis will show you what each Filter/Tokenizer is doing and how exactly does your content look after each step. Its great for testing and debugging.
You can do the same on a query if you have set such analyzers (tokenizers/filters) on your query as well in the schema.
Hope this helps.