Kishore Nallan
b3689e16aa
Improve test harness to cover some missing cases.
2017-09-23 21:21:13 +05:30
Kishore Nallan
b0cb3ceb41
Set a ceiling on num_typos so that 1 and 2 char prefix searches make sense.
2017-09-22 20:59:26 +05:30
Kishore Nallan
e24e0fae5d
Node score should be a int32_t.
2017-09-21 19:40:41 +05:30
Kishore Nallan
b2f0ca495d
Refactor a couple of methods in collection manager.
2017-09-21 16:55:15 +05:30
Kishore Nallan
9c1a8a2364
Defensive checks against JSON parse failures.
2017-09-21 08:42:07 +05:30
Kishore Nallan
901626652a
Make type definitions less verbose.
...
Use string[] instead of STRING_ARRAY and so on.
2017-09-19 22:01:08 +05:30
Kishore Nallan
6ab58d1839
Added a dispose() method for freeing collection manager's in-memory data.
2017-09-18 12:35:37 +05:30
Kishore Nallan
7220a9e51d
Cleanly exit server on sigint.
...
Valgrind "definitely lost" and "indirectly lost" are zero now.
2017-09-17 13:59:47 +05:30
Kishore Nallan
6a2f2fa26f
Find curl library using find_package.
...
For Apple, rely on dynamic version of the curl library since the static version is not linking properly.
2017-09-16 20:41:51 +05:30
Kishore Nallan
8b740efc7a
Add curl dependency - build from source.
2017-09-16 20:40:03 +05:30
Kishore Nallan
f946f25c62
Fix a couple of valgrind errors.
2017-09-16 20:38:50 +05:30
Kishore Nallan
58bc73312d
Replicate deletion of document and dropping of collection.
2017-09-14 22:44:29 +05:30
Kishore Nallan
58a10877ee
Basics of background replication.
...
Supports inserts. Deletion will be tackled next.
2017-09-14 09:58:44 +05:30
Kishore Nallan
3febb7840a
Generalize the custom message struct such that it can support multiple types of messages and values.
2017-09-10 15:48:41 +05:30
Kishore Nallan
ea246f1c45
Collect and send replication updates in an async fashion.
...
This ensures that the query performance is not affected by replication running constantly in the background.
2017-09-02 15:56:07 +05:30
Kishore Nallan
6a465a0289
API for fetching all transactions from a given transaction sequence number.
...
Relying on RocksDB underlying APIs for that. The updates are sent in a Base64 encoding in the JSON response.
2017-08-31 09:42:11 +05:30
Kishore Nallan
7509de2300
Upgrade H2O + fixed core dump on Linux release build.
...
Core dump on Linux on release build (debug build is fine) when `h2o_accept_ctx_t` was stack allocated.
2017-08-21 12:30:48 +05:30
Kishore Nallan
47aca7e664
Use reference instead of copy.
2017-08-21 09:17:05 +05:30
Kishore Nallan
d351523655
Allow results to be sorted on a float field.
2017-08-20 21:15:48 +05:30
Kishore Nallan
3104dea42a
Generify the topster container to hold both integer and float.
...
Benchmarked to ensure that performance is on par.
2017-08-20 15:25:11 +05:30
Kishore Nallan
ea550f167c
For prefix search, only the last term in the query should be considered as prefix.
2017-08-19 10:42:49 +05:30
Kishore Nallan
f5848be750
Address prefix search issues.
...
Score based comparison was broken - test has been enhanced.
2017-08-18 23:17:28 +05:30
Kishore Nallan
38fbbea71f
Ensure that the token ranking field is an unsigned int.
2017-08-10 18:29:59 -04:00
Kishore Nallan
e384b777a1
Collection operations on float fields.
2017-08-10 18:20:58 -04:00
Kishore Nallan
a2f475d7fc
Enable ART to index and search on floating point numbers.
2017-08-09 18:17:26 -04:00
Kishore Nallan
6a6785ef74
Short circuit to speed up single token searches.
...
- Refactor token position population
- Store only the query index in topster instead of storing the full offsets.
- Calculate the offsets finally on the results that are to be returned.
2017-08-08 17:39:23 -04:00
Kishore Nallan
ce69dbb371
Remove all static variables in http server so that it can be reused.
2017-07-30 08:48:52 +05:30
Kishore Nallan
e066beb870
Move http data structs to a separate header.
2017-07-29 22:31:24 +05:30
Kishore Nallan
3e54cb4022
API for summary of a collection, including the number of documents indexed in the collection.
2017-07-29 11:46:55 +05:30
Kishore Nallan
916aaf6526
API for fetching a document ID and listing all collections.
2017-07-28 20:39:51 +05:30
Kishore Nallan
a73290f749
Tweak end-point URLs.
2017-07-28 07:35:29 +05:30
Kishore Nallan
005b637f74
Send 401 rather than 403 when API key is incorrect.
2017-07-26 21:11:02 +05:30
Kishore Nallan
18bd3db548
Change the docker image org name.
2017-07-26 21:10:02 +05:30
Kishore Nallan
7978139992
Rename ubuntu gcc base image.
2017-07-14 11:10:58 +05:30
Kishore Nallan
3e2e7d2f19
Build Typesense from an Ubuntu 10.04 base image.
...
This ensures that the glibc version is old enough to support Centos 6.x boxes.
2017-07-13 21:43:54 +05:30
Kishore Nallan
c47cb18ac2
Catch SIGINT.
2017-07-09 20:46:51 +05:30
Kishore Nallan
4c32dbfa07
Unified docker build shell script.
...
Builds the development image and the deployment image on the same script when an extra is passed.
2017-07-09 20:46:06 +05:30
Kishore Nallan
fa9318acd1
Fix compile error in benchmark and search utility programs.
2017-07-07 19:19:46 +05:30
Kishore Nallan
ffba0371b0
Proper API responses when pagination exceeds result boundaries.
2017-07-07 18:36:56 +05:30
Kishore Nallan
dda3a0a06a
Support JSONP response for the search API alone.
2017-07-06 22:00:23 +05:30
Kishore Nallan
be0a222ccb
Expose drop colllection API.
2017-07-06 08:45:31 +05:30
Kishore Nallan
c471cd50c3
Implement authentication against an API auth key.
...
The key should be passed via X-API-KEY HTTP header.
2017-07-04 22:18:47 +05:30
Kishore Nallan
06ff49df4a
Added a few more tests.
2017-07-01 22:57:59 +05:30
Kishore Nallan
8295707ed4
Allow pagination of results.
...
`page` and `per_page` can be specificed. Simpler to reason about than using the usual `start` and `offset` fields.
2017-06-15 17:14:10 +05:30
Kishore Nallan
57e03efe1f
Contexual snippet only for longer strings.
...
Strings under a defined constant token length will be fully highlighted, instead of showing a snippet of relevant matching portion.
2017-06-14 08:53:23 +02:00
Kishore Nallan
688bd21816
Show query snippet as a separate field instead of modifying the field value directly.
2017-06-13 14:53:28 -05:00
Kishore Nallan
3efaed15b8
Fixed a few bugs with calculation of best matched token offsets to be used for highlighting.
2017-06-13 12:03:24 -05:00
Kishore Nallan
50e08726da
String field tokens which match with query tokens are highlighted in the results.
2017-06-09 14:59:06 -05:00
Kishore Nallan
1d5146f7ff
Track best-matched token offsets needed for highlighting.
...
- We store the best matched token offset positions in Topster KV
- Using run-length encoding (via unions) to pack the offset diffs intelligently
2017-06-09 13:32:03 -05:00
Kishore Nallan
24711d3c5c
Fix multiple facets not working.
2017-06-03 09:33:36 +02:00