I'm trying to create a query that gets all the users that have a
specific name or contact and that live in europe.
To do this I've created the query bellow but I always get the
exception "SearchPhaseExecutionException".
I'm trying to create a query that gets all the users that have a
specific name or contact and that live in europe.
To do this I've created the query bellow but I always get the
exception "SearchPhaseExecutionException".
Is this the actual JSON that you're passing to ES? If so, it is
invalid, eg you have unquoted s_v.
Sorry, I forgot to tell that s_v is a parameter. user_id is also a
parameter.
I forgot also to tell that I added the 'not' to remove the current
user from the results.
I'm trying to create a query that gets all the users that have a
specific name or contact and that live in europe.
To do this I've created the query bellow but I always get the
exception "SearchPhaseExecutionException".
Is this the actual JSON that you're passing to ES? If so, it is
invalid, eg you have unquoted s_v.
Sorry, I forgot to tell that s_v is a parameter. user_id is also a
parameter.
I forgot also to tell that I added the 'not' to remove the current
user from the results.
Sorry, I forgot to tell that s_v is a parameter. user_id is also a
parameter.
I forgot also to tell that I added the 'not' to remove the current
user from the results.
So please can you gisthttp://gist.github.com/giststhe actual JSON that
you're sending to ES.
Sorry, I forgot to tell that s_v is a parameter. user_id is also a
parameter.
I forgot also to tell that I added the 'not' to remove the current
user from the results.
So please can you gisthttp://gist.github.com/giststheactual JSON that
you're sending to ES.
Its working. Thanks! What a great support!!!
I tested your gist but it didn't work at first, but that was because I
was using the version 0.16.
Now I've upgraded to 0.17.2 and its working fine.
There were a few DSL grammar errors and some structural weirdness in
there. I forked your gist and typed out this. See if it works any
better for you.Query DSL with AND, OR and NOT · GitHub
Sorry, I forgot to tell that s_v is a parameter. user_id is also a
parameter.
I forgot also to tell that I added the 'not' to remove the current
user from the results.
So please can you gisthttp://gist.github.com/giststheactualJSON that
you're sending to ES.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.