lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: indexing values which might be null
Date Tue, 21 Jun 2005 21:01:50 GMT
Hi George,

A field value needs to be indexed if you want to sort by it - see .

As for null fields, you could use an empty string, or better yet, some
"custom field value" that means "NULL" for your application.


--- George Abraham <> wrote:

> Hi,
> I am using Lucene to index database content. I have two questions:
> 1. Along with some of the fields that I want indexed, there are some
> fields that I want stored (not indexed) in the index so as to return
> with hits. However I also want to be able to sort a search result
> using these non-indexed fields. Which method should I use in the
> Field
> class then?
> 2. As is usual with some database content, sometimes fields that have
> to be indexed turn out to be null. Using the Keyword method, the
> indexing procedure gives me an error that 'value cannot be null'. How
> do I then go about this?
> Thanks,
> George

Simpy -- -- tags, social bookmarks, personal search engine

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message