How can I define mappings for a type using Java API e.g. twitter?
Is there a way to see how a user supplied phrase is analyzed which
will be useful for debugging? e.g. if the analyzer is custom, keyword
tokenizer and edgeNGram filter, can I supply a query and inspect the
generated terms?
Lucene has EnglishMinimalStemFilterFactory filter. Is this available
in ES?
How can I define mappings for a type using Java API e.g. twitter?
It is available via client.admin.indices
Check AnalyzeActionTests.java or ScriptFieldSearchTests.java for some
examples. Generally, you can check usages of
IndicesAdminClient.java#putMapping
or IndicesAdminClient.java#preparePutMapping in elasticsearch source code.
Is there a way to see how a user supplied phrase is analyzed which
will be useful for debugging? e.g. if the analyzer is custom, keyword
tokenizer and edgeNGram filter, can I supply a query and inspect the
generated terms?
Yes, Analyze API:
Lucene has EnglishMinimalStemFilterFactory filter. Is this available
in ES?
Yes, EnglishMinimalStemFilter is exposed. Check minimal_english here:
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.