lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie Stallwood" <jubi...@project76.co.uk>
Subject RE: merged search of document
Date Wed, 07 Jan 2004 14:09:40 GMT
+(DocID:XYZ DocID:ABC) +(foo bar)

will find a document that (MUST have (xyz OR abc)) AND (MUST have (foo OR
bar)).

-----Original Message-----
From: Thomas Scheffler [mailto:thomas.scheffler@uni-jena.de]
Sent: 07 January 2004 11:23
To: lucene-user@jakarta.apache.org
Subject: merged search of document

Hi,

I need a tip for implementation. I have several documents all of them with
a field named DocID. DocID identifies not a single Lucene Document but a
collection of them. When I wan't to start a seach it should handle the
search in that way, as these lucene documents where one.

example:

Document 1: DocID:XYZ

containing: foo

Document 2: DocID:XYZ

containing: bar

Document 3: DocID:ABC

containing: foo bar

Document 4: GHJ

containing: foo

As you already guesses, when I'm searching for "+foo +bar" I wan't the
hits to contain Document 1, Document 2 and Document 3, not Document 4. Is
that clear what I want? How do I implement such a monster? Is that
possible with lucene? The content is not stored within lucene it's just
tokenized and indexed.

Any help?

Thanks in advance!

Thomas Scheffler


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message