it's not possible to write individual properties to the Index, As most
of the times the lucene index it's just a desnormalized view of what
you have in a database, the usual way it's to write and get those
properties directly from the database.

As for reading, you could access directly to the document via the
documentid, but it's a property that it's not reliable, because it
changes when you optimize the index. Howewer, a search by a unique
keyword it's very fast, so you can make the search and access the
document. But, as i said before, for this kind of requeriments it
easier to work with a database. รง

Jokin.


On Wed, Nov 5, 2008 at 10:56 PM, Ron Grabowski <[EMAIL PROTECTED]> wrote:
> Is there anyway to read or write simple properties about the index:
>
>  indexWriter.SetProy("MaxTicketId", "1");
>  indexWriter.SetProperty("LastUpdatedBy", "anonymous");
>
>  Console.WriteLine("MaxTicketId: " + indexReader.GetProperty("MaxTicketId"));
>
> It would be possible to retrieve those properties without having to do a full 
> search of the index. I shouldn't have to search if I know exactly what I 
> want.pert
>

Reply via email to