apache / apache/lucene

Add a copy constructor in AutomatonQuery to copy directly the compiled automaton [LUCENE-8159]

Open
#9,207 10 comments 0 reactions 1 assignee Claimed by @dsmiley View on GitHub
affects-version:trunk legacy-jira-priority:Major module:core/search type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

When the query is composed of multiple AutomatonQuery with the same automaton and which target different fields, it is much more efficient to reuse the already compiled automaton by copying it directly and just changing the target field.

---
Migrated from [LUCENE-8159](https://issues.apache.org/jira/browse/LUCENE-8159) by Bruno Roustant (@bruno-roustant), updated Mar 05 2018
Attachments: [0001-Add-a-copy-constructor-in-AutomatonQuery-to-copy-dir.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8159/0001-Add-a-copy-constructor-in-AutomatonQuery-to-copy-dir.patch), [LUCENE-8159.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8159/LUCENE-8159.patch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.