226 Commits

Author SHA1 Message Date
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
Kishore Nallan
aa3eddf9f4 Add total matching fields to match score. 2022-07-21 16:02:22 +05:30
Kishore Nallan
5483ae4631 Support both include/exclude + filter by override. 2022-07-12 13:44:05 +05:30
Kishore Nallan
dc15fb6f48 Allow override rules to be processed past the first match. 2022-07-04 17:17:59 +05:30
Kishore Nallan
f5808532fa Allow split join tokens to be configured in always mode.
Default remains as fallback.
2022-06-26 19:55:00 +05:30
Kishore Nallan
0ed59f6230 Extend use of max_candidates to facet searching as well. 2022-06-26 18:07:19 +05:30
Kishore Nallan
a9a2d8cc11 Synonym queries should preserve prefix option. 2022-06-08 14:33:45 +05:30
Kishore Nallan
223b104823 Introduce option to rank text by token position. 2022-06-07 11:00:24 +05:30
Kishore Nallan
0da51cb874 Support sort_by in overrides. 2022-06-05 18:00:41 +05:30
Kishore Nallan
a409df8dad Fix verbatim match on array. 2022-05-29 19:24:55 +05:30
Kishore Nallan
d935cb4041 Fix proper prefix expansion. 2022-05-19 16:12:33 +05:30
Kishore Nallan
0e2257dc29 Fix max_candidates behavior. 2022-05-13 17:41:11 +05:30
Kishore Nallan
8eb19f70a5 Account for token separator during upsert/removal. 2022-05-08 21:14:07 +05:30
Kishore Nallan
93c31be88f Cover missing curated hits with hits below. 2022-04-15 15:38:05 +05:30
Kishore Nallan
d4e5c36b7f Port id_buff based aggregated collation. 2022-04-13 14:36:09 +05:30
Kishore Nallan
3f9544535c Ensure that synonyms are ranked equally. 2022-04-12 08:04:43 +05:30
Kishore Nallan
f92b8f59bb Handle max candidates independent of exhaustive search. 2022-04-10 20:53:41 +05:30
Kishore Nallan
4889fba179 OR based token intersection. 2022-04-05 17:50:30 +05:30