parse to bytes
This commit is contained in:
parent
afd998c482
commit
f01ce61f71
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue