[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-133) Allow overriding DefaultSimilarity for indexing and searching (Nick Vincent)

Tobias Hill (JIRA) noreply at atlassian.com
Mon May 5 01:54:33 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30117 ] 

Tobias Hill commented on HSEARCH-133:
-------------------------------------

A small workaround for this is to set the default similarity statically in Lucene (which works in HibernateSearch also) like this: 

Similarity.setDefault(new YourOwnSimilarity());

Set this during startup of your application for instance. Even though I generally don't like classloader-wide static settings ... it is currently 'good enough' for our needs.


> Allow overriding DefaultSimilarity for indexing and searching (Nick Vincent)
> ----------------------------------------------------------------------------
>
>                 Key: HSEARCH-133
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-133
>             Project: Hibernate Search
>          Issue Type: New Feature
>          Components: engine, query
>            Reporter: John Griffin
>            Assignee: John Griffin
>             Fix For: 3.1.0
>
>         Attachments: similarity.diff, similaritypatch.txt
>
>
> Ability to override DefaultSimilarity for indexing and searching should be implemented. Access is necessary in both places because changing only one and then querying has undefined results as far as scores are concerned.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list