Skip Menu |

This queue is for tickets about the WebService-Solr CPAN distribution.

Report information
The Basics
Id: 64692
Status: open
Priority: 0/
Queue: WebService-Solr

People
Owner: Nobody in particular
Requestors: pete [...] cubabit.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.11
Fixed in: (no value)



Subject: Not possible to OR multiple fields
It appears one can only OR values of a particular field eg: my $query = WebService::Solr::Query->new({ foo => ['bar', 'baz'] }); print $query->stringify ((foo:"bar" OR foo:"baz")) But not OR multiple fields: my $query = WebService::Solr::Query->new({ -or => [ foo => 'bar', bar => 'baz' ] }); print $query->stringify; Can't locate object method "_op_or" via package "WebService::Solr::Query" at /usr/local/share/perl/5.10.1/WebService/Solr/Query.pm line 58. I would expect: ((foo:"bar" OR bar:"baz"))
On Tue Jan 11 10:16:18 2011, cubabit-2 wrote: Show quoted text
> It appears one can only OR values of a particular field eg:
Yeah :/ Someone pointed this out to me in a private email a while ago, I meant to create an RT ticket out of it. Thanks for submitting this. Not sure when I'll get around to looking at this, but, patches welcome if you care to take a stab at it yourself. -Brian