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

David Smiley updated SOLR-2451:
-------------------------------

    Attachment: Fix_SOLR-2451_for_a_custom_delta.patch
    
> Enhance SolrTestCaseJ4 to allow tests to account for small deltas when 
> comparing floats/doubles
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2451
>                 URL: https://issues.apache.org/jira/browse/SOLR-2451
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 3.2, 4.0
>
>         Attachments: Fix_SOLR-2451_for_a_custom_delta.patch, SOLR-2451.patch, 
> SOLR-2451.patch, SOLR-2451_assertQScore.patch
>
>
> Attached is a patch that adds the following method to SolrTestCaseJ4:  (just 
> javadoc & signature shown)
> {code:java}
>   /**
>    * Validates that the document at the specified index in the results has 
> the specified score, within 0.0001.
>    */
>   public static void assertQScore(SolrQueryRequest req, int docIdx, float 
> targetScore) {
> {code}
> This is especially useful for geospatial in which slightly different 
> precision deltas might occur when trying different geospatial indexing 
> strategies are used, assuming the score is some geospatial distance.  This 
> patch makes a simple modification to DistanceFunctionTest to use it.

--
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to