lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3873) tie MockGraphTokenFilter into all analyzers tests
Date Mon, 26 Mar 2012 14:20:27 GMT


Michael McCandless commented on LUCENE-3873:

I agree we can use it in specific places for starters...

The patch on LUCENE-3848 mixes in "TokenStream to Automaton" and MockGraphTokenFilter; I'll
split that apart and only commit MockGraphTokenFilter here.

One problem is... MockGraphTokenFilter isn't setting offsets currently.... I think to do this
"correctly" it needs to buffer up pending input tokens, until it's reached the posLength it
wants to output for a random token, and then set the offset accordingly.
> tie MockGraphTokenFilter into all analyzers tests
> -------------------------------------------------
>                 Key: LUCENE-3873
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: modules/analysis
>            Reporter: Robert Muir
>            Assignee: Michael McCandless
> Mike made a MockGraphTokenFilter on LUCENE-3848.
> Many filters currently arent tested with anything but a simple tokenstream.
> we should test them with this, too, it might find bugs (zero-length terms,
> stacked terms/synonyms, etc)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message