1157 Commits

Author SHA1 Message Date
Kishore Nallan
f40637fe64 Enabling exhaustive search should automatically drop tokens. 2023-02-04 21:27:25 +05:30
Kishore Nallan
7df8ea639e Improve range facet value validation + error messages. 2023-02-04 12:24:12 +05:30
Kishore Nallan
f9bd328e48 Add test for eval expression validation. 2023-02-03 18:34:51 +05:30
Harpreet Sangar
16d6a5cbf0 Fix double locking of collection mutex. 2023-02-03 14:30:17 +05:30
Kishore Nallan
d44afc3295 Enabling exhaustive search should automatically drop tokens. 2023-02-02 16:48:18 +05:30
Harpreet Sangar
34f039e584 Add reference_fields map in Collection. 2023-02-02 11:23:09 +05:30
Ozan Armağan
07b456c229
Rate limit API updates & improvements (#846)
* Rate limit procedure updates & improvements

* Review changes

* Update for adding support to delete temp throttles

* Review Changes II

* Review Changes III
2023-01-31 20:57:02 +05:30
Kishore Nallan
20997c9be8 Merge branch 'main' into v0.25
# Conflicts:
#	test/collection_specific_more_test.cpp
2023-01-31 07:23:27 +05:30
Harpreet Sangar
0f2758fb97 Fix Index::get_filter_matches. 2023-01-30 10:31:29 +05:30
Harpreet Sangar
6c19c95af6 Add Index::adaptive_filter. 2023-01-27 19:58:06 +05:30
Harpreet Sangar
5c5f43195c Add Index::rearranging_recursive_filter. 2023-01-27 12:57:13 +05:30
Kishore Nallan
bfb6e65764 Use 408 for search cutoff + no results. 2023-01-26 21:23:09 +05:30
Kishore Nallan
dcfb540b05 Fix test. 2023-01-26 20:45:54 +05:30
Kishore Nallan
08ae11cf1f Fix test. 2023-01-26 19:33:47 +05:30
Kishore Nallan
e8e1772858 Refactor fuzzy search state transition.
Handle extra chars in the middle of a query.
2023-01-26 18:24:43 +05:30
Harpreet Sangar
6c5662bc95 Optimize reference filtering. 2023-01-24 10:57:29 +05:30
Harpreet Sangar
ebfbf4f48d Filter by reference. 2023-01-22 12:02:29 +05:30
Kishore Nallan
eb3c889e13 Merge branch 'v0.24-nested' into v0.25 2023-01-21 21:22:06 +05:30
Kishore Nallan
21f1937138 Don't return nested field details in summary end-points. 2023-01-21 19:01:43 +05:30
Kishore Nallan
d25a021ea9 Don't prune actually empty elements. 2023-01-21 09:42:52 +05:30
Harpreet Sangar
c4730c60b3 Store foo_sequence_id in collection's meta-data. 2023-01-19 11:27:52 +05:30
Harpreet Sangar
0acd2c06c3 Serialize sequence id. 2023-01-19 11:25:43 +05:30
Harpreet Sangar
eef346b29f Index document containing a reference field. 2023-01-18 18:12:25 +05:30
Kishore Nallan
3e774e6f77 Merge branch 'v0.24-nested' into v0.25 2023-01-18 10:41:51 +05:30
Kishore Nallan
695aa514d5 Add test for field with dot in the name but not nested. 2023-01-17 20:08:36 +05:30
Harpreet Sangar
b41db06b1a Abstract foo_sequence_id field from user. 2023-01-17 14:08:39 +05:30
Harpreet Sangar
e16b4b7349 Index foo_sequence_id field that stores sequence_id of referenced document. 2023-01-17 09:49:17 +05:30
Kishore Nallan
7d4466c937 Fix preset restoration. 2023-01-17 09:39:59 +05:30
Harpreet Sangar
aad34c8c5c Fix CollectionManagerTest.RestoreRecordsOnRestart 2023-01-17 09:19:08 +05:30
Harpreet Sangar
bb1c72a8f4 Persist reference field property. 2023-01-16 19:21:17 +05:30
Harpreet Sangar
56d382d1e0 Add reference in field struct. 2023-01-16 13:39:17 +05:30
Kishore Nallan
f6445a0314 Handle preset at the level of each multi search element. 2023-01-15 21:06:10 +05:30
Harpreet Sangar
d7ff4bdc0e
Support wildcard. (#852)
* Support wildcard.

* Add test case for `query_by=user.*`

* Remove duplicate.

* Add WildcardHighlightFields test.

* Add WildcardHighlightFullFields test.

* Review changes.
2023-01-11 20:30:07 +05:30
Kishore Nallan
eda8f2f0f2 Merge branch 'v0.24-nested' into v0.25
# Conflicts:
#	include/collection.h
#	src/collection.cpp
2023-01-10 17:08:22 +05:30
Kishore Nallan
e4f3090f5f Tweak synonym test to directly add syn json. 2023-01-10 17:02:43 +05:30
Kishore Nallan
502e7503b3 Fix include/exclude fields in export for nested docs.
# Conflicts:
#	include/collection.h
#	src/collection.cpp
2023-01-10 16:45:51 +05:30
Kishore Nallan
8b69d524ba Fix include/exclude fields in export for nested docs. 2023-01-10 16:17:41 +05:30
Kishore Nallan
b430e7fa9a Fix test on Clang. 2023-01-09 16:38:17 +05:30
Kishore Nallan
cd5cfc5445 Merge branch 'v0.24-nested' into v0.25
# Conflicts:
#	include/collection.h
#	src/collection.cpp
#	src/collection_manager.cpp
#	src/index.cpp
2023-01-09 16:06:34 +05:30
Kishore Nallan
3d033d1ae9 Flat fields must not be returned in nested fields with include fields. 2023-01-09 15:47:23 +05:30
Kishore Nallan
0fc0f80d21 Parse text match info based on match type. 2023-01-09 13:16:30 +05:30
Harpreet Sangar
37d3d6b256
Support wildcard facet_by. (#850)
* Support wildcard `facet_by`.

* Only trim `*` from wildcard `facet_by`.

* Add test for nested wildcard faceting.

* Nested fields also match `company*`.
2023-01-09 12:45:59 +05:30
Kishore Nallan
44d489ed54 Fix synonym loading regression. 2023-01-06 20:52:05 +05:30
Harpreet Sangar
5f034f8b3b
Update documents using filter_by. (#845)
* Update documents.

* Return number of documents updated in the response.

* Update test.

* Use `add_many` to update documents.

* Test batching of updation.

* Support updation of all documents by `filter_by=*`.

* Update test to work on schema with nesting enabled.

* Fix memory leak.

* Add nested field updation test.

* Remove iterator key comparison.
2023-01-06 12:36:56 +05:30
Kishore Nallan
c2a23a3deb Fix test. 2023-01-05 19:33:54 +05:30
Kishore Nallan
c5f8e59b96 Allow API key to be passed via multi_search body. 2023-01-05 18:48:06 +05:30
Kishore Nallan
679a6cc62f Fix k value for id based vector search. 2023-01-05 14:08:46 +05:30
Kishore Nallan
bc31be874a Add text match modes: max_score and max_weight. 2023-01-04 20:30:30 +05:30
Kishore Nallan
b0fe6284f5 Fix test. 2023-01-03 11:24:46 +05:30
Kishore Nallan
5c75d1553a Merge branch 'bazel-build' into v0.25 2023-01-03 11:02:09 +05:30