How to match a mean word

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"

anybody can suggest me ???

SORRY FOR MY BAD ENGLISH :frowning:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Welcome!

Please read this: http://www.elasticsearch.org/help/
And provide a Gist of what you have tried so far.

We will be happy to help as soon as we know exactly what you have done.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 5 avr. 2013 à 00:54, NILE NGUYỄN ducati1801@gmail.com a écrit :

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"

anybody can suggest me ???

SORRY FOR MY BAD ENGLISH :frowning:

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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.

Thanks for reply me David

i mean how can i parse a search keyword sentences from my keyword list

ex :

keyword list : "elasticsearch", "is", "my", "best choice"

if my search string is "elasticsearch is my bestchoice" ... how can i
config elasticsearch to parse sentences like this

query: {

bool: {

  must: [ 

    { "bool" : { 

      "should": [

          {term: { "testarea_name":"elasticsearch"}, 
          {term: { "testarea_name":"is"}, 
          {term: { "testarea_name":"my"} 
          {term: { "testarea_name":"best choice"} 
      ] 
    } 
  ] 
} 

}

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"

anybody can suggest me ???

SORRY FOR MY BAD ENGLISH :frowning:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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"

anybody can suggest me ???

SORRY FOR MY BAD ENGLISH :frowning:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.