I am facing issues in exact match. I am using standard analyzer but exact match is not working with this. If I enable term vector then it is working but enabling term vector is increasing size of elastic index.
Can you please help me with another way of exact match to get rid of big index size ?
You can index a field also as a keyword type using multi-field. Searching on a keyword type is based on exact matching.
If some of your field values are very long, you can skip indexing them using ignore_above option.
We have several documents which have no word limit. It can have any no. of words. We indexed these document text and stored in elastic index. Now we want to find only the documents which have exact match of search string.
Elasticsearch is a search engine.Shay Banon created the precursor to Elasticsearch, called Compass, in 2004.[6] While thinking about the third version of Compass he realized that it would be necessary to rewrite big parts of Compass to "create a scalable search solution".[6] So he created "a solution built from the ground up to be distributed" and used a common interface, JSON over HTTP, suitable for programming languages other than Java as well.
Suppose we searched for string "Java" then it should return both document that is working in my case but if I search for "Java as well" than it is also returning both the documents. In this case it should return the second document in phrase match.
In this case If I enables the term vector than it is working but enabling term vector increasing the index size so I want to know any alternate method to do this thing because we have a lot of documents which have a lot of text.
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.