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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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