558 Commits

Author SHA1 Message Date
kishorenc
90ac320c93 Synonyms should be able to belong to multiple sets. 2020-12-28 19:19:59 +05:30
kishorenc
8a310bbb82 On demand snapshot API. 2020-12-28 19:19:59 +05:30
kishorenc
88918ef958 Synonyms basics. 2020-12-28 19:19:59 +05:30
kishorenc
6883b4db36 Speed up numerical filter + fixed edge case with -ve value. 2020-12-28 19:19:59 +05:30
kishorenc
c97ded0458 Support expiry of API keys.
Both parent and scoped keys are supported, but the expiry time of parent key takes precedence. Default is a date far into the future.
2020-12-28 19:19:59 +05:30
kishorenc
f164de4702 Multi field matching: ensure best matched field prevails. 2020-12-28 19:19:59 +05:30
kishorenc
1bed2d7d80 Support excluding tokens from query.
Prefixing a token in the query with "-" will fetch documents that do not contain that token.
2020-12-28 19:19:59 +05:30
kishorenc
8c51e3f920 Support operators in multi-valued numerical filter. 2020-12-28 19:19:59 +05:30
kishorenc
7e2b0fcdcb Match query tokens across multiple fields effectively. 2020-12-28 19:19:59 +05:30
kishorenc
0dfdfcf0d2 Single leaf addition (cvt). 2020-12-28 19:19:59 +05:30
kishorenc
3a86d58506 Handle colon character in pinned hit IDs. 2020-12-28 19:19:59 +05:30
kishorenc
7d6a266934 Validate field data types during collection creation. 2020-11-17 20:10:34 +05:30
kishorenc
eaea93c572 Delete documents matching a filter query. 2020-11-17 20:10:34 +05:30
kishorenc
9533b73609 Fixed a few higlighting/splitting edge cases. 2020-11-17 20:10:34 +05:30
kishorenc
6997e35f72 Combine various token operations in a single flow.
Splitting, normalizing etc. are now done in a single loop.
2020-11-17 20:10:34 +05:30
kishorenc
6c1455bc2f Return matched tokens in highlight response structure.
Also, allows customization of the highlighting tag used (default being the mark tag).
2020-11-17 20:10:34 +05:30
Kishore Nallan
908a8b0026 [Bug] String array field update + faceting.
Updates to string array fields were triggering a crash during faceting due to mismatch in array position.
2020-11-03 19:36:25 +05:30
Kishore Nallan
8d2c881040 Swap loops during facet calculation for performance. 2020-11-02 07:24:52 +05:30
Kishore Nallan
e22297e249 Fixed failing test. 2020-10-24 16:48:25 +05:30
Kishore Nallan
93b1d2d1cb Refactor to a create/update/upsert API model. 2020-10-24 15:43:55 +05:30
Kishore Nallan
2041de033f Refactor underlying APIs to support insert/update/upsert. 2020-10-24 09:23:33 +05:30
Kishore Nallan
a692553909 Support single document upsert. 2020-10-22 19:02:06 +05:30
Kishore Nallan
bccc3ac362 Array append/remove perf improvements. 2020-10-20 11:56:43 +05:30
Kishore Nallan
73f3e0620e Combine usage of add() / add_many(). 2020-10-17 15:17:15 +05:30
Kishore Nallan
9adbdd1576 Fixed a bug with hlighlighting in upsert import. 2020-10-17 11:55:42 +05:30
Kishore Nallan
60d4e9bf5a Support upsert during import. 2020-10-10 18:09:17 +05:30
Kishore Nallan
7ced978520 Parameterize the num of tokens that surround a highlight. 2020-10-06 17:06:40 +05:30
kishorenc
3ed27ab814 Expose document update API endpoint. 2020-09-27 20:00:40 +05:30
kishorenc
377769294f Add foundational support for document update. 2020-09-27 17:20:22 +05:30
kishorenc
b764b32134 Iterate doc fields for removal to allow partial deletion. 2020-09-26 15:28:18 +05:30
kishorenc
9c2782e93d Use int64_t for default sorting field references. 2020-09-26 15:13:01 +05:30
kishorenc
efae9055bc Don't mark follower as not caught up for small lags. 2020-09-18 16:52:00 +05:30
kishorenc
1ca39459eb Fix catch up error on https. 2020-09-18 07:24:38 +05:30
kishorenc
a2b421209c Protect API until follower has caught up with leader.
The catch up threshold is configurable as well. Default: 95%
2020-09-17 18:00:32 +05:30
kishorenc
27179b4f8b Parameterize snapshot interval duration. 2020-09-15 17:30:04 +05:30
kishorenc
0577df5e91 Throttle collection loading to prevent CPU saturation. 2020-09-12 18:46:40 +05:30
kishorenc
d3d25768a0 Temporarily disable memory threshold check. 2020-09-12 11:29:36 +05:30
kishorenc
6593d959ec Set min snapshot index gap to 1. 2020-09-10 21:35:55 +05:30
kishorenc
3189c1c4cc Fix import follower hang. 2020-09-09 17:35:50 +05:30
kishorenc
1b01de0c0c Housekeeping tasks. 2020-09-07 21:25:04 +05:30
kishorenc
13fd927944 Fix crash when an int32 field is filtered with an int64 value. 2020-09-07 19:23:11 +05:30
kishorenc
5795aba81f Speed up token position computation. 2020-09-07 18:41:29 +05:30
kishorenc
aa9e4a226e Filtering on string field should be verbatim by default.
Allow earlier "CONTAINS" behavior via "~" operator.
2020-09-06 16:25:39 +05:30
kishorenc
695c44dc17 Forward status code and content type properly. 2020-09-05 18:56:39 +05:30
kishorenc
58b52687ea Handle disconnects during import. 2020-09-04 15:12:09 +05:30
kishorenc
6d7c6b2ea0 Implemented import streaming end-to-end on follower. 2020-09-03 20:44:39 +05:30
kishorenc
02dd4a8a4f Use direct node API for checking leader status.
Otherwise, configuration refresh was getting stuck in a race condition when leader term is not updated while stepping down.
The actual error was "Doing another configuration change".
2020-09-02 11:16:32 +05:30
kishorenc
10957633fb Request-side import streaming via follower is working. 2020-09-01 20:12:08 +05:30
kishorenc
e254a1d519 Fix an edge case in match score calculation. 2020-08-28 20:09:34 +05:30
kishorenc
59dc1fef0d Speed up match scoring. 2020-08-25 21:28:23 +05:30