lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: Clustering question: searching two diferent indexes
Date Tue, 22 Jun 2004 17:56:52 GMT
(re-directing to lucene-user list)


If I understand your question correctly... You could run a query like
the one you gave on both indices, but if one of them contains documents
that have only one of those fields (cluster), then there will never be
any matches in the second index.

However, why not leave your big index along, add documents to a new,
smaller index, and then merge them periodically.  I may be off with
this; it sounds like this is what you want to do, but I'm not certain I
understood you fully.


--- Albert Vila <> wrote:
> Hi all,
> I was wondering If I can search using the MultiSearcher over two 
> diferent indexes at the same time (with diferent fields).
> I've got one big index, with the code, title, content, language, etc 
> fields (new documents are added incrementally). Now, I have to
> introduce 
> a clustering field. The problem is that I have to update the whole
> index 
> each time the clusters change, and I have no enought time to do it (I
> wanna check for new clusters every 10 minuts and I spent 25 minutes
> to 
> reindex the whole index).
> A query example could be: language:0 and title:java and cluster:0
> Can I leave the big index whitout any changes and create a new index 
> with only the following fields, code and cluster, and perform the 
> searches using this two indexes? I think I cannot do that without 
> changing the code. It would need a postprocess, matching all
> returning 
> codes from index 1 with index 2.
> Anyone have a solution for this problem? I would appreciate that.

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

View raw message