Slop distance
Hi,
I'm testing for my company a possible move from lucene to elasticsearch.
In lucene I have SetSlop, which when I set to 0 will bring results only for
the exact phrase.
In elastic search I use "phrase_slop": 0.0, but get results, when searching
for a part of a phrase.
I indexed "lazy red fox", searched for "lazy fox" and got results.
I searched using REST.
METHOD:
POST
URL:
http://localhost:9200/cinemagramcin/documents/_search
BODY:
{
"size": 500,
"query": {
"query_string": {
"query": "fox lazy",
"fields": [
"board^5",
"user^1",
"description^10"
],
"analyzer": "snowball",
"phrase_slop": 0.0
}
},
"fields": [
"iDPin",
"iDPicture"
]
}
Thanks,
Ophir
--
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.