Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Use getSourceAsMap(), required for ES6 and works in ES5 too
  • Loading branch information
jonesde committed Jun 4, 2018
1 parent b01cd91 commit 1512d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/org/moqui/search/SearchServices.xml
Expand Up @@ -321,7 +321,7 @@ along with this software (see the LICENSE.md file). If not, see
SearchHits hits = srb.execute().actionGet().getHits()
for (SearchHit hit in hits) {
Map document = hit.getSource()
Map document = hit.getSourceAsMap()
if (flattenDocument) document = flattenNestedMap(document)
// As of ES 2.0 _index, _type, _id aren't included in the document
Expand Down

0 comments on commit 1512d36

Please sign in to comment.