You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Armbrust, Daniel C." <Ar...@mayo.edu> on 2003/04/15 17:40:34 UTC

Extra blank field in index?

When I create an index, and then read back the available fields on my index using IndexReader.getFieldNames, the collection it returns always has one more field than I added.  

In the simplest case, when I added one document which only had one field to the index, according to my debugger, the SegmentReader class's fieldInfos object is holding two fields, one of which is the one I added, the other is the mystery field.  It reports isIndexed=false, name="".

Is this just normal operation, or is it a bug of sorts?  

(Using 1.3 RC1)

Thanks, 

Dan


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


Re: Extra blank field in index?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Sounds like a bug :)
A step-through in debugger would probably locate the bug.  It could be
FieldInfos constructor.  Another Lucene user, Julien, pointed me to it
as a potential source of the problem.

Otis


--- "Armbrust, Daniel C." <Ar...@mayo.edu> wrote:
> When I create an index, and then read back the available fields on my
> index using IndexReader.getFieldNames, the collection it returns
> always has one more field than I added.  
> 
> In the simplest case, when I added one document which only had one
> field to the index, according to my debugger, the SegmentReader
> class's fieldInfos object is holding two fields, one of which is the
> one I added, the other is the mystery field.  It reports
> isIndexed=false, name="".
> 
> Is this just normal operation, or is it a bug of sorts?  
> 
> (Using 1.3 RC1)
> 
> Thanks, 
> 
> Dan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

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