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 27903] New: - Document.fields() only returns stored fields
Date Wed, 24 Mar 2004 13:00:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27903>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27903

Document.fields() only returns stored fields

           Summary: Document.fields() only returns stored fields
           Product: Lucene
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: daniel.naber@t-online.de


Document.fields() only returns stored fields, not those which are indexed but not 
stored. This is confusing, as there's a isStored() Method which doesn't make much 
sense then. 
 
Actually fields() returns all fields only just after Document.add(new Field(...)), even the

ones which are not stored. Sounds confusing? :-) I'll attach a small program that 
demonstrates this. 
 
This should either be fixed so that all fields are always returned or it should be 
documented.

---------------------------------------------------------------------
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