Customizing Analyzers in Solr

可紊 提交于 2019-12-07 10:02:45

问题


In Solr I have a custom Analyzer that has two parameters. I know how to specify this Analyzer in the schema.xml but I'm wondering how I can pass the two arguments either in the schema.xml or runtime in the code.


回答1:


You can not pass parameters to the schema xml at run-time , as far as I know. But you can use the reload command.This can be useful when (backwards compatible) changes have been made to your solrconfig.xml or schema.xml files (e.g. new declarations, changed default params for a , etc...) and you want to start using them without stopping and restarting your whole Servlet Container.

see here



来源:https://stackoverflow.com/questions/9105542/customizing-analyzers-in-solr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!