Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 5801 invoked from network); 27 Mar 2009 20:56:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 20:56:14 -0000 Received: (qmail 3715 invoked by uid 500); 27 Mar 2009 20:56:13 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 3644 invoked by uid 500); 27 Mar 2009 20:56:13 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 3636 invoked by uid 99); 27 Mar 2009 20:56:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 20:56:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 20:56:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6F570234C003 for ; Fri, 27 Mar 2009 13:55:50 -0700 (PDT) Message-ID: <15909279.1238187350444.JavaMail.jira@brutus> Date: Fri, 27 Mar 2009 13:55:50 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1571) DistanceFilter problem with deleted documents In-Reply-To: <336752755.1237952030784.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-1571: --------------------------------------- Fix Version/s: 2.9 > DistanceFilter problem with deleted documents > --------------------------------------------- > > Key: LUCENE-1571 > URL: https://issues.apache.org/jira/browse/LUCENE-1571 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/spatial > Environment: N/A > Reporter: Phillip Rhodes > Fix For: 2.9 > > > I know this is the locallucene lib, but wanted to make sure we don't get this bug when it gets into lucene contrib. > I suspect that the issue is that deleted documents are trying to be evaluated by the filter. I did some debugging and I confirmed that it is bombing on a document that is marked as deleted (using Luke). > Thanks! > Using the locallucene library 1.51, I get a NullPointerException at line 123 of DistanceFilter > The method is public BitSet bits(IndexReader reader) > The line is double x = NumberUtils.SortableStr2double(sx); > The stack trace is: > java.lang.NullPointerException > at org.apache.solr.util.NumberUtils.SortableStr2long(NumberUtils.java:149) > at org.apache.solr.util.NumberUtils.SortableStr2double(NumberUtils.java:104) > at com.pjaol.search.geo.utils.DistanceFilter.bits(DistanceFilter.java:123) > at org.apache.lucene.search.Filter.getDocIdSet(Filter.java:49) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:140) > at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:112) > at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113) > at org.apache.lucene.search.Hits.(Hits.java:90) > at org.apache.lucene.search.Searcher.search(Searcher.java:72) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org