Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36F6ED509 for ; Wed, 2 Jan 2013 17:10:15 +0000 (UTC) Received: (qmail 36803 invoked by uid 500); 2 Jan 2013 17:10:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 36693 invoked by uid 500); 2 Jan 2013 17:10:13 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 36632 invoked by uid 99); 2 Jan 2013 17:10:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2013 17:10:13 +0000 Date: Wed, 2 Jan 2013 17:10:13 +0000 (UTC) From: "David Smiley (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SOLR-4255) Solr 4 spatial- Add a filter=false local-param to just use the distance based valuesource MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 David Smiley created SOLR-4255: ---------------------------------- Summary: 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 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