You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Trejkaz (JIRA)" <ji...@apache.org> on 2015/05/25 05:55:17 UTC
[jira] [Created] (LUCENE-6498) RegexpQueryNode inconsistent
treatment of begin and end parameters
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org