HI,
I am new to elastic search.i wanted to know how to query for exact search.
Example if am searching for "charlie"
and i have "charlie chaplin" ,"charlie walter","charlie","charlie123"
i am expecting result only "charlie"
i am trying to use terms
Terms(s=>s.field("fieldname").Terms("charlie"))
it gives me "charlie chaplin","charlie walter" and "charlie" can anyone guide,what i must be doing here?
This is fully expected behaviour from an Elasticsearch point of view, as all documents that contain the term charlie are returned. As you can see, search engines tend to behave a little bit different compared to other data stores.
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.