lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: maxDoc and arrays
Date Thu, 24 May 2007 18:42:55 GMT
Carlos:
Answer to your last question: No, but if you look in JIRA, Karl Wettin has written something
that does have a notification mechanism that you are describing.

Otis 

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/  -  Tag  -  Search  -  Share

----- Original Message ----
From: Carlos Pita <carlosjosepita@gmail.com>
To: java-user@lucene.apache.org
Sent: Thursday, May 24, 2007 12:41:11 PM
Subject: maxDoc and arrays

Hi all,

Is there any guaranty that the maxDoc returned by a reader will be about the
total number of indexed documents?

The motivation of this question is that I want to associate some info to
each document in the index, and in order to access this additional data in
O(1) I would like to do this through an array indexing. But the array size
shouldn't be a lot greater than the total number of documents. I see that
something similar is done in the example of section 6.1 of Lucene in Action,
but for sorting purposes, which is not my case.

Related to this: how can update my array of extra data when documents are
added/removed to/from the index? Is there any feedback mechanism by means of
callbacks or event handlers?

Thank you in advance.
Regards,
Carlos




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