lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: per-fieldtype similarity not working
Date Fri, 01 Jun 2012 16:14:49 GMT
On Fri, Jun 1, 2012 at 11:39 AM, Markus Jelsma
<markus.jelsma@openindex.io> wrote:
> Hi!
>
>
> Ah, it makes sense now! This global configured similarity knows returns a fieldType defined
similarity if available and if not the standard Lucene similarity. This would, i assume, mean
that the two defined similarities below without per fieldType declared similarities would
always yield the same results?

Not true: note that two methods (coord and querynorm) are not perfield
but global across the entire query tree.

By default these are disabled in the wrapper, as they only skew or
confuse most modern scoring algorithms (eg all the new ranking
algorithms in lucene 4) respectively.

So if you want to do per-field scoring where *all* of your sims are
vector-space, it could make sense to customize (e.g. subclass)
SchemaSimilarityFactory and do something useful for these methods.


-- 
lucidimagination.com

Mime
View raw message