Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr, mail # user - Override Similarity


Copy link to this message
-
Re: Override Similarity
Kraus, Ralf | pixelhouse ... 2008-10-28, 11:02
Rafaďż˝ Kuďż˝ schrieb:
> Hello!
>
>    You can do it, by extending the DefaultSimilarity class from
> org.apache.lucene.search package. After that, You need to add one line
> to schema.xml file, which might look like this:
>
> <similarity class="com.company.CustomSimilarity" />
>
> After that, Solr will recognize Your new similarity class and will use
> it to compute score.
>
>  
thx ! Runs perfect ....

Greets