214 Commits

Author SHA1 Message Date
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
Kishore Nallan
d6cab80dde Return filter_curated_hits in override response. 2022-03-26 16:02:23 +05:30
Kishore Nallan
a5b06a0e0d Schema change basics. 2022-03-26 08:22:40 +05:30
Jason Bosco
1e622aa3a3 Tweaked error message 2022-03-24 22:32:23 -05:00
Kishore Nallan
66cb71039f Do drop tokens at a global level. 2022-03-23 18:53:48 +05:30
Kishore Nallan
6b743cfa48 Implement progressive typo relaxation. 2022-03-21 16:11:17 +05:30
Kishore Nallan
36382ed3f1 Split tokens should require co-occurrence. 2022-03-20 11:16:25 +05:30
Kishore Nallan
5f244bc588 Synonym matches should share parent match score. 2022-03-19 14:05:21 +05:30
Kishore Nallan
769e594023 Process filters before synonyms are resolved. 2022-03-16 19:22:29 +05:30
Kishore Nallan
dcdb71f87b Drop tokens should not happen on split tokens. 2022-03-16 06:54:05 +05:30
Kishore Nallan
39f12edd3d Add override level option to filter curated hits. 2022-03-13 20:53:38 +05:30
Kishore Nallan
9197627e81 Add option to filter curated hits. 2022-03-11 20:52:22 +05:30
Kishore Nallan
d0a0597fcb Parameterize facet query num typos. 2022-03-10 19:05:30 +05:30