Eric Lease Morgan wrote:
[snip] I'm still not an expert in this regard, but I do know that
things like the query "dogs cats" (without the quote marks) is an
invalid CQL query because I think CQL is expecting phrase searches or
truples (dogs or cats). In the query "dogs cats" (without the qu
Fails: CQL: dc:title any "dogs cats"
Succeeds: Swish: dc:title = (dogs or cats)
Could we change the toSwish() method in TermNode.pm (around line
105) to
[if $relation is "any"]
$term =~ s/\s/ and /g;
$swish = join( ' ', $qualifier, '=', '(', $term, ')' );
similarly
Fails: CQL: dc:title al
Trying to understand the limitations of CQL::Parser in the context of
passing the SRU query through to my swish indexes:
The code currently runs:
my $parser = CQL::Parser->new();
my $root = $parser->parse( $query );
my $swishquery = $root->toSwish();
which is brilliantly simple, and worked