666 Commits

Author SHA1 Message Date
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
Kishore Nallan
d132098463 Free h2o related resources to have a clean shutdown. [Valgrind] 2017-11-19 20:41:31 +05:30
Kishore Nallan
7fc26d0799 Use find in scoring loop to speed up things. 2017-11-19 08:38:18 +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
543b9b1139 Dockerfile with gdb and valgrind installed for testing. 2017-11-05 10:46:54 +05:30
Kishore Nallan
c1c7d493e5 Allow an integer to be passed to a field defined as a float.
In the real world, this is common and it's better to be practical here.
2017-11-05 10:45:45 +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