Trejkaz created LUCENE-6498: ------------------------------- Summary: RegexpQueryNode inconsistent treatment of begin and end parameters Key: LUCENE-6498 URL: https://issues.apache.org/jira/browse/LUCENE-6498 Project: Lucene - Core Issue Type: Bug Components: modules/queryparser Affects Versions: 4.10.4 Reporter: Trejkaz
RegexpQueryNode has some questionable treatment of the begin and end parameters: {code} public RegexpQueryNode(CharSequence field, CharSequence text, int begin, int end) { this.field = field; this.text = text.subSequence(begin, end); } {code} when contrasted with FieldQueryNode: {code} public FieldQueryNode(CharSequence field, CharSequence text, int begin, int end) { this.field = field; this.text = text; this.begin = begin; this.end = end; this.setLeaf(true); } {code} I am now not entirely sure which of the two is correct... -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org