Oh, i see. I didn't realise they were nested phrases.
When you workout how to do it can you gist a small example query so i can add it to my list of reference queries?
cheers.
--
shaun etherton
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Tuesday, 10 July 2012 at 12:10 PM, Ben Allfree wrote:
Thanks, I hadn't seen those. Unfortunately I don't think query_string can do nesting for phrases.
dog OR cat OR bird
will work, but
black dog OR brown cat OR red bird
will not
b
On Mon, Jul 9, 2012 at 7:33 PM, shaun etherton <shaun.etherton@gmail.com (mailto:shaun.etherton@gmail.com)> wrote:
Hi Ben
Maybe these will help?
https://gist.github.com/3053914
https://gist.github.com/3080627
cheers
On Tuesday, 10 July 2012 at 11:35 AM, Ben Allfree wrote:
Hi everyone,
I'm having trouble forming the syntax to search for multiple phrases with highlighting. Suppose I would like to search for:
(red balloon) OR (yellow kite) OR (black sheep)
...and highlight the results. What would the JSON look like?
For reference, I can do this using an OR filter and text_phrase, but I don't know how to do an OR inside a query. It seems that highlighting only works if the terms are specified in the query (not the filter).
Thanks for any help you can lend.
Ben