377 Commits

Author SHA1 Message Date
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
7e30cb1184 Use proper version 2018-01-16 07:45:46 +05:30
Kishore Nallan
6b9ee787e6 Revert "When displaying collection summary, have collection object inside a "collection" key."
This reverts commit d40a627c95bc1e8930396d9be9a0242a9fad1a11.
2018-01-16 07:45:07 +05:30
Kishore Nallan
d40a627c95 When displaying collection summary, have collection object inside a "collection" key. 2018-01-14 12:11:22 +05:30
Kishore Nallan
36aa3ce542 More tweaks to the README. 2018-01-14 08:15:05 +05:30
Kishore Nallan
2bd5cc492f Update README with installation, getting started and build instructions. 2018-01-13 21:05:48 +05:30
Kishore Nallan
ecbe8d3b27 Ensure that the OSX build links dependencies statically.
Curl was being linked dynamically.
2018-01-13 21:05:14 +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
ba96092f13 #10: Enable prefix searching by default since that seems more intuitive. 2018-01-05 20:23:52 +05:30
Kishore Nallan
ba6d2280c1 Ensure that /search and /export end-points don't conflict with the /:id end-point. 2018-01-05 19:41:05 +05:30
Kishore Nallan
16d4a6a39c When a field is not found, http status should be 404 and not 400. 2018-01-05 07:58:55 +05:30
Kishore Nallan
94b380410d Rename "took_ms" to "search_time_ms". 2018-01-05 07:58:26 +05:30
Jason Bosco
d705c476a0 Encourage use of -sv flags for curl 2018-01-04 08:12:56 -08:00
Kishore Nallan
6596e5d8dd The export end-point of the replica server must conform to the new API structure. 2018-01-04 20:56:12 +05:30
Kishore Nallan
70a6147f5b Fixed #8: check if collection pointer is null when collection does not exist. 2018-01-04 20:46:18 +05:30
Jason Bosco
141fd1fe5d Added an issue template 2018-01-04 06:44:03 -08:00
Kishore Nallan
9407f55850 If CORS is enabled, Access-Control-Allow-Origin header needs to be present on all responses. 2018-01-04 07:39:32 +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
65ad82596c Bump H2O library version. 2018-01-01 21:30:21 +05:30
Kishore Nallan
0b49fcb3bd Fix a few compiler warnings in art. 2018-01-01 21:29:47 +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. 0.7.1 2017-12-31 17:03:38 +05:30
Kishore Nallan
6337d4b7c5 Patch RocksDB 5.9.2 build_detect_platform script. 2017-12-31 17:02:10 +05:30
Kishore Nallan
ee77fd9903 Import RocksDB 5.9.2 build_detect_platform script. 2017-12-31 17:01:39 +05:30
Kishore Nallan
9e9a84ed51 Bump version. 0.7.0 2017-12-30 21:14:39 +05:30
Kishore Nallan
f6612cb34e Refactor scoring loop. 2017-12-30 21:14:31 +05:30
Kishore Nallan
2b7059de37 Replace prefix_sort_field with token_ranking_field since it conveys the meaning better. 2017-12-29 16:53:06 +05:30
Kishore Nallan
8eb9627869 Replica server should be read-only. 2017-12-25 20:37:47 +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
8d5f7c18a3 Fix a couple of test compile warnings. 2017-12-17 21:42:45 +05:30
Kishore Nallan
b6055ad0dc Free SSL context. 2017-12-17 21:17:37 +05:30
Kishore Nallan
91d4ed5fdf Free custom generator after collection export is done. 2017-12-17 15:40:57 +05:30
Kishore Nallan
60288631be Check partial node text iteratively for prefix match. 2017-12-17 10:26:37 +05:30
Kishore Nallan
b1ac1d7d7c Allow API key to be passed as a GET parameter as a backup to a header.
Required for authentication of JSONP requests from JS client.
2017-12-17 07:35:59 +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
8904aba598 Validate strings before integer conversion in the API layer. 2017-11-26 21:45:37 +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
7b168616ab Remove document from memory only from the index it exists in. 2017-11-22 09:54:28 +05:30
Kishore Nallan
2c9f3f973f NODE48 deletion during tear down of the tree was not considering all children. [ART] 2017-11-22 09:53:47 +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