Issues

Select view

Select search mode

 

Lucene Search with ^

Description

After https://luceeserver.atlassian.net/browse/LDEV-1023#icft=LDEV-1023 is fixed, there is an exception when you search for "^":

{{Cannot parse '': Encountered " "" "^ "" at line 1, column 0.
Was expecting one of:
<NOT> ...
"+" ...
"-" ...
"(" ...
"*" ...
<QUOTED> ...
<TERM> ...
<PREFIXTERM> ...
<WILDTERM> ...
"[" ...
"{" ...
<NUMBER> ...
<TERM> ...
"*" ...}}

Alternative:

Cannot parse 'Test^': Encountered "<EOF>" at line 1, column 5.
Was expecting: (see error message above)

lucee.runtime.search.SearchException

Environment

Windows / Linux, tested on 4.5.2 and latest 5.2.7.

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 22 June 2018 at 10:18
Updated 13 August 2018 at 17:51

Activity

Show:

Pothys - MitrahSoft26 June 2018 at 15:14
Edited

I've added test case for this ticket & confirmed the issue (Cannot parse 'TestWord^s': Lexical error at line 1) happened while using ^ on cfsearch criteria. It escapes for other special characters (Like $,&,*) except ^ this.

Pull request: https://github.com/lucee/Lucee/pull/531

Flag notifications