lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4255) Solr 4 spatial- Add a filter=false local-param to just use the distance based valuesource
Date Sun, 06 Jan 2013 06:06:17 GMT

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

Commit Tag Bot commented on SOLR-4255:
--------------------------------------

[trunk commit] David Wayne Smiley
http://svn.apache.org/viewvc?view=revision&revision=1429466

SOLR-4255: add spatial filter=false local-param option

                
> Solr 4 spatial- Add a filter=false local-param to just use the distance based valuesource
> -----------------------------------------------------------------------------------------
>
>                 Key: SOLR-4255
>                 URL: https://issues.apache.org/jira/browse/SOLR-4255
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: David Smiley
>            Assignee: David Smiley
>             Fix For: 4.1
>
>         Attachments: SOLR-4255_spatial_filter_=_false.patch
>
>
> The Solr 4 spatial fields use AbstractSpatialFieldType and by default only filter and
supply 1 as the constant score.  For sorting or boosting, you can add the local-param score="distance"
(or recipDistance) option to have the score of the query be as specified.  However this query
still filters, and in some cases this is redundant.  For example you probably already have
a filter query doing the filter portion, and then you are again using the shape reference
here for a boost query.
> The change is a simple matter of returning the FunctionQuery and not wrapping it in FilteredQuery.

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


Mime
View raw message