Hello,

Let's say you have an indexed text "t1 t3 t3" with shingles. The token
positions are also indexed, so you get : t1 (at pos 1), "t1 t2" (pos
1), t2 (pos 2), "t2 t3" (pos 2) and t3 (pos 3).

So if you are searching with a match_phrase for "t1 t2 t3" (even if
not tokenized as shingles) it will matches the document, because t1,
t2 and t3 are considered next to each others (based on there recorded
position) for this document.

Cédric Hourcade
[email protected]


On Fri, Jun 20, 2014 at 7:04 AM, 陳智清 <[email protected]> wrote:
> How does shingle filter work on match_phrase in query phase?
>
> After analyzing phrase "t1 t2 t3", shingle filter produced five tokens,
>   t1
>   t2
>   t3
>   "t1 t2"
>   "t2 t3"
>
> Will match_phrase still give "t1 t2 t3" a match? How it works? Thank you.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/33889bbd-9b01-4414-b579-4e625f0eec17%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAJQxjPNWyj-r6LtrWDXv_HGA-sgxfy%3DEu4Z5gJ5kRk_K2MWVNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to