You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hiroaki Kawai (JIRA)" <ji...@apache.org> on 2008/05/19 10:50:55 UTC

[jira] Commented: (LUCENE-1229) NGramTokenFilter optimization in query phase

    [ 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