427 Commits

Author SHA1 Message Date
Kishore Nallan
1a66a25e2f Enable slow searches logging by default (30s cutoff) 2023-01-02 18:53:36 +05:30
Kishore Nallan
bf0f7430a0 Allow vector query to pass a document ID. 2023-01-01 18:00:50 +05:30
Kishore Nallan
a10cf167ca Fix edge case for facet counts with empty strings in array. 2022-12-21 14:39:06 +05:30
Kishore Nallan
5332d77710 Fix typo/prefix regression with weights. 2022-12-07 11:32:10 +05:30
Kishore Nallan
b911766379 Implement search cutoff during intersection. 2022-11-30 15:37:12 +05:30
Kishore Nallan
44186611ae Handle vector value being null. 2022-11-24 11:51:40 +05:30
Kishore Nallan
7aa7543dae Speed up vector indexing.
Parallelize inserts + remove sort/filter indices for vector field.
2022-11-03 15:36:00 +05:30
Kishore Nallan
ae49dab8fd Vector flat search: handle missing values. 2022-10-21 16:42:23 +05:30
Kishore Nallan
4808d1610a Flat search cutoff for vector search. 2022-10-19 13:48:07 +05:30
Kishore Nallan
ff8fbc0642 Fix an issue with multi-field phrase matching. 2022-10-18 11:49:35 +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
c8afd1e7c6 Use k value from vector query params. 2022-09-17 16:00:56 +05:30
Kishore Nallan
8895435591 Ensure that vec distance is always positive for cosine. 2022-09-16 16:48:59 +05:30
Kishore Nallan
49268d648e Persist vector field properties and restore. 2022-09-15 17:32:17 +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
36f38c31c1 String sorting should handle accented characters. 2022-09-11 08:40:33 +05:30
Kishore Nallan
832b519633 Optimize wildcard query sans filter/sort/facets. 2022-09-10 18:21:13 +05:30
Kishore Nallan
56344a20ca Remove spurious logs. 2022-09-08 16:38:56 +05:30
Kishore Nallan
d489702fca Handle vector index purge. 2022-09-07 10:57:52 +05:30
Kishore Nallan
a28ee865bf Fix valgrind warnings. 2022-09-03 19:23:36 +05:30
Kishore Nallan
44edeb8a5e Buffer IDs during filtering. 2022-09-03 18:35:14 +05:30
Kishore Nallan
720855f406 Use cosine similarity as default vector distance. 2022-09-02 17:48:02 +05:30
Kishore Nallan
0edee3ae12 Generify removal of field with different type due to auto schema detection. 2022-09-01 16:23:46 +05:30
Kishore Nallan
943b2ef06f Handle update of field indexed with object value, but later on as string. 2022-09-01 13:47:36 +05:30
Kishore Nallan
914a401312 Resize hnsw graph dynamically. 2022-08-27 18:52:52 +05:30
Kishore Nallan
a98e5bacdd Vector search basics. 2022-08-27 13:47:09 +05:30
Kishore Nallan
63fbf807a9 Enable num_typos for th locale. 2022-08-24 12:45:34 +05:30
Kishore Nallan
848e2138f2 Merge branch 'v0.24-changes' into v0.24-nested 2022-08-17 10:23:11 +05:30
Kishore Nallan
c1aace925c Handle match score not being part of sort fields.
In such a case, match score should not be returned in response.
2022-08-16 18:29:15 +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
54ddf63f2e Add test for updates. 2022-08-07 13:28:38 +05:30
Kishore Nallan
869d515688 Handle optional restriction for nested fields. 2022-08-05 19:24:06 +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
db3c014463 Implement optional filtering via sort_by clause. 2022-08-04 16:23:29 +05:30
Kishore Nallan
a90bfba930 Multiple explicit nested fields should be allowed. 2022-08-03 18:38:18 +05:30
Kishore Nallan
f86f8b5487 Support nested fields with explicit schema. 2022-08-01 19:44:25 +05:30
Kishore Nallan
0399c1ac72 Handle alter of previously non-indexed field. 2022-07-26 11:06:34 +05:30
Kishore Nallan
be2487b1cc Handle alter of previously non-indexed field. 2022-07-26 11:06:05 +05:30
Kishore Nallan
bef79000e1 Skeleton for nested field indexing and highlighting. 2022-07-25 17:25:49 +05:30
Kishore Nallan
308b34eb9c Provide breakdown of text match score in response. 2022-07-22 17:12:51 +05:30
Kishore Nallan
aa3eddf9f4 Add total matching fields to match score. 2022-07-21 16:02:22 +05:30
Kishore Nallan
59e1fd0e4f Allow exact matches on longer strings.
Earlier, N will become zero so no results will be returned.
2022-07-20 14:02:49 +05:30
Kishore Nallan
bff9585ee7 Ensure that write_log_index is propagated to index threads. 2022-07-20 12:37:27 +05:30