lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3749) Similarity.java javadocs and simplifications for 4.0
Date Sun, 04 Mar 2012 23:38:59 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-3749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222059#comment-13222059
] 

Robert Muir commented on LUCENE-3749:
-------------------------------------

This patch does not break anything, it changes the configuration mechanism for an unreleased
feature.

if you want a per-field similarity, then configure a <similarity> in your schema.xml
that
extends PerFieldSimilarityWrapper. If you want it to defer to the fieldType in the schema,
then make it SchemaAware so that its initialized with an IndexSchema object.

An example one (SchemaSimilarityFactory) is provided that just this, and here is its test:
http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/test-files/solr/conf/schema-sim.xml
                
> Similarity.java javadocs and simplifications for 4.0
> ----------------------------------------------------
>
>                 Key: LUCENE-3749
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3749
>             Project: Lucene - Java
>          Issue Type: Task
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3749.patch, LUCENE-3749_part2.patch
>
>
> As part of adding additional scoring systems to lucene, we made a lower-level Similarity
> and the existing stuff became e.g. TFIDFSimilarity which extends it.
> However, I always feel bad about the complexity introduced here (though I do feel there
> are some "excuses", that its a difficult challenge).
> In order to try to mitigate this, we also exposed an easier API (SimilarityBase) on top
of 
> it that makes some assumptions (and trades off some performance) to try to provide something

> consumable for e.g. experiments.
> Still, we can cleanup a few things with the low-level api: fix outdated documentation
and
> shoot for better/clearer naming etc.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message