Re: Searching sets of documents

2008-10-14 Thread Ganesh
Sorry. I misunderstood. As Karsten suggested, perform search for each term and do the logical operation on the collected hits. Regards Ganesh - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, October 14, 2008 6:20 PM Subject: Re: Searching sets of documents

Re: Searching sets of documents

2008-10-14 Thread Anshum
Hi Spring, If I got your question correctly, you want to search for Folders/Docs depending on the condition, right! Why don't you index the folder name as well and so you could fire a query saying Folder:A and (TEXT:x and TEXT:y) So here the search would run only on folder A for the keywords. In

Re: RE: Searching sets of documents

2008-10-14 Thread Steffen Ramlow
Well, this is what I thought too. Thank you. Original-Nachricht > Datum: Tue, 14 Oct 2008 02:11:53 -0700 (PDT) > Von: "Karsten F." <[EMAIL PROTECTED]> > An: java-user@lucene.apache.org > Betreff: RE: Searching sets of documents > > Hi spring,

Re: Searching sets of documents

2008-10-14 Thread spring
ds > Ganesh > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: > Sent: Tuesday, October 14, 2008 2:41 PM > Subject: Re: Searching sets of documents > > > > The folder name and the document name are stored for each document. > > > >

Re: Searching sets of documents

2008-10-14 Thread Ganesh
: Sent: Tuesday, October 14, 2008 2:41 PM Subject: Re: Searching sets of documents The folder name and the document name are stored for each document. Original-Nachricht Datum: Tue, 14 Oct 2008 14:11:09 +0530 Von: "Ganesh" <[EMAIL PROTECTED]> An: java-user@lucene.a

Re: Searching sets of documents

2008-10-14 Thread spring
The folder name and the document name are stored for each document. Original-Nachricht > Datum: Tue, 14 Oct 2008 14:11:09 +0530 > Von: "Ganesh" <[EMAIL PROTECTED]> > An: java-user@lucene.apache.org > Betreff: Re: Searching sets of documents

RE: Searching sets of documents

2008-10-14 Thread Karsten F.
Hi spring, unit of retrieval in lucene is a document. There are no joins between document sets like in sql. What you can do is to collect all hits for each term query on level of folders and than implement the logical „and“ or „or“ by your own. For this you could reuse the existing implementation

Re: Searching sets of documents

2008-10-14 Thread Ganesh
You should have stored the foldername or fullpath of the file as part of Lucene document otherwise it is difficult to retrieve. Regards Ganesh - Original Message - From: "叶双明" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 14, 2008 6:13 AM Subject: Re: Searching s

Re: Searching sets of documents

2008-10-13 Thread 叶双明
l Message- > > From: ??? [mailto:[EMAIL PROTECTED] > > Sent: Montag, 13. Oktober 2008 02:28 > > To: java-user@lucene.apache.org > > Subject: Re: Searching sets of documents > > > > all folders which match "A AND Y", do you search for file name?

RE: Searching sets of documents

2008-10-13 Thread spring
The docs are already indexed. > -Original Message- > From: ??? [mailto:[EMAIL PROTECTED] > Sent: Montag, 13. Oktober 2008 02:28 > To: java-user@lucene.apache.org > Subject: Re: Searching sets of documents > > all folders which match "A AND Y", do you se

Re: Searching sets of documents

2008-10-12 Thread 叶双明
all folders which match "A AND Y", do you search for file name? If yes, A or Y in "A AND Y" is a Strring too, so you can do it by: construct a Lucene Document for each folder, and name of files under the folder is the search data. 2008/10/13 <[EMAIL PROTECTED]> > Hi, > > I want to search for sets