I am writing a custom AnalysisPlugin to generate a list of synonyms from an Elastic index instead of using a static file.
A naive approach would be to use the REST client during its instantiation and point it to localhost then query in the usual way to populate the synonym map but I was wondering whether there would be a more efficient / cleaner way of doing e.g. I have a TokenFilterFactory with the following constructor (IndexSettings indexSettings, Environment env, String name, Settings settings), can I retrieve the port number from there? Is there a better way of doing?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.