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 B5232D7AF for ; Wed, 12 Sep 2012 03:21:10 +0000 (UTC) Received: (qmail 67200 invoked by uid 500); 12 Sep 2012 03:21:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 67154 invoked by uid 500); 12 Sep 2012 03:21:09 -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 67100 invoked by uid 99); 12 Sep 2012 03:21:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 03:21:07 +0000 Date: Wed, 12 Sep 2012 14:21:07 +1100 (NCT) From: "David Smiley (JIRA)" To: dev@lucene.apache.org Message-ID: <1844909634.67431.1347420067525.JavaMail.jiratomcat@arcas> In-Reply-To: <1892917613.65593.1347398527829.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (LUCENE-4375) Spatial BBoxIntersects and BBoxWithin are used incorrectly 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/LUCENE-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Smiley updated LUCENE-4375: --------------------------------- Attachment: LUCENE-4375_Fix_use_of_BBoxWithin_BBoxIntersects_and_IsWithin.patch This patch addresses the BBoxWithin and BBoxIntersects misuse. I also noticed problematic use of IsWithin by PrefixTreeStrategy. A PrefixTreeStrategy can index all shapes, not just points, so it can't be sure if IsWithin is supported. It seemed simple enough to remove support for it but in order to make the tests pass I had to change various test references to "IsWithin" and make it Intersects, like renaming cities-IsWithin-BBox.txt to use Intersects in its name and content. Perhaps it wouldn't be too much of a hack for this strategy to have a pointOnly boolean which has the side-effect of making IsWithin synonymous with Intersects? > Spatial BBoxIntersects and BBoxWithin are used incorrectly > ---------------------------------------------------------- > > Key: LUCENE-4375 > URL: https://issues.apache.org/jira/browse/LUCENE-4375 > Project: Lucene - Core > Issue Type: Bug > Reporter: David Smiley > Assignee: David Smiley > Fix For: 4.0 > > Attachments: LUCENE-4375_Fix_use_of_BBoxWithin_BBoxIntersects_and_IsWithin.patch > > > SpatialOperation has two special BBoxIntersects and BBoxWithin choices. I assumed these where the bounding boxes of the query shape but [~ryantxu] informed me these are supposed to be for the *indexed shape*. There is no strategy in Lucene spatial that could use this but there is one externally -- JtsGeoStrategy. Javadocs should be added to clarify, and various places like SpatialArgs.getShape() should be fixed to not use it incorrectly. > This does remove a feature from the Solr adapters side; the test there will need to change. -- 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