1911 Commits

Author SHA1 Message Date
Kishore Nallan
87fc037a24 Trim mac link libs. 2023-01-03 15:24:00 +05:30
Kishore Nallan
1b18913254 Upgrade braft version. 2023-01-03 11:40:38 +05:30
Kishore Nallan
b0fe6284f5 Fix test. 2023-01-03 11:24:46 +05:30
Kishore Nallan
5c75d1553a Merge branch 'bazel-build' into v0.25 2023-01-03 11:02:09 +05:30
Kishore Nallan
b8b9fb20b3 Merge branch 'v0.24-nested' into v0.25
# Conflicts:
#	include/collection.h
#	src/collection.cpp
#	src/collection_manager.cpp
#	test/collection_faceting_test.cpp
2023-01-03 09:42:21 +05:30
Kishore Nallan
f380bd5fa9 Take care of underlying req being null. 2023-01-02 19:33:43 +05:30
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
Harpreet Sangar
34b16cdb21
Add != compatibility for numeric type. (#835)
* Add `!=` compatibility for numeric type.

* Add `numeric_not_equals_filter` method.

* Refactor `numeric_not_equals_filter` method.

* Support `!=` for numeric field multi-value filter_by.

* Ignore local settings file.

* Add comment.

* Add tests.

* Update negation test.

* Set `apply_not_equals` flag for string fields as well.

* Add `field: [!=value]` test.
2022-12-29 20:57:10 +05:30
Kishore Nallan
a9b926e24b Don't wrap () for empty filter strings. 2022-12-28 17:20:36 +05:30
Kishore Nallan
0e1d70ebf6 Add flag to disable old highlight structure. 2022-12-25 21:04:22 +05:30
Kishore Nallan
60aafae585 Fix for clion/bazel not finding klib. 2022-12-23 19:51:14 +05:30
Kishore Nallan
7f348250b6 Add guard for really large documents eating memory during load. 2022-12-23 19:44:59 +05:30
Kishore Nallan
a5628f9940 Fix slow exports. 2022-12-22 14:43:53 +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
99aa2706c7 Add default value for TYPESENSE_VERSION in bazelrc 2022-12-21 09:04:31 +05:30
Kishore Nallan
f37f8d2cd8 Allow TYPESENSE_VERSION to be passed to build. 2022-12-21 08:57:36 +05:30
Kishore Nallan
61beb7f317 Terminate batch indexing iter early on resource exhaustion. 2022-12-20 17:48:59 +05:30
Kishore Nallan
e17badbb1e Fix test. 2022-12-20 16:37:49 +05:30
Kishore Nallan
fdfeb869a1 Terminate batch indexing iter early on resource exhaustion. 2022-12-20 16:29:39 +05:30
Kishore Nallan
bc37cf3209 Use equal spaced sampling instead of rand. 2022-12-20 15:33:05 +05:30
Kishore Nallan
f4b8b4c627 Fix symbols_to_index key in response. 2022-12-19 17:25:55 +05:30
Kishore Nallan
2497de11ce Remove unused targets. 2022-12-19 09:12:52 +05:30
Kishore Nallan
652472f32a Cmake compatible bazel build. 2022-12-18 20:49:51 +05:30
Kishore Nallan
c6ea968f01 Merge branch 'v0.25' into bazel-build
# Conflicts:
#	.gitignore
2022-12-15 21:19:31 +05:30
0x2Adr1
bbebb1a567
Bazel (#736) 2022-12-15 21:09:06 +05:30
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
Kishore Nallan
e836af159f Fix failing test for missing facet field. 2022-12-14 15:57:17 +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
5ba38ad08b Use double for disk usage threshold. 2022-12-13 14:52:02 +05:30
Kishore Nallan
950049abfe Log resource stats when write is rejected for resource exhaustion. 2022-12-13 11:50:37 +05:30
Kishore Nallan
e3dee78a1b Add resource check to batch indexer as well. 2022-12-10 19:21:54 +05:30
Kishore Nallan
8be1f33f38 More aggressive info log pruning for RocksDB. 2022-12-09 07:45:05 +05:30
Kishore Nallan
a6fbd8868c API for compacting DB. 2022-12-08 16:00:24 +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