See the Similarity (and DefaultSimilarity) class in the Lucene source code. There are, of course, many other ways to customize similarity: Function queries, write your own queries, etc.

More details on what you are trying to customize would help answer your question.

On Jul 28, 2009, at 1:38 PM, Fabrício Raphael wrote:

Hi!

How to can I to customize the calculation of the similarity?

I did my own index processor using the classes IndexWriter and IndexReader, because the my calculation of the index is very different the Vector Model.

Then, based on my own index, I need to calculate the similarity using the
Lucene.

Obs: I'm using the code is in
http://svn.apache.org/repos/asf/lucene/java/trunk/src/java, because I see future problems with the version 2.4 on my app to change to new versions.

Now, thanks!

--
Fabrício Raphael

home page: http://www.cos.ufrj.br/~fabriciorsf/

Mestrando em Engenharia de Sistemas e Computação
Linha de Pesquisa: Banco de Dados
Programa de Engenharia de Sistemas e Computação
Universidade Federal do Rio de Janeiro
PESC/COPPE/UFRJ

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using Solr/Lucene:
http://www.lucidimagination.com/search


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

Reply via email to