Skip Menu |

This queue is for tickets about the Search-QueryParser CPAN distribution.

Report information
The Basics
Id: 129981
Status: new
Priority: 0/
Queue: Search-QueryParser

Owner: Nobody in particular
Requestors: [...]

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

Subject: Unable to put field into parentheses when default defField is given at instantiation
Date: Thu, 04 Jul 2019 11:27:32 +0100
To: bug-Search-QueryParser [...]
From: "Christopher Causer" < [...]>
Download (untitled) / with headers
text/plain 824b
Hi there! Hopefully the subject says it all. The steps to reproduce are as follows: Search::QueryParser->new(defField => "hostname")->parse("( OR") Gives err "[( OR] : [ OR] : field 'domain' inside 'hostname'" The following gives an answer, but I would like to be able to define a default defField at instantiation. Search::QueryParser->new()->parse("( OR") Looking at the source code, it looks to be line 383 of $err = "field '$1' inside '$parentField'", last LOOP if $parentField; Is there a way to check if the $parentField is the same as $self->{defField}, and continuing if so? Many thanks for the module! Christopher

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to