Remove Query.rewrite? [LUCENE-6295]
Open
legacy-jira-priority:Minor
type:enhancement
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Queries are a bit hard to consume because of their complicated workflow: your first need to rewrite before creating a weight. Maybe we could simplify it and make query rewriting part of creating the weight?
If a user would like to have access to the rewritten query, he could still call Query.createWeight(searcher, needsScores).getQuery() instead of Query.rewrite?
---
Migrated from [LUCENE-6295](https://issues.apache.org/jira/browse/LUCENE-6295) by Adrien Grand (@jpountz), updated Feb 26 2015
Attachments: [LUCENE-6295.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6295/LUCENE-6295.patch)
Contributor guide
Assessment
This issue has not been assessed yet.