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:
Erik Hatcher 2005-11-19 20:01:18 +00:00
parent b7f89acd31
commit a5cd1e7e1b
1 changed files with 2 additions and 0 deletions

View File

@ -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);