Re: customize similarity function

2012-11-03 Thread Otis Gospodnetic
Hi, Look where Similarity implementation is specified in solrconfig.xml. Find that class in Lucene and you will see tf and idf methods you need for your implementation, which you can then specify I'm solrconfig. Reindexing required. Otis -- Performance Monitoring - http://sematext.com/spm On Nov

customize similarity function

2012-11-03 Thread SR
Solr 4.0 I want to avoid the TF.IDF and use a "binary" model, i.e., if the keyword is in the document, the score is 1, no matter how frequent the keyword is in that document. If the keyword is not in the document, than the score is zero. I also want to avoid the idf. e.g., query: pizza doc: