Add slashes around RegexpQuery.toString output for clarity

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376797 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2012-08-24 00:04:29 +00:00
parent 13fd86913c
commit a2c37ef44d
1 changed files with 2 additions and 0 deletions

View File

@ -97,7 +97,9 @@ public class RegexpQuery extends AutomatonQuery {
buffer.append(term.field());
buffer.append(":");
}
buffer.append('/');
buffer.append(term.text());
buffer.append('/');
buffer.append(ToStringUtils.boost(getBoost()));
return buffer.toString();
}