1095 Commits

Author SHA1 Message Date
Kishore Nallan
c05eb256d8 Merge branch 'v0.24-nested' into v0.25 2022-12-15 20:12:27 +05:30
Kishore Nallan
644677d522 Fix synonym symbols view rendering issue. 2022-12-15 17:45:56 +05:30
Kishore Nallan
df8f6849fe Facet estimation for large result sets. 2022-12-15 16:27:01 +05:30
Krunal Gandhi
2e8ad0f7c3
Range faceting (#823)
* facet range base commit

* ammending range checks to strictly abide to range, ignoring outliers

* range facet query parsing and results

* Making facet processing generic for both
range and non-range facets

* Adding facet parsing tests and bug fixes

* Adding range facet search tests and some refactoring

* Refactoring and adding more tests for seach. adding Range should be continuous check

* Refactoring the code

* making test case asserts more verbose

Co-authored-by: Kishore Nallan <kishorenc@gmail.com>
2022-12-14 15:49:14 +05:30
Kishore Nallan
6dc2df2376 Don't trim when splitting POST body. 2022-12-08 13:09:58 +05:30
Kishore Nallan
cd234c3062 Disable bucketing if not enough results are found. 2022-12-07 20:22:23 +05:30
Kishore Nallan
5332d77710 Fix typo/prefix regression with weights. 2022-12-07 11:32:10 +05:30
Kishore Nallan
4651b9a6fd Fix phrase match + match scores for offset wrap around. 2022-12-06 20:16:38 +05:30
Kishore Nallan
f455cbc293 Parsed field name in vector query should be trimmed. 2022-12-01 20:25:15 +05:30
Kishore Nallan
b911766379 Implement search cutoff during intersection. 2022-11-30 15:37:12 +05:30
Kishore Nallan
71260ea2f0 Fix offset wrap around in match score. 2022-11-30 15:35:29 +05:30
Kishore Nallan
856ad0efe5 Fix new snippetting on flat fields. 2022-11-25 18:50:05 +05:30
Kishore Nallan
ec7658ff0f Add test for schema alter for geo field. 2022-11-24 19:56:21 +05:30
Kishore Nallan
44186611ae Handle vector value being null. 2022-11-24 11:51:40 +05:30
Kishore Nallan
cbf5985307 Fix duplication of nested fields during flattening. 2022-11-23 15:08:04 +05:30
Kishore Nallan
4e7c5560aa Handle missing optional object fields. 2022-11-19 08:49:11 +05:30
Kishore Nallan
ad4ef33fa2 Fix another exact filter match on array edge case. 2022-11-18 18:22:56 +05:30
Kishore Nallan
f9598dfd55 Ensure that all RocksDB iterators use upper bound.
Without this, unbound iteration was happening on large datasets.
2022-11-17 14:13:08 +05:30
Kishore Nallan
9277e6f498 Return error when object type is used without enabling nested fields. 2022-11-15 20:48:16 +05:30
Kishore Nallan
23bd0af779 Simplify nested highlighting format. 2022-11-11 19:01:41 +05:30
Kishore Nallan
cc6229c4ef Add test for empty/wildcard override distinction. 2022-11-09 15:25:14 +05:30
Kishore Nallan
5292956718 Fix highlight meta structure. 2022-11-09 12:41:40 +05:30
Kishore Nallan
088e908576 Fix: restore nested fields on collection restore. 2022-11-08 18:34:28 +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
4212a107ed Ensure that detected nested fields inherit field properties. 2022-11-01 17:19:45 +05:30
Kishore Nallan
c87e0ddf9d Highlight meta should follow nested doc structure. 2022-10-31 16:19:51 +05:30
Kishore Nallan
81b6712296 Fix highlighting for fields with dot in their names. 2022-10-31 13:07:09 +05:30
Kishore Nallan
fe4a81d2da Wrap embedded param filter with () for better exclusivity. 2022-10-30 15:37:51 +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
Harpreet Sangar
9651c1abdf
Add Tokenize test. (#756)
* Add Tokenize test.

* Add Tokenize test case.

* Review changes.
2022-10-18 12:07:39 +05:30
Kishore Nallan
ff8fbc0642 Fix an issue with multi-field phrase matching. 2022-10-18 11:49:35 +05:30
Kishore Nallan
10ad8162b6 Fix repeating tokens in phrase search. 2022-10-17 16:15:37 +05:30
Kishore Nallan
67f45d8813 Fix regression: allow include/exclude of stored fields. 2022-10-15 18:27:44 +05:30
Kishore Nallan
643ba73ec7 Fix edge case with field names containing dots.
Should not be treated as nested fields.
2022-10-15 17:34:05 +05:30
Kishore Nallan
374cb6948b Reclaim deleted memory on vector insert. 2022-10-11 16:25:13 +05:30
Kishore Nallan
cf908fb357 Validate query_by id. 2022-10-07 12:51:29 +05:30
Kishore Nallan
af28e9d239 Fix regression in out_of in exclude_fields. 2022-10-07 10:55:05 +05:30
Kishore Nallan
7b59f10d46 Fix float validation to handle scientific notation. 2022-10-06 11:46:47 +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
Ozan Armağan
3280665cc9
Added rate limiting feature (#709)
* Added rate limiting and blocking IP and API key  feature

* Fix for core_api differences

* Coding style improvements

* Coding style improvement II

* Design Update for RateLimitManager

* Updated some of comments

* Design Update II

* Design Update III

* Updated unit test and bug fixes

* Design Update IV

* Design Update V

* Refactoring update for add_rule and edit_rule

* Update to store rate limits and bans in DB

* Bug fix for bans prefix

* Bug fix for rate limit manager unit test

* Refactoring and updates

* Added More Tests & Fixes

* Updated Rate Limit Manager class tests
2022-09-25 10:37:08 +05:30
Kishore Nallan
4679d298c7 Geopoint field cannot be a default sorting field. 2022-09-20 15:12:31 +05:30
Kishore Nallan
940c2b982d Support locale and symbols_to_index in synonyms. 2022-09-20 14:38:23 +05:30
Kishore Nallan
c8afd1e7c6 Use k value from vector query params. 2022-09-17 16:00:56 +05:30
Kishore Nallan
383ed093f3 Fix nested alter drop + add. 2022-09-17 07:44:36 +05:30
Kishore Nallan
d5968b85f7 Fix flat fields being persisted during update. 2022-09-15 18:09:05 +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