check on sourceRef, so it won't convert to bytes without needing to

This commit is contained in:
Shay Banon 2013-01-04 07:47:18 +01:00
parent d73a6663b7
commit e70cf1849b
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ public class TransportMoreLikeThisAction extends TransportAction<MoreLikeThisReq
}
private void parseSource(GetResponse getResponse, final BoolQueryBuilder boolBuilder, DocumentMapper docMapper, final Set<String> fields, final MoreLikeThisRequest request) {
if (getResponse.source() == null) {
if (getResponse.isSourceEmpty()) {
return;
}
docMapper.parse(SourceToParse.source(getResponse.sourceRef()).type(request.type()).id(request.id()), new DocumentMapper.ParseListenerAdapter() {