lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: How to can I to customize the Similarity?
Date Thu, 30 Jul 2009 11:19:42 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message