475 Commits

Author SHA1 Message Date
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
Kishore Nallan
ddcb89843f Experimenting with ICU linking options. 2018-04-02 18:10:09 +05:30
Kishore Nallan
55ac4feb08 Normalize unicode characters using ICU. 2018-04-02 11:26:32 +05:30
Kishore Nallan
4d22698cc5 Minor logging changes. 2018-03-30 16:26:35 +05:30
Kishore Nallan
6cdbb29d4a Fix num_documents & facet fields not returned when creating a new collection. 2018-03-29 08:08:22 +05:30
Kishore Nallan
8bbfef8d44 Clear stray timeout. 2018-03-24 21:24:01 +05:30
Kishore Nallan
0f9c97eaf3 Use LOG(ERR) where appropriate. 2018-03-07 09:35:09 +05:30
Kishore Nallan
5a96e98054 Flush console logging since buffering makes it seem like it does not work. 2018-03-07 09:34:14 +05:30
Kishore Nallan
e00f7a5cec Don't expose the match distance computation outside. 2018-02-25 21:34:10 +05:30
Kishore Nallan
22e3d36cc0 Fixed a bug where the distance between matched query tokens could exceed previously assumed limit. 2018-02-25 21:12:54 +05:30
Kishore Nallan
ca2c084d86 Rename token_ranking_field to default_sorting_field and make it mandatory. 2018-02-24 12:18:48 +05:30
Kishore Nallan
92335438b3 Log Bad JSON error. 2018-02-23 08:28:38 +05:30
Kishore Nallan
70d95475d9 Made a few comments better. 2018-02-10 14:43:37 -08:00
Kishore Nallan
b0b289b435 Pass Typesense version from command line instead of using a brittle header file. 2018-02-04 07:40:28 -05:00
Kishore Nallan
2714f6ee0c Enable gzip compression for responses. 2018-02-03 17:46:08 -05:00
Kishore Nallan
b451a559e0 Improve error message logged when a replica is pointed to an old master.
In such a case, the WAL entries would have expired - logging that explicitly now.
2018-02-03 10:05:24 -05:00
Kishore Nallan
0a9e5e1562 Improve replica's logging - make it more useful. 2018-02-03 08:06:48 -05:00
Kishore Nallan
50ba0a02ce Use custom ERR logging level. 2018-02-03 07:42:13 -05:00
Kishore Nallan
0f7530ed13 Serialize and deserialize next sequence id properly instead of string encoding. 2018-02-02 19:02:19 -05:00
Kishore Nallan
b73dbebd2d Handle scenarios when store get fails or doesn't find data when it should have. 2018-02-02 18:21:51 -05:00
Kishore Nallan
6b37d43fd7 Use a proper logger for logging! 2018-02-02 08:22:23 -05:00
Kishore Nallan
13f4c72827 Use rocksdb batch put for atomic insertion. 2018-01-28 14:29:07 -05:00
Kishore Nallan
f8be8f4f6a Handle normalization of unicode elegantly. 2018-01-26 12:54:00 +00:00