You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by jason <gi...@gmail.com> on 2006/03/15 04:29:07 UTC

Add a module to the lucene

Hi,

Can we add a module to lucene so that we are able to use our own similarity
measure to calculate the similarity between documents and queries? As lucene
has defined its own measure, we can do few with it.

Considering the documents and queries represented as the vectors, we only
need one class to read the vectors and use our own defined measure to
calculate their similarity.

How do you think of it?

regards
jason

Re: Add a module to the lucene

Posted by Chris Hostetter <ho...@fucit.org>.
Jason: you really don't need to send the same message 4 times in one
night.  You've got to give people time to sleep, and eat, and take care of
other things that don't involve a computer :)

: Can we add a module to lucene so that we are able to use our own similarity
: measure to calculate the similarity between documents and queries? As lucene
: has defined its own measure, we can do few with it.

when using lucene, you can absolutely definite your own Similarity class.
you can register it using the Similarity.setDefault(Similarity).  as long
as you do that before opening any IndexWriters or IndexReaders your
Similarity wil be used throughought your application.


-Hoss


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


Add a module to the lucene

Posted by jason <gi...@gmail.com>.
 Hi,

Can we add a module to lucene so that we are able to use our own similarity
measure to calculate the similarity between documents and queries? As lucene
has defined its own measure, we can do few with it.

Considering the documents and queries represented as the vectors, we only
need one class to read the vectors and use our own defined measure to
calculate their similarity.

How do you think of it?

regards
jason