lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21128] New: - Mixed case and keyword fields don't mix?
Date Thu, 26 Jun 2003 20:34:28 GMT
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=21128>.
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=21128

Mixed case and keyword fields don't mix?

           Summary: Mixed case and keyword fields don't mix?
           Product: Lucene
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: QueryParser
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: mmurphy@codecorps.org


Forgive me if this is expected behavior, but I can't find it cited anywhere...

Using Lucene 1.3-rc1, I indexed a document (with StandardAnalyzer) with a
keyword field "member" and a value "testOwner". I then attempted to retrieve
that document via the query "member:testOwner", and I got zero results. I was
able to retrieve the document via another query (against another field) and saw
that Lucene had correctly stored "testOwner" as the value of "member".

So, I puttered around with other queries. The following queries work:

member:test?wner
member:test*

The following queries do not work:

member:testOwner
member:testowner
member:testO*
member:testO?ner

If I switch my index to make the member field be stored instead of keyword,
searching on member:testOwner works fine. So, something about having a
mixed-case value for a keyword field fails on the query. That surprised me,
since keyword fields are untokenized -- if anything, I'd've expected keyword to
handle mixed-case *better*.

In case it matters, this is J2SE build 1.4.0_01-ea-b02 on Windows 2000.

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message