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 7583B17C3D for ; Fri, 10 Apr 2015 19:59:16 +0000 (UTC) Received: (qmail 48017 invoked by uid 500); 10 Apr 2015 19:59:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 47945 invoked by uid 500); 10 Apr 2015 19:59:15 -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 47934 invoked by uid 99); 10 Apr 2015 19:59:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 19:59:15 +0000 Date: Fri, 10 Apr 2015 19:59:15 +0000 (UTC) From: "David Smiley (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (LUCENE-5579) Spatial, enhance RPT to differentiate confirmed from non-confirmed hits, then validate with SDV 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-5579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Smiley resolved LUCENE-5579. ---------------------------------- Resolution: Fixed Fix Version/s: 5.2 Lucene Fields: New,Patch Available (was: New) > Spatial, enhance RPT to differentiate confirmed from non-confirmed hits, then validate with SDV > ----------------------------------------------------------------------------------------------- > > Key: LUCENE-5579 > URL: https://issues.apache.org/jira/browse/LUCENE-5579 > Project: Lucene - Core > Issue Type: New Feature > Components: modules/spatial > Reporter: David Smiley > Assignee: David Smiley > Fix For: 5.2 > > Attachments: LUCENE-5579_CompositeSpatialStrategy.patch, LUCENE-5579_CompositeSpatialStrategy.patch, LUCENE-5579_SPT_leaf_covered.patch, spatial.alg > > > If a cell is within the query shape (doesn't straddle the edge), then you can be sure that all documents it matches are a confirmed hit. But if some documents are only on the edge cells, then those documents could be validated against SerializedDVStrategy for precise spatial search. This should be *much* faster than using RPT and SerializedDVStrategy independently on the same search, particularly when a lot of documents match. > Perhaps this'll be a new RPT subclass, or maybe an optional configuration of RPT. This issue is just for the Intersects predicate, which will apply to Disjoint. Until resolved in other issues, the other predicates can be handled in a naive/slow way by creating a filter that combines RPT's filter and SerializedDVStrategy's filter using BitsFilteredDocIdSet. > One thing I'm not sure of is how to expose to Lucene-spatial users the underlying functionality such that they can put other query/filters in-between RPT and the SerializedDVStrategy. Maybe that'll be done by simply ensuring the predicate filters have this capability and are public. > It would be ideal to implement this capability _after_ the PrefixTree term encoding is modified to differentiate edge leaf-cells from non-edge leaf cells. This distinction will allow the code here to make more confirmed matches. -- 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