github.com/altipla-consulting/ravendb-go-client@v0.1.3/query_result.go (about) 1 package ravendb 2 3 // QueryResults represents results of a query 4 type QueryResult struct { 5 GenericQueryResult 6 } 7 8 func (r *QueryResult) createSnapshot() *QueryResult { 9 queryResult := *r 10 11 /* TBD 4.1 12 Map<String, Map<String, List<String>>> highlightings = getHighlightings(); 13 14 if (highlightings != null) { 15 Map<String, Map<String, List<String>>> newHighlights = new HashMap<>(); 16 for (Map.Entry<String, Map<String, List<String>>> hightlightEntry : getHighlightings().entrySet()) { 17 newHighlights.put(hightlightEntry.getKey(), new HashMap<>(hightlightEntry.getValue())); 18 } 19 queryResult.setHighlightings(highlightings); 20 }*/ 21 22 queryResult.ScoreExplanations = dupMapStringString(r.ScoreExplanations) 23 queryResult.TimingsInMs = dupMapStringFloat64(r.TimingsInMs) 24 return &queryResult 25 }