Re: how to search over another search

2007-03-31 Thread Mohammad Norouzi
Hi Erick, Why not combine the indexes? That would be the lucene way... I combined them by joining tables but it gets very very large and ResaltSet failed to retrieve the fields!!! On 3/26/07, Erick Erickson [EMAIL PROTECTED] wrote: The short form is no. Lucene is emphatically NOT a

Re: how to search over another search

2007-03-27 Thread Mohammad Norouzi
Steven, what this means: Each index added must have the same number of documents, but typically each contains different fields. Each document contains the union of the fields of all documents with the same document number. When searching, matches for a query term are from the first index added

Re: how to search over another search

2007-03-27 Thread Steven Rowe
Mohammad Norouzi wrote: Steven, what this means: Each index added must have the same number of documents, but typically each contains different fields. Each document contains the union of the fields of all documents with the same document number. When searching, matches for a query term are

Re: how to search over another search

2007-03-27 Thread Mohammad Norouzi
sorry I cant comprehend, so why we should use two separate index? we can merge it in one index file? On 3/27/07, Steven Rowe [EMAIL PROTECTED] wrote: Mohammad Norouzi wrote: Steven, what this means: Each index added must have the same number of documents, but typically each contains

Re: how to search over another search

2007-03-26 Thread jafarim
what do you mean by applying the result to the second one? On 3/26/07, Mohammad Norouzi [EMAIL PROTECTED] wrote: hi I have two separated index but there are some fields that are common between them. now I want to search from one index and then apply the result to the second one. what solution

Re: how to search over another search

2007-03-26 Thread Mohammad Norouzi
I mean when I get result from the first index, find the common records from the second index depending on first result. something like relation between two database tables, relation by primary key index1: id name somefield1 1 jack value1 2

Re: how to search over another search

2007-03-26 Thread Steven Rowe
Hi Mohammad, Have you looked at MultiSearcher? http://lucene.apache.org/java/docs/api/org/apache/lucene/search/MultiSearcher.html Section 5.6 of Lucene in Action covers its use. Steve Mohammad Norouzi wrote: hi I have two separated index but there are some fields that are common between

Re: how to search over another search

2007-03-26 Thread Steven Rowe
Oops, sorry for the confusion, I was thinking of ParallelReader, first available in Lucene-Java release 1.9: http://lucene.apache.org/java/docs/api/org/apache/lucene/index/ParallelReader.html - An IndexReader which reads multiple, parallel indexes. Each index added must have the same number

how to search over another search

2007-03-25 Thread Mohammad Norouzi
hi I have two separated index but there are some fields that are common between them. now I want to search from one index and then apply the result to the second one. what solution do you suggest? what happens on fields? I mean the first document has some fields that are not present in the second