243 Commits

Author SHA1 Message Date
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
Kishore Nallan
31559f15b2 Numerical facet field values must be fully removed. 2022-09-14 16:22:15 +05:30
Kishore Nallan
ba2d5d10ce Fix vector search filter: don't assume order of IDs. 2022-09-08 16:19:46 +05:30
Kishore Nallan
720855f406 Use cosine similarity as default vector distance. 2022-09-02 17:48:02 +05:30
Kishore Nallan
a98e5bacdd Vector search basics. 2022-08-27 13:47:09 +05:30
Kishore Nallan
57782cfd74 Fix eval valgrind errors. 2022-08-16 15:43:40 +05:30
Kishore Nallan
d748c90b4b Merge branch 'v0.24-changes' into v0.24-nested
# Conflicts:
#	include/collection.h
#	src/collection.cpp
#	test/collection_specific_more_test.cpp
2022-08-13 19:03:03 +05:30
Kishore Nallan
6bb2e6e6f8 Fix ordered weighted field index properties. 2022-08-10 20:45:27 +05:30
Kishore Nallan
83ed38e3e6 Support remove_matched_tokens=false when replace query is used. 2022-08-10 13:35:04 +05:30
Kishore Nallan
58bdcc2e6f Merge branch 'v0.24-changes' into v0.24-nested
# Conflicts:
#	src/index.cpp
2022-08-05 14:14:52 +05:30
Kishore Nallan
460abfa69e Tweak override windowing naming scheme. 2022-08-05 10:58:18 +05:30
Kishore Nallan
743abd461c Allow override to be active within specific time window. 2022-08-04 17:11:42 +05:30
Kishore Nallan
6f38ee4270 Support replacement of query in overrides. 2022-08-04 16:49:06 +05:30
Kishore Nallan
db3c014463 Implement optional filtering via sort_by clause. 2022-08-04 16:23:29 +05:30
Kishore Nallan
bef79000e1 Skeleton for nested field indexing and highlighting. 2022-07-25 17:25:49 +05:30