Re: SweetSpotSimilarity

2010-07-02 Thread Chris Hostetter
: Side question. How would I know if a configuration option can also take a : factory class.. like in this instance? by reading the example schema.xml... -Hoss

Re: SweetSpotSimilarity

2010-06-28 Thread Blargy
iorixxx wrote: > > CustomSimilarityFactory that extends > org.apache.solr.schema.SimilarityFactory should do it. There is an example > CustomSimilarityFactory.java under src/test/org... > This is exactly what I was looking for... this is very similar ( no put intended ;) ) to the updateProcess

Re: SweetSpotSimilarity

2010-06-28 Thread Ahmet Arslan
> How would you configure the tfBaselineTfFactors and > LengthNormFactors when > configuring via schema.xml? CustomSimilarityFactory that extends org.apache.solr.schema.SimilarityFactory should do it. There is an example CustomSimilarityFactory.java under src/test/org...

Re: SweetSpotSimilarity

2010-06-28 Thread Blargy
iorixxx wrote: > > it is in schema.xml: > > > How would you configure the tfBaselineTfFactors and LengthNormFactors when configuring via schema.xml? Do I have to create a subclass that hardcodes these values? -- View this message in context: http://lucene.472066.n3.nabble.com/SweetSpotSimi

Re: SweetSpotSimilarity

2010-06-25 Thread Ahmet Arslan
> Thanks. Im guessing this is all or nothing.. ie you can't > you one similarity > class for one request handler and another for a separate > request handler. Is > that correct? correct, also re-index is required. length norms are calculated and stored at index time.

Re: SweetSpotSimilarity

2010-06-25 Thread Blargy
iorixxx wrote: > > it is in schema.xml: > > > Thanks. Im guessing this is all or nothing.. ie you can't you one similarity class for one request handler and another for a separate request handler. Is that correct? -- View this message in context: http://lucene.472066.n3.nabble.com/Sweet

Re: SweetSpotSimilarity

2010-06-25 Thread Ahmet Arslan
> Would someone mind explaining how this differs from the > DefaultSimilarity? The difference is length normalization. Default one punishes long documents. "Sweet one computes to a constant norm for all lengths in the [min,max] range (the "sweet spot"), and smaller norm values for lengths out of