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"))