I'm curious, why do you want to disable idf? --wunder On 10/28/08 5:37 AM, "Erik Hatcher" <[EMAIL PROTECTED]> wrote:
> > On Oct 28, 2008, at 6:33 AM, Kraus, Ralf | pixelhouse GmbH wrote: >> is there a chance to override the Similarity in my search ? >> In fact I want that all result return a 1 (with the idf methode). > > Sure thing, see Solr 1.3.0's example/solr/conf/schema.xml.... > > <!-- Similarity is the scoring routine for each document vs. a query. > A custom similarity may be specified here, but the default is > fine > for most applications. --> > <!-- <similarity class="org.apache.lucene.search.DefaultSimilarity"/ >> --> > <!-- ... OR ... > Specify a SimilarityFactory class name implementation > allowing parameters to be used. > --> > <!-- > <similarity class="com.example.solr.CustomSimilarityFactory"> > <str name="paramkey">param value</str> > </similarity> > --> > > >