parse to bytes

This commit is contained in:
Shay Banon 2012-12-18 10:20:55 -08:00
parent afd998c482
commit f01ce61f71
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class TermsFacetProcessor extends AbstractComponent implements FacetProce
if ("exclude".equals(currentFieldName)) { if ("exclude".equals(currentFieldName)) {
ImmutableSet.Builder<BytesRef> builder = ImmutableSet.builder(); ImmutableSet.Builder<BytesRef> builder = ImmutableSet.builder();
while ((token = parser.nextToken()) != XContentParser.Token.END_ARRAY) { while ((token = parser.nextToken()) != XContentParser.Token.END_ARRAY) {
builder.add(new BytesRef(parser.text())); builder.add(parser.bytes());
} }
excluded = builder.build(); excluded = builder.build();
} else if ("fields".equals(currentFieldName)) { } else if ("fields".equals(currentFieldName)) {