1041 Commits

Author SHA1 Message Date
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
Kishore Nallan
c3298ba6d8 Address -Wall and -Wextra warnings. 2018-01-25 20:08:13 +05:30
Kishore Nallan
491de5a325 Remove ascii special characters during string normalization.
Unicode special chars are retained verbatim - will be addressed in future.
2018-01-16 21:16:24 +05:30
Kishore Nallan
40cf5413c3 #14: Debug end-point that displays the Typesense version.
Can add more details like OS family etc. in the future.
2018-01-06 08:04:20 +05:30
Kishore Nallan
192b00e71f Address API review comments.
1. Move document specific actions under /documents
2. Document creation echoes the full document
3. Collections summary returns full detail on each each collection
4. Collections summary endpoint has no nested root attribute
5. When collection or document is deleted, the whole entity is returned in response
2018-01-02 21:35:24 +05:30
Kishore Nallan
5c154b2fcf Fix for the CORS ACL headers not matching incoming ACL request headers. 2018-01-02 15:07:31 +05:30
Kishore Nallan
523c142479 #7: Support for CORS via the --enable-cors flag. 2018-01-01 12:26:38 +05:30
Kishore Nallan
2628a6a1df Upgrade to RocksDB 5.9.2 and GCC 6.4.0. 2017-12-31 17:03:38 +05:30
Kishore Nallan
9e9a84ed51 Bump version. 2017-12-30 21:14:39 +05:30
Kishore Nallan
f6612cb34e Refactor scoring loop. 2017-12-30 21:14:31 +05:30
Kishore Nallan
21d3de6145 Improve handling of replication errors / edge cases. 2017-12-24 21:03:30 +05:30
Kishore Nallan
a84a0a55bc Improve info and error messages shown in boot sequence.
Also, if the data directory does not exist, say so without crashing.
2017-12-21 07:36:45 +05:30
Kishore Nallan
01275c38f2 Use unorderd_map for low-volume meta datastructures.
Order of spp:sparse_hash_map during iteration is different in clang and gcc.
2017-12-20 09:16:15 +05:30
Kishore Nallan
3a9743aa90 Parameterize API key used by replication. 2017-12-16 22:12:03 +05:30
Kishore Nallan
bae67169d6 Collection summary end-point now shows the schema. 2017-12-16 18:43:08 +05:30
Kishore Nallan
f3e630f9de Collection export API. 2017-12-16 13:02:50 +05:30
Kishore Nallan
fe0db59877 Support indexing of bool fields. 2017-12-13 20:24:44 +05:30
Kishore Nallan
de80250de9 Extract authentication logic into a separate handler.
It is now possible to define a separate key for search end-point alone as well. This will be used when one needs to call the API directly from Javascript.
2017-12-12 18:10:08 +05:30
Kishore Nallan
42d0c31140 HTTPS is now supported! 2017-11-25 18:24:33 +05:30
Kishore Nallan
3d38b63d7f Support upto 500 search results. 2017-11-24 17:53:38 +05:30
Kishore Nallan
17b2201c52 Another round of h2o related resource clean up. [Valgrind]
No more h2o related valgrind warnings.
2017-11-20 07:39:46 +05:30
Kishore Nallan
d132098463 Free h2o related resources to have a clean shutdown. [Valgrind] 2017-11-19 20:41:31 +05:30
Kishore Nallan
eff61d2c25 Search for documents parallely. 2017-11-18 22:22:52 +05:30
Kishore Nallan
78b9ee52ec Make match score computation predictable and consistent across multiple indexes. 2017-11-12 22:31:29 +05:30
Kishore Nallan
f347375adb Compiles, but tests are failing. 2017-11-07 17:17:32 +05:30
Kishore Nallan
9856c3888a Create new collection.h and collection.cpp as a clone of index.h and index.cpp. 2017-11-06 12:47:43 +05:30
Kishore Nallan
883a9f14a0 Rename collection.h and collection.cpp to index.h and index.cpp. 2017-11-06 12:46:00 +05:30
Kishore Nallan
6f231dd989 Init collection requires a json object. 2017-11-05 10:22:53 +05:30
Kishore Nallan
e4a7371219 Upgrade json lib. 2017-11-05 10:21:52 +05:30
Kishore Nallan
3907c2d3f9 Fixed an out-of-bounds bug with highlighting. 2017-11-03 21:07:56 +05:30
Kishore Nallan
a7ba29666e Float field type should be captialized. 2017-10-24 08:33:16 +05:30
Kishore Nallan
a6dced3c43 Do all validations upfront before attempting to index fields. 2017-10-23 21:32:51 +05:30
Kishore Nallan
82403ff618 Extract token normalization to a separate function. 2017-10-22 20:26:01 +05:30
Kishore Nallan
a2ce56fd67 Allow string fields to be filtered on.
A rather convenient feature to have - but it would be a match of all tokens without typo tolerance.
2017-10-22 19:52:09 +05:30
Kishore Nallan
da295e90e8 Tests for array utils. 2017-10-22 17:05:25 +05:30