lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiroaki Kawai (JIRA)" <>
Subject [jira] Commented: (LUCENE-1229) NGramTokenFilter optimization in query phase
Date Mon, 19 May 2008 08:50:55 GMT


Hiroaki Kawai commented on LUCENE-1229:

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?

Yes, exactly. :)

Actually, phrase query is performed internally in Lucene core.

> NGramTokenFilter optimization in query phase
> --------------------------------------------
>                 Key: LUCENE-1229
>                 URL:
>             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:
For additional commands, e-mail:

View raw message