Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 67513 invoked from network); 19 May 2008 08:51:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 08:51:22 -0000 Received: (qmail 30024 invoked by uid 500); 19 May 2008 08:51:22 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 29655 invoked by uid 500); 19 May 2008 08:51:21 -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 29635 invoked by uid 99); 19 May 2008 08:51:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 01:51:21 -0700 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; Mon, 19 May 2008 08:50:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B4D9234C118 for ; Mon, 19 May 2008 01:50:55 -0700 (PDT) Message-ID: <1003231923.1211187055635.JavaMail.jira@brutus> Date: Mon, 19 May 2008 01:50:55 -0700 (PDT) From: "Hiroaki Kawai (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1229) NGramTokenFilter optimization in query phase In-Reply-To: <1428805945.1205461884217.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597897#action_12597897 ] Hiroaki Kawai commented on LUCENE-1229: --------------------------------------- {quote} I think that makes sense, as long as the positions are right, so that even if we put ab cd de in a phrase query (e.g. "ab bc de") that matches "a ab b bc c cd d de e". Is that the case? {quote} Yes, exactly. :) Actually, phrase query is performed internally in Lucene core. > NGramTokenFilter optimization in query phase > -------------------------------------------- > > Key: LUCENE-1229 > URL: https://issues.apache.org/jira/browse/LUCENE-1229 > Project: Lucene - Java > Issue Type: Improvement > Components: contrib/* > Reporter: Hiroaki Kawai > Assignee: Otis Gospodnetic > Attachments: NGramTokenFilter.patch > > > I found that NGramTokenFilter-ed token stream could be optimized in query. > A standard 1,2 NGramTokenFilter will generate a token stream from "abcde" as follows: > a ab b bc c cd d de e > When we index "abcde", we'll use all of the tokens. > But when we query, we only need: > ab cd de -- 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