>
> (+(rev.headline:beach^2.0) | rev.comments:beach^2.0)~0.01 ()) (+
> hot.id:5823 +hot.id:5847)
>

Your hot.id's are  not OR'd. They are AND'ed. (+hot.id:5823 +hot.id:5847)
should have been (hot.id:5823 hot.id:5847).

Cheers
Avlesh

On Fri, May 1, 2009 at 4:26 AM, Ankush Goyal <ankush.go...@orbitz.com>wrote:

> Hey Guys,
>
> I have 2 indexes with one having hotel content and other containing reviews
> for hotels. When a user queries for a location the logic first calls the
> hotel index to get hotels for the location, then it needs to call review
> index to ask for all the reviews for all the hotels. So, I need to create a
> boolen query with baseQuery as a Should and various hotel-Ids 'ORed' with
> each other. I am creating something like:
>
> (+(rev.headline:beach^2.0) | rev.comments:beach^2.0)~0.01 ()) (+
> hot.id:5823 +hot.id:5847)
>
> But, I seem to be getting wrong results, any ideas whether my query is
> wrong or right?
>
> -Ankush
>

Reply via email to