diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-01-15 16:26:59 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-01-15 16:26:59 +0100 |
commit | da02c60cd2d4b0200c47de53f0bc89df532f08bd (patch) | |
tree | b333312722c290f59ade319c74d94a38052e6781 /searchlib | |
parent | bf4f3338864574021ce7260dd527310e84bfeb32 (diff) |
Add comment for streaming search weighted set term unit test.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/query/streaming_query_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searchlib/src/tests/query/streaming_query_test.cpp b/searchlib/src/tests/query/streaming_query_test.cpp index 52f01af3dff..fe6149e6fba 100644 --- a/searchlib/src/tests/query/streaming_query_test.cpp +++ b/searchlib/src/tests/query/streaming_query_test.cpp @@ -1030,6 +1030,12 @@ TEST(StreamingQueryTest, weighted_set_term) term.get_terms().back()->setWeight(Weight(13)); EXPECT_EQ(2, term.get_terms().size()); SimpleTermData td; + /* + * Search in fields 10, 11 and 12 (cf. fieldset in schema). + * Fields 11 and 12 have content for doc containing the keys. + * Fields 10 and 12 have valid handles and can be used for ranking. + * Field 11 does not have a valid handle, thus no associated match data. + */ td.addField(10); td.addField(11); td.addField(12); |