Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 42859 invoked from network); 12 Jun 2009 20:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jun 2009 20:01:19 -0000 Received: (qmail 6624 invoked by uid 500); 12 Jun 2009 20:01:30 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 6547 invoked by uid 500); 12 Jun 2009 20:01:30 -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 6539 invoked by uid 99); 12 Jun 2009 20:01:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 20:01:30 +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, 12 Jun 2009 20:01:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B52C1234C004 for ; Fri, 12 Jun 2009 13:01:07 -0700 (PDT) Message-ID: <38556088.1244836867730.JavaMail.jira@brutus> Date: Fri, 12 Jun 2009 13:01:07 -0700 (PDT) From: "Billow Gao (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1599) SpanRegexQuery and SpanNearQuery is not working with MultiSearcher In-Reply-To: <1411314176.1239641174960.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-1599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718958#action_12718958 ] Billow Gao commented on LUCENE-1599: ------------------------------------ I rewrote the MultiSearcher for my system. Actually, we rewrote most lucene analyzer/parser/search functions... So my patch won't work for others. I will look into the SpanQuery function when I get a chance. I believe that our patch should be applied there. Also, I don't like MultiSearcher's combine function. > SpanRegexQuery and SpanNearQuery is not working with MultiSearcher > ------------------------------------------------------------------ > > Key: LUCENE-1599 > URL: https://issues.apache.org/jira/browse/LUCENE-1599 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/* > Affects Versions: 2.4.1 > Environment: lucene-core 2.4.1, lucene-regex 2.4.1 > Reporter: Billow Gao > Fix For: 2.9 > > Attachments: TestSpanRegexBug.java > > Original Estimate: 2h > Remaining Estimate: 2h > > MultiSearcher is using: > queries[i] = searchables[i].rewrite(original); > to rewrite query and then use combine to combine them. > But SpanRegexQuery's rewrite is different from others. > After you call it on the same query, it always return the same rewritten queries. > As a result, only search on the first IndexSearcher work. All others are using the first IndexSearcher's rewrite queries. > So many terms are missing and return unexpected result. > Billow -- 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