apache / apache/lucene

Move TermRangeQuery to sandbox [LUCENE-7336]

Open
#8,390 4 comments 0 reactions 1 assignee Claimed by @mikemccand View on GitHub
legacy-jira-fix-version:6.7 legacy-jira-fix-version:7.0 legacy-jira-priority:Major type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I think, long ago, this class was abused for numeric range searching, if you converted your numeric terms into text terms "carefully", but we now have dimensional points for that, and I think otherwise this query class is quite dangerous: you can easily accidentally make a very costly query.

Furthermore, the common use cases for multi-term queries are already covered by other classes (`PrefixQuery`, `WildcardQuery`, `FuzzyQuery`).

---
Migrated from [LUCENE-7336](https://issues.apache.org/jira/browse/LUCENE-7336) by Michael McCandless (@mikemccand), updated Jun 08 2017

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.