257 Commits

Author SHA1 Message Date
Kishore Nallan
0b904a3d6b Members of a curated group should not repeat. 2023-04-24 17:23:27 +05:30
Kishore Nallan
47f0808396 Upgrade hnsw dep. 2023-04-22 10:18:09 +05:30
Kishore Nallan
48119f76eb Consider dropped token in text match calculation. 2023-04-10 12:19:21 +05:30
ozanarmagan
7d2d3f3910 Removed unused function 2023-04-08 00:31:44 +03:00
ozanarmagan
7ae3cc9781 Review Changes II 2023-04-07 23:56:25 +03:00
Kishore Nallan
5029d375ff Support pagination via offset parameter. 2023-04-02 14:08:29 +05:30
Kishore Nallan
be5e43061c Support field weights in phrase search. 2023-03-18 20:53:32 +05:30
Harpreet Sangar
63f8d33b5f Add comments. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
2a1feae0ee Add comments. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
cd2f5be875 Remove Index::adaptive_filter. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
f38f3f9792 Remove filter_node_t::metrics.
Update function signatures to accept context ids.
2023-03-10 18:18:46 +05:30
Harpreet Sangar
db555d36ad Refactor tests. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
84787510c8 Handle reference filter during approximation. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
94add54c43 temp. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
39a0270434 Add reference_fields map in Collection. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
eacd644d3a Add Index::rearranging_recursive_filter. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
076a04c062 Optimize reference filtering. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
bb4c0af996 Fix rebase error. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
a11a899a4c Add reference_fields map in Collection. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
753aa29888 Add Index::rearranging_recursive_filter. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
1d3e05f2cb Optimize reference filtering. 2023-03-10 18:18:46 +05:30
Harpreet Sangar
e78d209911 Add filter_result_t struct.
Add `reference_filter_result_t` struct.
Add support for lazy filtering.
Update `rearrange_filter_tree` to return approximate count of filter matches.
2023-03-10 18:18:46 +05:30
Kishore Nallan
1bcacfacff Merge branch 'v0.25' into v0.25-join 2023-03-05 10:56:31 +05:30
Kishore Nallan
f48b9ffe6e Extract doc validation functions out. 2023-03-05 10:55:42 +05:30
Kishore Nallan
b03c84cb4a Merge branch 'v0.25' into v0.25-join 2023-03-05 09:30:45 +05:30
krunal1313
7b59484e2f refactoring 2023-02-28 11:27:33 +05:30
krunal1313
7a06e11e39 adding hits count for each group in group_by operation 2023-02-24 12:12:55 +05:30
Harpreet Sangar
c2211e914d temp. 2023-02-15 16:48:44 +05:30
Harpreet Sangar
da1b327749 Refactor rearranging_recursive_filter. 2023-02-03 17:09:24 +05:30
Harpreet Sangar
16d6a5cbf0 Fix double locking of collection mutex. 2023-02-03 14:30:17 +05:30
Harpreet Sangar
34f039e584 Add reference_fields map in Collection. 2023-02-02 11:23:09 +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
Harpreet Sangar
6c5662bc95 Optimize reference filtering. 2023-01-24 10:57:29 +05:30
Krunal Gandhi
e6c3017352
Single value facet (#854)
* single valued facet initial commit

* refactoring and bug fixes

* modularizing repeatative code to function call
2023-01-13 13:21:06 +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
bc31be874a Add text match modes: max_score and max_weight. 2023-01-04 20:30:30 +05:30
Kishore Nallan
5c75d1553a Merge branch 'bazel-build' into v0.25 2023-01-03 11:02:09 +05:30
Kishore Nallan
b8b9fb20b3 Merge branch 'v0.24-nested' into v0.25
# Conflicts:
#	include/collection.h
#	src/collection.cpp
#	src/collection_manager.cpp
#	test/collection_faceting_test.cpp
2023-01-03 09:42:21 +05:30
Kishore Nallan
bf0f7430a0 Allow vector query to pass a document ID. 2023-01-01 18:00:50 +05:30
Harpreet Sangar
34b16cdb21
Add != compatibility for numeric type. (#835)
* Add `!=` compatibility for numeric type.

* Add `numeric_not_equals_filter` method.

* Refactor `numeric_not_equals_filter` method.

* Support `!=` for numeric field multi-value filter_by.

* Ignore local settings file.

* Add comment.

* Add tests.

* Update negation test.

* Set `apply_not_equals` flag for string fields as well.

* Add `field: [!=value]` test.
2022-12-29 20:57:10 +05:30
Kishore Nallan
df8f6849fe Facet estimation for large result sets. 2022-12-15 16:27:01 +05:30
Kishore Nallan
64def55527 Increase default candidates for smaller collections. 2022-11-14 12:51:05 +05:30
Kishore Nallan
374cb6948b Reclaim deleted memory on vector insert. 2022-10-11 16:25:13 +05:30
Harpreet Sangar
f75cbca920
Filter query (#737)
* Implement advance filter query parser.

* Remove `exclude_filters`.

* Review changes

* Implement do_filtering2

* Use updated implementation

* Pass failing tests.

* Handle special characters in value.

* Add space around  in embedded filters

* Update tokenize

* Rename to `recursive_filtering`

* Deconstruct filter tree.

* Remove separating space requirement for operators

* Fix rebase errors.

* Undo filter override change

* Format changes

* Pass StaticFilteringMultipleRuleMatch

* Undo formatting changes

* Pass DynamicFilteringMultipleRuleMatch

* Review changes.

* Add filter_query guard.
2022-10-11 11:21:20 +05:30
Kishore Nallan
36a0405416 More prefix expansion tweaks. 2022-10-07 10:28:03 +05:30
Kishore Nallan
85d5ce06b2 Refactor prefix search expansion. 2022-10-05 16:14:32 +05:30
Kishore Nallan
77af30ef93 Handle prefix expansion for the same field. 2022-09-29 17:29:30 +05:30
Kishore Nallan
eaa2b5027a Remove unused arg. 2022-09-21 16:10:15 +05:30
Kishore Nallan
c7f879bf30 Return vector distance in response. 2022-09-15 11:34:27 +05:30