aboutsummaryrefslogtreecommitdiff
path: root/icing/query/query-results.h
diff options
context:
space:
mode:
Diffstat (limited to 'icing/query/query-results.h')
-rw-r--r--icing/query/query-results.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/icing/query/query-results.h b/icing/query/query-results.h
index 52cdd71..983ab35 100644
--- a/icing/query/query-results.h
+++ b/icing/query/query-results.h
@@ -18,9 +18,10 @@
#include <memory>
#include <unordered_set>
+#include "icing/index/embed/embedding-query-results.h"
#include "icing/index/iterator/doc-hit-info-iterator.h"
-#include "icing/query/query-terms.h"
#include "icing/query/query-features.h"
+#include "icing/query/query-terms.h"
namespace icing {
namespace lib {
@@ -35,6 +36,10 @@ struct QueryResults {
// beginning with root_iterator.
// This will only be populated when ranking_strategy == RELEVANCE_SCORE.
QueryTermIteratorsMap query_term_iterators;
+ // Contains similarity scores from embedding based queries, which will be used
+ // in the advanced scoring language to determine the results for the
+ // "this.matchedSemanticScores(...)" function.
+ EmbeddingQueryResults embedding_query_results;
// Features that are invoked during query execution.
// The list of possible features is defined in query_features.h.
std::unordered_set<Feature> features_in_use;