[ 
https://issues.apache.org/jira/browse/LUCENE-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man reassigned LUCENE-4801:
--------------------------------

    Assignee: Hoss Man

bq. The documentation for SweetSpotSimilarity says that you can configure a 
global min/max and also a min/max per field, however at looking at the source 
and just trying to accomplish this it looks as though it's not possible. Is 
that correct?

Looks like the class level javadocs got overlooked when the whole similarity 
API contract got revamped -- i'll remove all those references to global setters.

bq. Is there a way to accomplish that without writing my own 
SweetSpotSimilarityFactory?

I thought so, but it doesn't look like it -- apparently SOLR-1365 never got 
finalized after  SOLR-2338 was committed
                
> Documentation is incorrect for org.apache.lucene.misc.SweetSpotSimilarity
> -------------------------------------------------------------------------
>
>                 Key: LUCENE-4801
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4801
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 4.0-ALPHA
>            Reporter: Andrew Schoen
>            Assignee: Hoss Man
>            Priority: Minor
>              Labels: documentation
>
> The documentation for SweetSpotSimilarity says that you can configure a 
> global min/max and also a min/max per field, however at looking at the source 
> and just trying to accomplish this it looks as though it's not possible.  Is 
> that correct?
> I looked into using SchemaSimilarityFactory as a global Similarity and then 
> using SweetSpotSimilarity on a fieldType, but was not able to configure the 
> min and max values.  Is there a way to accomplish that without writing my own 
> SweetSpotSimilarityFactory?
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to