I am facing a problem with elasticsearch where I dont want my indexed term
to be analyzed. But the elasticsearch has some default setting which is
tokenizing it on space. Therefore my facet query is not returning the
result I want.
I read that "index" : "not_analyzed" in properties of index type should
work. But the problem is that I dont know my document structure before
hand. I would be indexing random MySQL databases to elasticsearch without
knowing the table structure.
How can I setup elasticsearch such that by default it uses "index" :
"not_analyzed" until otherwise asked for. Thanks
PS: I am using java if I can directly use any API for it I would love it.
I am facing a problem with elasticsearch where I dont want my indexed term
to be analyzed. But the elasticsearch has some default setting which is
tokenizing it on space. Therefore my facet query is not returning the
result I want.
I read that "index" : "not_analyzed" in properties of index type should
work. But the problem is that I dont know my document structure before
hand. I would be indexing random MySQL databases to elasticsearch without
knowing the table structure.
How can I setup elasticsearch such that by default it uses "index" :
"not_analyzed" until otherwise asked for. Thanks
PS: I am using java if I can directly use any API for it I would love it.
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.