147 Commits

Author SHA1 Message Date
kishorenc
e5812cc9db Address valgrind warnings. 2021-02-25 16:57:38 +05:30
kishorenc
4e3307a891 Use string* to specify string/string array coercion. 2021-02-25 15:07:37 +05:30
kishorenc
3a4d21992c Fix edge cases in schema detection. 2021-02-24 21:38:55 +05:30
kishorenc
0a9cf4aee0 Add more tests for testing schema detection. 2021-02-23 20:04:37 +05:30
kishorenc
f1b70384cc Allow fields to be stringified automatically. 2021-02-23 12:58:14 +05:30
kishorenc
c24fc02d4d Persist per-doc coerce setting + allow dropping of bad values. 2021-02-23 09:35:36 +05:30
kishorenc
1618007cd8 Make fields in schema completely optional. 2021-02-22 07:45:03 +05:30
kishorenc
1a65ad509b Address valgrind warning. 2021-02-21 22:17:27 +05:30
kishorenc
d2a825799b Make default sorting field optional. 2021-02-21 19:55:31 +05:30
kishorenc
11c41804e5 Handle bad data gracefully. 2021-02-20 12:49:41 +05:30
kishorenc
e9df6e58e2 Allow indexing of fields without pre-defined schema.
# Conflicts:
#	include/collection.h
#	include/index.h
#	src/collection.cpp
#	src/collection_manager.cpp
2021-02-18 19:08:42 +05:30
kishorenc
159e39f76c Merge branch '0.18.0-patches' into 0.20.0-rc 2021-02-10 15:47:42 +05:30
Jason Bosco
d058d6165e Address valgrind warning 2021-02-09 10:33:08 -08:00
kishorenc
4eb7058568 Point datatype for basic geo queries. 2021-02-07 19:55:55 +05:30
kishorenc
17fbbd0838 Refactor concurrency model. 2021-02-06 20:17:18 +05:30
Jason Bosco
60799111be Improve facet aggregation performance 2021-01-29 23:21:15 -08:00
Jason Bosco
0ad8c48115 Range operator for numerical filtering. 2021-01-29 13:57:52 -08:00
Jason Bosco
3d8f6fe43f Further improvements to filter performance 2021-01-26 22:27:01 -08:00
Jason Bosco
19606c0b1d Address an edge case in filtering tokens against filter ids 2021-01-25 10:45:31 -08:00
Jason Bosco
ceaee0fb80 Speed up numerical filtering 2021-01-23 19:58:20 -08:00
Jason Bosco
c110f8ecff Dynamic expansion of max hits 2021-01-22 20:20:37 -08:00
Jason Bosco
a08fb7738f Exhaustive token searching with filter_ids 2021-01-22 20:06:18 -08:00
kishorenc
b2fba69a73 Address some warnings related to update doc scrubbing. 2020-12-28 19:20:00 +05:30
kishorenc
302cdf137b Fix field-wise num results used for threshold matching. 2020-12-28 19:20:00 +05:30
kishorenc
2061d04629 Treat token hits as a rank slot instead of a weight. 2020-12-28 19:20:00 +05:30
kishorenc
690bb97ff5 Disable debug logs enabled accidentally. 2020-12-28 19:20:00 +05:30
kishorenc
bc1d88f1eb Consider tokens matching across fields during ranking. 2020-12-28 19:20:00 +05:30
kishorenc
7b2b48ba77 Simplify pre-sorting of filter ids for wildcard search. 2020-12-28 19:20:00 +05:30
kishorenc
66a44a5afc Expose field weights used for scoring. 2020-12-28 19:20:00 +05:30
kishorenc
667eee1dad Use weighted scoring of fields for matching.
For now, weights are not exposed, but this is possible in future.
2020-12-28 19:20:00 +05:30
kishorenc
435476df5d Rank prefix match below exact match. 2020-12-28 19:19:59 +05:30
kishorenc
590aed7f0e Give highest priority to field order while ranking. 2020-12-28 19:19:59 +05:30
kishorenc
f4423367c8 Aggregate match score when matched across array elements. 2020-12-28 19:19:59 +05:30
kishorenc
e5fa36a0b0 Remove pre-sorting of index topsters. 2020-12-28 19:19:59 +05:30
kishorenc
8f818f7fcb More exhaustive multi-field ranking. 2020-12-28 19:19:59 +05:30
kishorenc
88918ef958 Synonyms basics. 2020-12-28 19:19:59 +05:30
kishorenc
fc989f1ac2 Handle case when all query tokens are exclusions. 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
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
f52b2597a1 Fixed a bug in array exclusion affecting pinned hits. 2020-12-28 19:19:59 +05:30
kishorenc
dc25b2684b Fixed a bug in pinned hits with wildcard query.
The filtered IDs must be sorted before intersected with pinned IDs.
2020-12-28 19:19:59 +05:30
kishorenc
254c58dd31 Fix ordering issue on pinned hits. 2020-12-28 19:19:59 +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
2041de033f Refactor underlying APIs to support insert/update/upsert. 2020-10-24 09:23:33 +05:30