aboutsummaryrefslogtreecommitdiffstats
path: root/streamingvisitors
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2023-01-12 14:40:39 +0000
committerGeir Storli <geirst@yahooinc.com>2023-01-12 14:40:39 +0000
commitca18a63e3b492b218026ca012970d4bb7cecc992 (patch)
tree169dd9600b7501d3dfd58c73c2e54c1de99d6a42 /streamingvisitors
parent6520197c31113ba7cb173138f2431d3a481ab494 (diff)
Expose SameElement query terms to ranking.
A TermFieldMatchData is allocated per SameElement term, and this is used to signal matching docids in doUnpack() on the SameElement search iterator. This allows using the matches() rank feature on a field (virtual) that is searched using a SameElement term.
Diffstat (limited to 'streamingvisitors')
-rw-r--r--streamingvisitors/src/tests/matching_elements_filler/matching_elements_filler_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/streamingvisitors/src/tests/matching_elements_filler/matching_elements_filler_test.cpp b/streamingvisitors/src/tests/matching_elements_filler/matching_elements_filler_test.cpp
index cf9494a9f27..59e84b7d08c 100644
--- a/streamingvisitors/src/tests/matching_elements_filler/matching_elements_filler_test.cpp
+++ b/streamingvisitors/src/tests/matching_elements_filler/matching_elements_filler_test.cpp
@@ -102,7 +102,7 @@ struct MyQueryBuilder : public search::query::QueryBuilder<search::query::Simple
}
}
void make_same_element(vespalib::string field, BoundTerm term1, int32_t id1, BoundTerm term2, int32_t id2) {
- addSameElement(2, field);
+ addSameElement(2, field, 0, Weight(0));
add_term(term1, id1);
add_term(term2, id2);
}