lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seeta Somagani" <se...@gotuit.com>
Subject RE: Null field values
Date Fri, 30 Jun 2006 23:06:59 GMT
Hi Erick,

The fields that are missing are sort of primary keys and they exist in
all the documents (including those that were returned in my search
results) when I browsed through the index using Luke. And the field
names are exactly the same all in the same case. I never get the three
field values no matter what I'm searching for.

Thanks,
Seeta

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Friday, June 30, 2006 6:55 PM
To: java-user@lucene.apache.org
Subject: Re: Null field values

There is no requirement that every document contain values for every
field.
Doc A could have fields z, y, x, and Doc B could have fields x, w, v.
So,
when you say "some of the values are being returned as null", do you
mean
that you *never* get any values for some field or you get values for a
field
for some, but not all documents?

You might try using Luke to look at the specific document that's giving
you
problems and see if it has values for all fields. You can enter the
document
ID (i.e. Lucene's internal doc.id()) in the search field and examine the
actual doc (sorry if you know that already <G>). I think it's the second
tab, titled "document..."

If you never get values for some field that Luke shows is in the index,
the
first place I'd look is whether have the field name correctly entere
(including case).

Hope this helps
Erick

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


Mime
View raw message