467 Commits

Author SHA1 Message Date
Kishore Nallan
b2c12a9b2c Fix more edge cases in highlighting. 2021-07-31 08:59:49 +05:30
Kishore Nallan
331db4f27e Add precision option to geo field sorting. 2021-07-27 19:57:56 +05:30
Kishore Nallan
13cb7b9364 Revert "Highlight field value that is a prefix of the query."
This reverts commit 545027a59bc55b24c2fece112b4fa6a655a1f79e.

# Conflicts:
#	test/collection_specific_test.cpp
2021-07-27 17:57:49 +05:30
Kishore Nallan
b4c222064c Handle bad data in ingestion text gracefully. 2021-07-26 19:44:38 +05:30
Kishore Nallan
e45f18785f Ignore id field present in schema. 2021-07-26 19:44:10 +05:30
Kishore Nallan
38d44a7c8a Highlight field value that is a prefix of the query. 2021-07-26 15:33:03 +05:30
Kishore Nallan
89a509513a Ensure that weights can fully control cross-field matching. 2021-07-24 15:08:08 +05:30
Kishore Nallan
e42f78a695 Fix single character full field value highlight. 2021-07-21 19:26:09 +05:30
Kishore Nallan
672c895805 Typo and drop tokens thresholds must be applied independently. 2021-07-16 13:39:52 +05:30
Kishore Nallan
0ae718d067 Use all candidates of a given num_typo value.
Typo tokens threshold should not trigger when we have explored only some of the candidates of a given num_typo value.
2021-07-16 12:07:44 +05:30
Kishore Nallan
bfb122bfec Repeating tokens in an array: fix relevancy. 2021-07-15 15:58:55 +05:30
Kishore Nallan
56247ce6ac Prefix match must be differentiated from single typo. 2021-07-14 11:44:01 +05:30
Kishore Nallan
614f7a9f61 Don't validate the id field. 2021-07-14 11:44:01 +05:30
Kishore Nallan
184ed43727 Improve multi field typo ranking. 2021-07-14 11:44:01 +05:30
Kishore Nallan
9dd3ba9d6d Make typo correction less eager. 2021-07-14 11:44:01 +05:30
Kishore Nallan
091080985f When sorting on geo field, return distance from reference point in response. 2021-07-14 11:44:01 +05:30
Kishore Nallan
0b28e9dc2c Remove deprecated default_resolution config for geo fields. 2021-07-14 11:44:01 +05:30
Kishore Nallan
994f5021e6 Ensure that geopoint is validated before indexing. 2021-07-14 11:44:01 +05:30
Kishore Nallan
d840a88020 Ensure that overrides and synonyms on disk are deleted during colllection drop. 2021-07-14 11:44:01 +05:30
Kishore Nallan
ba212a4c4e Fixed an edge case in collection deletion. 2021-07-14 11:44:01 +05:30
Kishore Nallan
56bbf8df26 Separate geo index for every field + proper deletion. 2021-07-14 11:44:01 +05:30
Kishore Nallan
e4936a9f1a Simplify wildcard query result generation. 2021-07-14 11:44:01 +05:30
Kishore Nallan
d1d8733968 Allow facet query value to contain colon. 2021-07-14 11:44:01 +05:30
Kishore Nallan
5cbf810fe5 Fix upsert behavior: should accept only whole documents. 2021-07-14 11:44:01 +05:30
Kishore Nallan
315d4d0aed Fix intersection on empty posting lists. 2021-07-14 11:44:01 +05:30
Kishore Nallan
3428a740b6 Fixed an edge case with posting list block merging. 2021-07-14 11:44:01 +05:30
Kishore Nallan
6b41c3bf29 Support not equals on boolean filds. 2021-07-14 11:44:01 +05:30
Kishore Nallan
f9c9c56c89 Disallow empty filter values + add bounds checks. 2021-07-14 11:44:01 +05:30
Kishore Nallan
a66123f961 Use != as negation operation to cope with numbers also. 2021-07-14 11:44:01 +05:30
Kishore Nallan
9015575ac8 Fix edge case in NOT_EQUALS filtering.
When no results are found at all prior to negation, no results were being returned, when everything should be returned.
2021-07-14 11:44:01 +05:30
Kishore Nallan
5377d25152 Add test for numerical range filtering. 2021-07-14 11:44:01 +05:30
Kishore Nallan
dbeb00debe Allow field highlighting independent of query_by fields. 2021-07-14 11:44:01 +05:30
Kishore Nallan
72a240888e Disallow primary key value being created as a custom key. 2021-07-14 11:44:01 +05:30
Kishore Nallan
4d23be5643 Fix queries with hyphens not matching indexed text. 2021-07-14 11:44:01 +05:30
Kishore Nallan
fba1c498e8 Refactor block insertor. 2021-07-14 11:44:01 +05:30
Kishore Nallan
7641b5fc15 Fix compact positing list capacity expansion. 2021-07-14 11:44:01 +05:30
Kishore Nallan
ac988a7023 Fix block intersection contination. 2021-07-14 11:44:01 +05:30
Kishore Nallan
07a0bff0ba Add contains one helper for posting list. 2021-07-14 11:44:01 +05:30
Kishore Nallan
ef1badb077 Add contains for posting list. 2021-07-14 11:44:01 +05:30
Kishore Nallan
70f970b80c Posting list merge. 2021-07-14 11:44:01 +05:30
Kishore Nallan
36580dfb62 Posting list: split up intersection and offset compute. 2021-07-14 11:44:01 +05:30
Kishore Nallan
0e967a9c44 Disallow use of type auto for a non-wildcard containing field. 2021-07-14 11:44:01 +05:30
Kishore Nallan
8dde664736 Validate against empty synonym string. 2021-07-14 11:44:01 +05:30
Kishore Nallan
c00f9c9a73 Ability to disable overrides. 2021-07-14 11:44:01 +05:30
Kishore Nallan
2391dad879 Field level prefix configuration. 2021-07-14 11:44:01 +05:30
Kishore Nallan
01940dd6bb Track num ids of posting lists. 2021-07-14 11:44:01 +05:30
Kishore Nallan
81270d9389 Add a few locale tokenization tests. 2021-07-14 11:44:01 +05:30
Kishore Nallan
2b953c68e3 Allow search query to be pre-segmented. 2021-07-14 11:44:01 +05:30
Kishore Nallan
7c4aff5268 Implement exclude_radius option for geopoint sorting. 2021-07-14 11:44:01 +05:30
Kishore Nallan
da3de68129 Support Chinese locale. 2021-07-14 11:44:01 +05:30