Skip to content

RegexpQueryNode inconsistent treatment of begin and end parameters [LUCENE-6498] #7557

Open
@asfimport

Description

@asfimport

RegexpQueryNode has some questionable treatment of the begin and end parameters:

  public RegexpQueryNode(CharSequence field, CharSequence text, int begin,
      int end) {
    this.field = field;
    this.text = text.subSequence(begin, end);
  }

when contrasted with FieldQueryNode:

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

I am now not entirely sure which of the two is correct...


Migrated from LUCENE-6498 by Trejkaz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions