im new from elasticsearch .. and i want to know to get a mean word from
elasticsearch
for ex :
i have 4 docs "elasticsearch", "is the best", "good" and "is my choice"
i had done a search with keyword "elasticsearch is good". i get a result
matching all docs ... that is something i would not expect .. i want to get
only 2 docs : "elasticsearch" and "good"
im new from elasticsearch .. and i want to know to get a mean word from elasticsearch
for ex :
i have 4 docs "elasticsearch", "is the best", "good" and "is my choice"
i had done a search with keyword "elasticsearch is good". i get a result matching all docs ... that is something i would not expect .. i want to get only 2 docs : "elasticsearch" and "good"
it is about analyzers, query analzer when searching , and index analyzer when indexing, both can be set through the mapping api against a field. most analyzers would discard the "is" after analying, as "is" is a useless word. so, you need to implement your own analyzer to keep your "is" when analying.
On Friday, April 5, 2013 5:54:33 AM UTC+7, NILE NGUYỄN wrote:
im new from elasticsearch .. and i want to know to get a mean word from
elasticsearch
for ex :
i have 4 docs "elasticsearch", "is the best", "good" and "is my choice"
i had done a search with keyword "elasticsearch is good". i get a result
matching all docs ... that is something i would not expect .. i want to get
only 2 docs : "elasticsearch" and "good"
ok so what does make "good" make a "better" word than "is"? If you want to
drop stopwords, just use 'stopword' filter or select mandatory terms first
and build dedicated boolean queries.
aside from this I don't really get why this query should pick 2 docs, sorry!
simon
On Friday, April 5, 2013 12:54:33 AM UTC+2, NILE NGUYỄN wrote:
im new from elasticsearch .. and i want to know to get a mean word from
elasticsearch
for ex :
i have 4 docs "elasticsearch", "is the best", "good" and "is my choice"
i had done a search with keyword "elasticsearch is good". i get a result
matching all docs ... that is something i would not expect .. i want to get
only 2 docs : "elasticsearch" and "good"
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.