Stored binary fields to change internal representation (break Java API if used), closes #2092.
This commit is contained in:
parent
e91a0d85a7
commit
1a085d9bfa
|
@ -167,7 +167,7 @@ public class ShardGetService extends AbstractIndexShardComponent {
|
|||
}
|
||||
if (value == null) {
|
||||
if (field.isBinary()) {
|
||||
value = field.getBinaryValue();
|
||||
value = new BytesArray(field.getBinaryValue(), field.getBinaryOffset(), field.getBinaryLength());
|
||||
} else {
|
||||
value = field.stringValue();
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ public class FetchPhase implements SearchPhase {
|
|||
}
|
||||
if (value == null) {
|
||||
if (field.isBinary()) {
|
||||
value = field.getBinaryValue();
|
||||
value = new BytesArray(field.getBinaryValue(), field.getBinaryOffset(), field.getBinaryLength());
|
||||
} else {
|
||||
value = field.stringValue();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue