i am a complete beginner here, but this is my issue:
an example of what we are considering a non-relevant search result is:
- if a user searches for the word "paint", we do not to return results
like "painter".
how do i exclude those type of matches from being returned?
--
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.
Elasticsearch should take care of that already, try it on your local
machine first. In my example below, if you search for "car" you will not
get any results. If you search for "carp" however, you will get a result
back
curl -XPUT 'http://localhost:9200/animal/fish/1' -d '{"name" : "channel cat
fish", "type" : "cat-fish"}'
curl -XPUT 'http://localhost:9200/animal/fish/2' -d '{"name" : "blue cat
fish", "type" : "cat-fish"}'
curl -XPUT 'http://localhost:9200/animal/fish/3' -d '{"name" : "atlantic
salmon", "type" : "salmon"}'
curl -XPUT 'http://localhost:9200/animal/fish/4' -d '{"name" : "blue
salmon", "type" : "salmon"}'
curl -XPUT 'http://localhost:9200/animal/fish/5' -d '{"name" : "blue
carp", "type" : "carp"}'
curl -XGET 'http://localhost:9200/animal/fish/_search?pretty=true' -d
'{
"query" : {
"bool" : {
"should" : {
"match" : { "_all" : "carp"}
}
}
}
}'
--
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.