lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <emailg...@yahoo.co.in>
Subject Re: Searching sets of documents
Date Wed, 15 Oct 2008 06:55:32 GMT
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: <spring@gmx.eu>
To: <java-user@lucene.apache.org>
Sent: Tuesday, October 14, 2008 6:20 PM
Subject: Re: Searching sets of documents


> The problem is the logical combination of documents in folders not of 
> terms in documents.
> See original post.
>
> -------- Original-Nachricht --------
>> Datum: Tue, 14 Oct 2008 16:29:15 +0530
>> Von: "Ganesh" <emailgane@yahoo.co.in>
>> An: java-user@lucene.apache.org
>> Betreff: Re: Searching sets of documents
>
>> What is your problem?
>>
>> If the foldernames are already stored then it could be retrieved from
>> search. Use DuplicateFilter on field "foldername" to get the unique list
>> of
>> folders.
>> Hope this helps.
>>
>> Regards
>> Ganesh
>>
>>
>> ----- Original Message ----- 
>> From: <spring@gmx.eu>
>> To: <java-user@lucene.apache.org>
>> 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" <emailgane@yahoo.co.in>
>> >> An: java-user@lucene.apache.org
>> >> Betreff: Re: Searching sets of documents
>> >
>> >> 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: "叶双明" <yeshuangming@gmail.com>
>> >> To: <java-user@lucene.apache.org>
>> >> Sent: Tuesday, October 14, 2008 6:13 AM
>> >> Subject: Re: Searching sets of documents
>> >>
>> >>
>> >> >I don't understand your problem?
>> >> > do you index file but want to search folder which contain the files?
>> >> >
>> >> > when you want to search folder, you can index folder, the data is 
>> >> > all
>> >> > files
>> >> > under it.
>> >> >
>> >> > 2008/10/13 <spring@gmx.eu>
>> >> >
>> >> >> The docs are already indexed.
>> >> >>
>> >> >> > -----Original Message-----
>> >> >> > From: ??? [mailto:yeshuangming@gmail.com]
>> >> >> > 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?
>> >> >> > 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 <spring@gmx.eu>
>> >> >> >
>> >> >> > > Hi,
>> >> >> > >
>> >> >> > > I want to search for sets of documents. For instance
I
>> >> >> > index some folders
>> >> >> > > with documents in it and now I do not want to find certain
>> >> >> > documents but
>> >> >> > > folders.
>> >> >> > >
>> >> >> > > Sample:
>> >> >> > >
>> >> >> > > folder A
>> >> >> > >  doc 1, contains X, Y
>> >> >> > >  doc 2, contains Y, Z
>> >> >> > >
>> >> >> > > folder B
>> >> >> > >  doc 3, contains X, Y
>> >> >> > >  doc 4, contains A, Z
>> >> >> > >
>> >> >> > > Now I want to find all folders which match "A AND Y"
-> folder
>> B.
>> >> >> > >
>> >> >> > > How can this be done?
>> >> >> > >
>> >> >> > > Thank you
>> >> >> > >
>> >> >> > >
>> >> >> > >
>> >> >> > >
>> >> >> >
>> ---------------------------------------------------------------------
>> >> >> > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> >> >> > > For additional commands, e-mail:
>> java-user-help@lucene.apache.org
>> >> >> > >
>> >> >> > >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Sorry for my English!! ?
>> >> >> > Please help me correct my English expression and error in
syntax
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> >> >> For additional commands, e-mail: java-user-help@lucene.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > -- 
>> >> > Sorry for my English!! 明
>> >> > Please help me correct my English expression and error in syntax
>> >> >
>> >>
>> >> Send instant messages to your online friends
>> >> http://in.messenger.yahoo.com
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> >> For additional commands, e-mail: java-user-help@lucene.apache.org
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> > For additional commands, e-mail: java-user-help@lucene.apache.org
>> >
>>
>> Send instant messages to your online friends 
>> http://in.messenger.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 

Send instant messages to your online friends http://in.messenger.yahoo.com 

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