377 Commits

Author SHA1 Message Date
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
Kishore Nallan
12f425c6e0 Merge branch 'typesense_server_api' 2017-05-29 21:00:36 +05:30
Kishore Nallan
4b06c034ca Update build instructions. 2017-05-29 21:00:04 +05:30
Kishore Nallan
4e787a5035 Run make clean before rebuilding RocksDB. 2017-05-29 20:45:24 +05:30
Kishore Nallan
0b9d5e386a Pass program arguments for listen address and port into http server. 2017-05-29 20:41:46 +05:30
Kishore Nallan
fe6db8c46b Don't expose the server name in HTTP response headers. 2017-05-29 17:14:18 +05:30
Kishore Nallan
0fb0cda686 Make RocksDB build portable. 2017-05-29 17:13:56 +05:30
Kishore Nallan
20a3139dd2 Tweak score calculation - number of words present is more important than candidate rank score. 2017-05-27 17:47:26 +05:30
Kishore Nallan
b7bc974b8e Expose token ranking field properly via the API. 2017-05-27 14:02:32 +05:30
Kishore Nallan
7531f9b13c Add const in more places. 2017-05-22 18:59:14 +05:30
Kishore Nallan
61bfdf027b Fix valgrind errors, plugging other leaks. 2017-05-21 15:59:16 +05:30
Kishore Nallan
0bb8cf13bf Ensure that remove function really removes all auxillary indexing data structures. 2017-05-20 17:02:14 +05:30
Kishore Nallan
6d3613b750 Limit facets returned to top 10. 2017-05-20 15:25:12 +05:30
Kishore Nallan
a5cd45e362 Rewrite facet implementation. 2017-05-20 13:25:56 +05:30
Kishore Nallan
b6c9e395ea Check for presence of collection during deletion of document. 2017-05-20 11:53:47 +05:30
Kishore Nallan
8ec625b434 Fixed some build errors on benchmark/search targets. 2017-05-17 21:54:40 +05:30
Kishore Nallan
3478aef573 API for deleting a document by ID. 2017-05-17 20:31:24 +05:30
Kishore Nallan
56c539d0df Expose search, sort and facet fields to the API. 2017-05-16 20:55:06 +05:30
Kishore Nallan
a25d2f590d Sort order is required only during query time. 2017-05-14 17:36:48 +05:30
Kishore Nallan
58d23c8ab1 Merge pull request #3 from wreally/docker-build
Use Docker for consistent build environment
2017-05-14 12:28:00 +05:30
Kishore Nallan
1992d92eaf Tests for asc/desc sort order. 2017-05-14 12:25:59 +05:30
Kishore Nallan
060959ad70 Fixed wrong found counts. 2017-05-13 22:31:56 +05:30
Kishore Nallan
f62247cd32 Make the sort_fields take order of sorting. 2017-05-07 21:33:04 +05:30
Kishore Nallan
1baaa2b344 API - creating a new collection. 2017-04-29 17:39:42 +05:30
Kishore Nallan
a82765277f Typesense API skeleton. 2017-04-28 21:08:45 +05:30
Kishore Nallan
01871cc279 Http server skeleton. 2017-04-15 11:41:53 +05:30
Kishore Nallan
5d9995a9dc Link statically against cpp stdlib to make the binary portable. 2017-04-08 20:47:01 +05:30
Kishore Nallan
4cdc0ec47c Make loading of documents on start-up optional. 2017-04-08 20:46:35 +05:30