sindice not executing OR properly

5 views
Skip to first unread message

jello...@gmail.com

unread,
Jul 11, 2013, 7:36:36 PM7/11/13
to sindi...@googlegroups.com
I have the following query
+(+(+s1 +horizontally +aligns +s2 ) and +(+s1 -overlaps +s2 ) and +(+"px less than qx") and +(+"py equals qy")) or +(+(+s1 +vertically +aligns +s2 ) and +(+s1 -overlaps +s2 ) and +(+"PY less than QY") and +(+"QX equals PX"))

When I type in just the first part of it before the OR, it yields 53 objects.  When I type in the second part of it, after the OR it yields 56 objects, which is correct.  But when I type in the complete query it yields 0 objects.  I've tried replacing the outer parenthesis with brackets but it doesn't understand. 

What am I missing?

Renaud Delbru

unread,
Jul 12, 2013, 9:38:56 AM7/12/13
to sindi...@googlegroups.com, jello...@gmail.com
Hi

It is a question of oeprator precedence. You are mixing unary boolean
operators with binary operators. In your case, one of the unary operator
(+) has precedence over the OR operators. If you remove the +, then the
query works as expected:
http://sindice.com/search?q=%28%2B%28%2Bs1%20%2Bhorizontally%20%2Baligns%20%2Bs2%20%29%20and%20%2B%28%2Bs1%20-overlaps%20%2Bs2%20%29%20and%20%2B%28%2B%22px%20less%20than%20qx%22%29%20and%20%2B%28%2B%22py%20equals%20qy%22%29%29%20or%20%28%2B%28%2Bs1%20%2Bvertically%20%2Baligns%20%2Bs2%20%29%20and%20%2B%28%2Bs1%20-overlaps%20%2Bs2%20%29%20and%20%2B%28%2B%22PY%20less%20than%20QY%22%29%20and%20%2B%28%2B%22QX%20equals%20PX%22%29%29&nq=&fq=
--
Renaud Delbru
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Sindice Developers" group.
> To post to this group, send email to sindi...@googlegroups.com
> To unsubscribe from this group, send email to
> sindice-dev...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sindice-dev?hl=en
>
> http://sindice.com http://sig.ma http://www.deri.ie
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Sindice Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sindice-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages