lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spencer, Dave" <>
Subject RE: search similar docs?
Date Wed, 03 Apr 2002 17:15:26 GMT
Can't you feed the text of the orig/matching doc to the search engine
as a query and see what docs it returns? Then a "similar" has words in
w/ the orig doc.

I've done this kind of monster query with some of our internal systems -
have support mail that comes in, and all kinds of intranet sites, bug
and javadoc indexed. When reading the support mail in a web interface
you can feed the *entire* body of the mail to the search engine to find
"similar" support mails, bug reports, howto docs etc. Not fast and just
a proof
of concept right now but kinda intersting. [note: had to switch the
action from GET to POST due to the size of the "query"]

-----Original Message-----
From: Daniel Calvo []
Sent: Tuesday, February 12, 2002 12:25 PM
To: Lucene Users List
Subject: search similar docs?


I was thinking of implementing a search for similar documents (like some
commercial search engines do) and wondering if anyone has
already done something like that with Lucene. I thought of collecting
all terms of the selected document (or maybe some subset of
them) and then creating a MultiTermQuery containing those terms. Does it
make sense? Is there a better way to achieve this?

In order to do it, I would have to get all terms of a given document and
so far I haven't found an easy way of doing it (I hope
there's one ;-). The way I was thinking is to extend FilteredTermEnum
but, instead of selecting terms by similarity, select them by
docid (for each term, get its termdocs and check for the desired docid).
It doesn't look very efficient so if someone could
contribute with other ideas or even related experiences I'd appreciate
very much.


Best regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message