mirror of
https://github.com/apache/lucene.git
synced 2025-02-06 10:08:58 +00:00
add getTerm to SpanRegexQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@345677 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b7f89acd31
commit
a5cd1e7e1b
@ -23,6 +23,8 @@ public class SpanRegexQuery extends SpanQuery {
|
||||
this.term = term;
|
||||
}
|
||||
|
||||
public Term getTerm() { return term; }
|
||||
|
||||
public Query rewrite(IndexReader reader) throws IOException {
|
||||
Query orig = new RegexQuery(term).rewrite(reader);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user