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 B33BCC6AB for ; Thu, 1 Jan 2015 20:28:13 +0000 (UTC) Received: (qmail 74140 invoked by uid 500); 1 Jan 2015 20:28:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 74077 invoked by uid 500); 1 Jan 2015 20:28: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 74067 invoked by uid 99); 1 Jan 2015 20:28:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jan 2015 20:28:13 +0000 Date: Thu, 1 Jan 2015 20:28:13 +0000 (UTC) From: "David Smiley (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-6797) Add score=degrees|kilometers|miles for AbstractSpatialFieldType MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-6797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Smiley updated SOLR-6797: ------------------------------- Fix Version/s: Trunk 5.0 Assignee: David Smiley > Add score=degrees|kilometers|miles for AbstractSpatialFieldType > --------------------------------------------------------------- > > Key: SOLR-6797 > URL: https://issues.apache.org/jira/browse/SOLR-6797 > Project: Solr > Issue Type: Improvement > Components: spatial > Reporter: David Smiley > Assignee: David Smiley > Fix For: 5.0, Trunk > > Attachments: SOLR-6797.patch, SOLR-6797.patch, SOLR-6797.patch, SOLR-6797.patch, SOLR-6797.patch > > > Annoyingly, the units="degrees" attribute is required for fields extending AbstractSpatialFieldType (e.g. RPT, BBox). And it doesn't really have any effect. I propose the following: > * Simply drop the attribute; ignore it if someone sets it to "degrees" (for back-compat). > * When using score="distance", or score=area or area2D (as seen in BBoxField) then use kilometers if geo=true, otherwise degrees. > * Add support for score=degrees|kilometers|miles|degrees -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org