You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2002/11/19 02:49:58 UTC

DO NOT REPLY [Bug 14665] New: - QueryParser incorrectly escapes special characters in term names

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14665>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14665

QueryParser incorrectly escapes special characters in term names

           Summary: QueryParser incorrectly escapes special characters in
                    term names
           Product: Lucene
           Version: 1.2
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: QueryParser
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: hanson@reactivity.com


Related to bug 11636

Sample:
build a document with a field named "Some-Term", whose value is Text "value".

The query Some-Term:value is parsed as "Some -Term:value", which is arguably
correct.

The query Some\-Term:value is parsed as "Some\-Term:value", which appears
incorrect.  It returns no hits.

The query "Some-Term:value" appears to be parsed as "Some-Term:value" (according
to Query.toString()) but returns no hits.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>