1> is looking for the _phrase_, so the four tokens "jurassic" "park"
"the" "movie" have to appear next to each other in that order.

2> is looking for the four tokens anywhere in the field. Whether they
_all_ must appear depends on whether the default operator (OR or AND).

3> is parsed as my_text_field:Jurassic default_text_field:pard
default_text_field:the default_text_field:movie.

Adding &debug=query to your query will show you what the parsed query
looks like and help answer these kinds of questions.

Best,
Erick

On Wed, Jul 11, 2018 at 8:54 AM, Wei <weiwan...@gmail.com> wrote:
> Hi,
>
> I am running filter query on a field of text_general type and see
> completely different results for the following queries:
>
>    fq= my_text_field:"Jurassic park the movie"               returns 0
> result
>
>    fq= my_text_field:(Jurassic park the movie)               returns 20
> result
>
>    fq= my_text_field:Jurassic park the movie                  returns
> thousands of results
>
>
> Which one is the correct syntax? I am confused why the first query doesn't
> have any match at all.  I also thought 2 and 3 are the same, but turns out
> quite different.
>
>
> Thanks,
> Wei

Reply via email to