check on sourceRef, so it won't convert to bytes without needing to
This commit is contained in:
parent
d73a6663b7
commit
e70cf1849b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue