zhaih commented on a change in pull request #225: URL: https://github.com/apache/lucene/pull/225#discussion_r726750180
########## File path: lucene/core/src/java/org/apache/lucene/search/AutomatonQuery.java ########## @@ -96,12 +110,36 @@ public AutomatonQuery(final Term term, Automaton automaton, int determinizeWorkL */ public AutomatonQuery( final Term term, Automaton automaton, int determinizeWorkLimit, boolean isBinary) { + this(term, automaton, determinizeWorkLimit, isBinary, ByteRunnable.TYPE.DFA); + } + + /** + * Create a new AutomatonQuery from an {@link Automaton}. + * + * @param term Term containing field and possibly some pattern structure. The term text is + * ignored. + * @param automaton Automaton to run, terms that are accepted are considered a match. + * @param determinizeWorkLimit maximum effort to spend determinizing the automaton. If the + * automaton will need more than this much effort, TooComplexToDeterminizeException is thrown. + * Higher numbers require more space but can process more complex automata. + * @param isBinary if true, this automaton is already binary and will not go through the + * UTF32ToUTF8 conversion + * @param runnableType NFA or DFA. See {@link org.apache.lucene.util.automaton.ByteRunnable.TYPE} + * for difference between NFA and DFA. Also note * that NFA has uncertain performance impact Review comment: Ah good catch! I guess it happened when I was moving the last line up. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org