kishorenc
4fa89ebf00
Implement facet filtering.
2020-02-17 21:59:47 +05:30
kishorenc
dfbe3888d8
Refactor facet search to use hash based mapping.
...
Also fixed a bug where filter fields marked as facets were being searched only verbatim.
2020-02-16 17:41:17 +05:30
kishorenc
8900347eed
Add some comments to improve readability.
2020-02-15 18:25:32 +05:30
kishorenc
b14cd3edca
Address some warning.
2020-02-11 20:19:46 +05:30
kishorenc
fd285b6fbe
Allow maximum hits returned to be configurable.
...
This obviously has a performance impact, but it might not be a big deal for most people and is now left to their discretion. The default of 500 results stays to maintain backward compatibility.
2020-02-10 20:54:38 +05:30
kishorenc
cf26a16903
Improve logging for replication errors.
2019-11-20 20:05:51 +05:30
kishorenc
a73774b005
Refactor the way string array offsets are stored.
...
Uses less memory and 15-20x faster now!
2019-11-13 21:51:33 +05:30
kishorenc
5328509637
When replication begins, ensure that it starts from sequence number 0.
2019-10-18 07:50:48 +05:30
kishorenc
9ab7e3db46
Add more consts.
2019-10-13 12:55:23 +05:30
kishorenc
0a6f8947f3
Refactor replication init and improve logging.
2019-10-13 12:53:21 +05:30
kishorenc
4d53a62784
Log a more meaningful error message and exit when another instance is started off the same data directory.
2019-10-06 09:35:10 +05:30
kishorenc
457bbcf467
Ensure strings with both ASCII and non-ASCII entities are indexed properly.
...
Earlier, such strings were being indexed only partially in certain cases.
2019-10-03 19:22:29 +05:30
kishorenc
1bae5bead6
Make Typesense version a member.
2019-09-28 09:49:53 +05:30
kishorenc
a3f883be2c
Bump dependencies.
2019-09-04 21:27:09 +05:30
Kishore Nallan
9f788546c8
Return json object rather than string for convenience.
2019-08-17 19:40:58 +05:30
Kishore Nallan
2952b0d461
Allow upto 500 hits to be overridden.
2019-08-17 10:51:31 +05:30
Kishore Nallan
237196204c
Persist override configuration.
2019-08-17 10:40:13 +05:30
Kishore Nallan
c1b9501351
Lay foundations for overriding search results.
2019-08-10 19:46:37 +05:30
Kishore Nallan
e6dad1682c
Parameter for controlling max number of facets returned during search.
2019-06-26 18:58:18 +05:30
Kishore Nallan
aa439c1ea6
Fix long queries causing highlighter to misbehave and sometimes crash.
...
A window of size 10 is used by the highlighter to mark overlap with query text. When query length exceeded 10 tokens, this caused the highlighter to break.
2019-06-25 12:20:07 +05:30
Kishore Nallan
2d3b0403ad
Add getter for config_file.
2019-06-07 16:45:46 +05:30
Kishore Nallan
3f64a26399
When a write to on-disk storage fails, ensure that in-memory write is rolled back.
...
Otherwise, the memory and disk stores will not be in sync.
2019-05-31 19:11:30 +05:30
Kishore Nallan
d524b08884
Add test for bad import JSON.
2019-05-26 21:06:01 +05:30
Kishore Nallan
5856263a08
Fix bulk loading during collection init.
2019-05-26 11:05:51 +05:30
Kishore Nallan
ba205222b7
Refactor bulk indexing process.
2019-05-25 22:28:13 +05:30
Kishore Nallan
2f0f3f9c9a
Pull index count into configs.
2019-05-14 19:35:15 +05:30
Kishore Nallan
ade8e1946f
Bulk import API.
2019-05-11 13:48:41 +05:30
Kishore Nallan
bfdc31f8d8
Read configuration from a configuration file.
2019-04-30 20:47:23 +05:30
Kishore Nallan
51169bf6b6
Add tests for configuration parsing.
2019-04-29 18:55:45 +05:30
Kishore Nallan
374ab9789b
Parse configuration from both env vars and command line args.
2019-04-28 17:38:34 +05:30
Kishore Nallan
b5b7635dc7
Load the indices parallely from disk.
...
Decreases initialization and boot up time.
2019-02-09 16:34:39 +05:30
Kishore Nallan
ad72f36dd6
Address valgrind warnings.
2018-09-04 16:44:38 +05:30
Kishore Nallan
35b7ba720b
Store the created timestamp as part of collection metadata.
2018-08-26 16:45:47 +05:30
Kishore Nallan
3c98931c0e
Improve unicode normalization.
...
Normalize latin characters like ß to their near equivalent ASCII representations.
2018-08-18 16:31:18 -04:00
Kishore Nallan
ad42c40e6d
Add health check end-point.
2018-08-15 09:50:43 -04:00
Kishore Nallan
3275ea877d
Refactor - move more implementation code away from headers.
2018-08-03 10:35:07 +05:30
Kishore Nallan
13964b6a57
Allow collections to be symlinked by an alternative name.
2018-07-30 19:48:17 +05:30
Kishore Nallan
ea883b4bec
Build lib along with executable.
2018-07-30 13:45:32 +05:30
Kishore Nallan
6bb139399d
Fixed an edge case that causes overflow when querying large string fields.
2018-06-08 20:59:14 +05:30
Kishore Nallan
c5b7f3c7e2
Return snippets of best matched array elements instead of just the best matched element.
...
However, we limit the number of snippets returned to 5 for now.
2018-05-22 14:48:25 +05:30
Kishore Nallan
0014e19ea6
Highlighting should include all search fields, and not just the best matched field.
2018-05-14 14:11:14 +05:30
Kishore Nallan
95112a8086
Support inclusion and exclusion of document fields that are returned in search response.
2018-05-08 07:53:13 +05:30
Kishore Nallan
3cdeff7814
Snappy compression is enabled by default but setting it explicitly nevertheless.
2018-05-08 07:52:29 +05:30
Kishore Nallan
4f1736124b
Use heap allocation rather than stack allocation for topster data.
2018-05-04 20:23:28 +05:30
Kishore Nallan
56ed39e3ff
Refactor topster to ensure that it handles insertion of duplicate keys.
...
Instead of ignoring a duplicate blindly, ignore when match score is less than existing key.
2018-04-30 20:28:56 +05:30
Kishore Nallan
71f1fbb4aa
Refactor query index logic.
2018-04-25 19:32:46 +05:30
Kishore Nallan
1d1cd2459b
When multiple fields are searched, the same document should not be returned twice.
2018-04-24 17:49:04 +05:30
Kishore Nallan
b669a47c29
Highlight best matched string in an array.
...
An ARRAY_SEPARATOR delimiter is used to demarcate offsets of tokens from different indices of an array. Plain string fields are treated like a single-element array field, but without needing to use a delimiter.
2018-04-20 16:44:17 +05:30
Kishore Nallan
6ad5e36179
Allow configuring a threshold for dropping tokens.
...
Fixes https://github.com/typesense/typesense/issues/20
2018-04-12 19:25:59 +05:30
Kishore Nallan
e558257b5f
Remove dependency on miniutf.
2018-04-02 19:08:36 +05:30