summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-05-04 10:49:04 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-05-04 10:49:04 +0000
commit5ac2795f69a16004e03dc60d5eff208c76870fce (patch)
tree7addd24670bf031c6c6e8bbc445a78bbab628127
parent88775899c648ecca07143542b329e460dfc45675 (diff)
Update comments.
-rw-r--r--searchlib/src/vespa/searchlib/features/queryterm.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/features/queryterm.h b/searchlib/src/vespa/searchlib/features/queryterm.h
index d0ef4ad6d87..91423ec5707 100644
--- a/searchlib/src/vespa/searchlib/features/queryterm.h
+++ b/searchlib/src/vespa/searchlib/features/queryterm.h
@@ -58,13 +58,16 @@ public:
*
* @param env the environment used to lookup TermData object, significance, and connectedness.
* @param termIndex the index to use when looking up the TermData object.
- * @param lookupSignificance whether we should look up the significance for this term.
* @param lookupConnectedness whether we should look up the connectedness this term has with the previous term.
*/
- static QueryTerm create(const fef::IQueryEnvironment & env, uint32_t termIndex,
- bool lookupConnectedness = false);
+ static QueryTerm create(const fef::IQueryEnvironment & env, uint32_t termIndex, bool lookupConnectedness = false);
};
+/**
+ * Helper class to allow simple reuse of processed QueryTermVector
+ * containing all terms in the query. Primary reason is to reduce expensive recomputation
+ * when multiple features need the same and also only compute it once per query and one once per search thread.
+ */
class QueryTermHelper {
public:
QueryTermHelper(const fef::IQueryEnvironment & env);