[ 
https://issues.apache.org/jira/browse/LUCENE-5781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039788#comment-14039788
 ] 

Michael McCandless commented on LUCENE-5781:
--------------------------------------------

Actually I thought this approach was clear?  I.e. it doesn't really
make the code complex.

If you can think of a simpler way I'm all for it ... really I'd like
to understand why the ParametricDescription is creating these dead
states in the first place.  That doesn't seem right; maybe a fix there
would be simpler.

I'll add more comments and remove the TODO.


> don't create unused states in LevenshteinAutomata
> -------------------------------------------------
>
>                 Key: LUCENE-5781
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5781
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 5.0, 4.10
>
>         Attachments: LUCENE-5781.patch
>
>
> While working on LUCENE-5752 I discovered that LevenshteinAutomata creates 
> unused states with cycles.  I think they are basically harmless but we still 
> shouldn't create them?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to