[
https://issues.apache.org/jira/browse/LUCENE-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir updated LUCENE-2606:
--------------------------------
Attachment: LUCENE-2606.patch
attached is another iteration:
* because the Query stores RegexCapabilities, i pulled the 'matcher' stuff out
so the enum just calls matcher = capability.compile(pattern);
This way the capabilities stores no real state, only the matcher which is
created in the TermsEnum.
* the RegexCapabilities is also marked serializable (LUCENE-961)
> optimize contrib/regex for flex
> -------------------------------
>
> Key: LUCENE-2606
> URL: https://issues.apache.org/jira/browse/LUCENE-2606
> Project: Lucene - Java
> Issue Type: Improvement
> Components: contrib/*
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-2606.patch, LUCENE-2606.patch
>
>
> * changes RegexCapabilities match(String) to match(BytesRef)
> * the jakarta and jdk impls uses CharacterIterator/CharSequence matching
> against the utf16result instead.
> * i also reuse the matcher for jdk, i don't see why we didnt do this before
> but it makes sense esp since we reuse the CSQ
--
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: [email protected]
For additional commands, e-mail: [email protected]