Skip to content

Commit

Permalink
Stored binary fields to change internal representation (break Java AP…
Browse files Browse the repository at this point in the history
…I if used), closes #2092.
  • Loading branch information
kimchy committed Jul 9, 2012
1 parent 496e357 commit 383e965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public GetResult innerGet(String type, String id, String[] gFields, boolean real
}
if (value == null) {
if (field.isBinary()) {
value = field.getBinaryValue();
value = new BytesArray(field.getBinaryValue(), field.getBinaryOffset(), field.getBinaryLength());
} else {
value = field.stringValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void execute(SearchContext context) {
}
if (value == null) {
if (field.isBinary()) {
value = field.getBinaryValue();
value = new BytesArray(field.getBinaryValue(), field.getBinaryOffset(), field.getBinaryLength());
} else {
value = field.stringValue();
}
Expand Down

0 comments on commit 383e965

Please sign in to comment.