You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Ahmed El-dawy <as...@gmail.com> on 2005/10/12 14:28:58 UTC
Many indexes Vs One Index
Hello,
I am indexing many txt files using lucene. First, I used an index
for each txt file. This allowed me to select some indexes for search
to limit search range. I used MultiSearcher to search all of them. The
problem is that it took a long time to retrieve documents because they
are scattered among many index files. So, I tried to index all of them
in one big index and added a field to tell where this document come
from. It worked fine, but search results were in different order for
the same query!!! I did not change anything except grouping all
documents in one index. Does this affect ordering of search results in
any way?
By the way, the MultiSearcher solution gave me better search results.
--
regards,
Ahmed Saad
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: Many indexes Vs One Index
Posted by Daniel Naber <lu...@danielnaber.de>.
On Mittwoch 12 Oktober 2005 14:28, Ahmed El-dawy wrote:
> So, I tried to index all of them
> in one big index and added a field to tell where this document come
> from. It worked fine, but search results were in different order for
> the same query!!!
That's a bug in Lucene 1.4 that's fixed in SVN already. BTW, please ask
these kind of questions on the user list, not on the developer list.
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org