Match / Text Phrase with Slop does not preserve order of tokens

Hi,
We are facing issue with Match or Text Phrase with Slop value 5.
We have documents with below mentioned text and i am doing Match Phrase
query for "organize house" with slop value 5. And i have Snow Ball filter
for tokens.
So it should have matched only (1) as per the definition of Match Phrase
with order as organize first and house after organize in the sentence. I
feel something wrong because of Slop.

*(1) *Ever since I was girl my mom taught me the domestic work.I can to
cook cakes, cookies, to wash, to clean, Every Friday organize the house.
to care my sister, bring to school to my sister and help her do homework.I
like to keep clean my house, it's nice to be home. (It should have matched
this)

*(2) *In the time that I wasn't working and when I lives outside my house,
I was responsible to do some household duties like cook and clean the house,
organizing
everything, make the bed and wash the dishes. (It should not
match this)

Can someone please explain it? Is there anything missing from my side?

Thanks
Ankur

--
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.

Hi,
Does anyone know about this?

Any idea or suggestion would be really appreciated.

Thanks
Ankur

On Friday, July 12, 2013 5:23:52 PM UTC+2, Ankur Gandhi wrote:

Hi,
We are facing issue with Match or Text Phrase with Slop value 5.
We have documents with below mentioned text and i am doing Match Phrase
query for "organize house" with slop value 5. And i have Snow Ball filter
for tokens.
So it should have matched only (1) as per the definition of Match Phrase
with order as organize first and house after organize in the sentence. I
feel something wrong because of Slop.

*(1) *Ever since I was girl my mom taught me the domestic work.I can to
cook cakes, cookies, to wash, to clean, Every Friday organize the house.
to care my sister, bring to school to my sister and help her do homework.I
like to keep clean my house, it's nice to be home. (It should have
matched this)

*(2) *In the time that I wasn't working and when I lives outside my
house, I was responsible to do some household duties like cook and clean
the house, organizing everything, make the bed and wash the dishes. (It
should not match this)

Can someone please explain it? Is there anything missing from my side?

Thanks
Ankur

--
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.

Slop is like the Levenshtein edit distance but for word positions. It
doesn't preserve order (and it doesn't support deletions, ie all words must
be present).

Given the phrase query "quick brown fox", the document "brown quick jumping
fox" has a slop of 2:

brown(1) quick(2) jumping(3) fox(4) -> move fox
-> brown(1) quick(2) fox(3) jumping(4) -> move quick
-> quick(1) brown(2) fox(3) jumping(3)

If you want order to be maintained, but still allow slop, then you'll have
to build your own query using the span query family

clint

On 13 July 2013 19:11, Ankur Gandhi ga.gandhi@gmail.com wrote:

Hi,
Does anyone know about this?

Any idea or suggestion would be really appreciated.

Thanks
Ankur

On Friday, July 12, 2013 5:23:52 PM UTC+2, Ankur Gandhi wrote:

Hi,
We are facing issue with Match or Text Phrase with Slop value 5.
We have documents with below mentioned text and i am doing Match Phrase
query for "organize house" with slop value 5. And i have Snow Ball filter
for tokens.
So it should have matched only (1) as per the definition of Match Phrase
with order as organize first and house after organize in the sentence. I
feel something wrong because of Slop.

*(1) *Ever since I was girl my mom taught me the domestic work.I can to
cook cakes, cookies, to wash, to clean, Every Friday *organize the house
*. to care my sister, bring to school to my sister and help her do
homework.I like to keep clean my house, it's nice to be home. (It
should have matched this)

*(2) *In the time that I wasn't working and when I lives outside my
house, I was responsible to do some household duties like cook and clean
the house, organizing everything, make the bed and wash the dishes. (It
should not match this)

Can someone please explain it? Is there anything missing from my side?

Thanks
Ankur

--
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.