126 Commits

Author SHA1 Message Date
kishorenc
66a44a5afc Expose field weights used for scoring. 2020-12-28 19:20:00 +05:30
kishorenc
90ac320c93 Synonyms should be able to belong to multiple sets. 2020-12-28 19:19:59 +05:30
kishorenc
88918ef958 Synonyms basics. 2020-12-28 19:19:59 +05:30
kishorenc
1bed2d7d80 Support excluding tokens from query.
Prefixing a token in the query with "-" will fetch documents that do not contain that token.
2020-12-28 19:19:59 +05:30
kishorenc
7e2b0fcdcb Match query tokens across multiple fields effectively. 2020-12-28 19:19:59 +05:30
kishorenc
3a86d58506 Handle colon character in pinned hit IDs. 2020-12-28 19:19:59 +05:30
kishorenc
eaea93c572 Delete documents matching a filter query. 2020-11-17 20:10:34 +05:30
kishorenc
6c1455bc2f Return matched tokens in highlight response structure.
Also, allows customization of the highlighting tag used (default being the mark tag).
2020-11-17 20:10:34 +05:30
Kishore Nallan
908a8b0026 [Bug] String array field update + faceting.
Updates to string array fields were triggering a crash during faceting due to mismatch in array position.
2020-11-03 19:36:25 +05:30
Kishore Nallan
2041de033f Refactor underlying APIs to support insert/update/upsert. 2020-10-24 09:23:33 +05:30
Kishore Nallan
73f3e0620e Combine usage of add() / add_many(). 2020-10-17 15:17:15 +05:30
Kishore Nallan
9adbdd1576 Fixed a bug with hlighlighting in upsert import. 2020-10-17 11:55:42 +05:30
Kishore Nallan
60d4e9bf5a Support upsert during import. 2020-10-10 18:09:17 +05:30
Kishore Nallan
7ced978520 Parameterize the num of tokens that surround a highlight. 2020-10-06 17:06:40 +05:30
kishorenc
3ed27ab814 Expose document update API endpoint. 2020-09-27 20:00:40 +05:30
kishorenc
377769294f Add foundational support for document update. 2020-09-27 17:20:22 +05:30
kishorenc
5795aba81f Speed up token position computation. 2020-09-07 18:41:29 +05:30
kishorenc
2f21819db0 Use num_memory_shards as parameter name. 2020-08-24 17:58:15 +05:30
kishorenc
e2c0b52671 Free request & response objects via generator dispose callback. 2020-08-17 11:53:04 +05:30
kishorenc
22ce33bfbe Allow a threshold for memory limit to be specified. 2020-08-09 12:04:37 +05:30
kishorenc
237f47974a Use batching for imports. 2020-07-25 20:36:05 +05:30
kishorenc
0f38242e09 Clearer error message about group limit range. 2020-07-01 08:09:00 +05:30
kishorenc
ef40516790 Fixing an issue with grouping across indices. 2020-06-18 18:17:33 +05:30
kishorenc
3f6f13baf1 Support for grouping overrides. 2020-06-16 16:28:14 +05:30
kishorenc
444633ce85 Merge branch 'master' into distinct-grouping
# Conflicts:
#	test/collection_test.cpp
2020-06-12 21:16:49 +05:30
kishorenc
ae66d6a8d0 Schema response should contain optional field value. 2020-06-12 20:57:26 +05:30
kishorenc
b7dcb7367b Expose group by params. 2020-06-10 19:58:55 +05:30
kishorenc
8ffb9c5154 Reuse KV pointers instead of copying as objects. 2020-06-07 17:36:27 +05:30
kishorenc
67185c9ee1 Limit per_page to a sane number. 2020-05-31 09:28:50 +05:30
kishorenc
a4a51846f7 Calculate max_hits dynamically from per_page and page params.
So we no longer need this parameter to be exposed.
2020-05-30 16:08:13 +05:30
kishorenc
f1d0f279c7 Support for pinning and hiding hits during query time. 2020-05-21 12:46:51 +05:30
kishorenc
6af35f5de8 Allow max_hits to be specified as "all". 2020-05-21 11:19:15 +05:30
kishorenc
88192820de Free leaf indices during early return. 2020-03-26 14:05:59 +05:30
kishorenc
206fe5b833 Expose typo_tokens_threshold parameter.
If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found.
2020-03-07 12:31:05 +05:30
kishorenc
63ecc841b5 Return fully highlighted values for specified fields.
Via the `highlight_full_fields` parameter.
2020-03-02 20:50:11 +05:30
kishorenc
31e9e4719a Compute stats on all facet values regardless of facet query. 2020-03-01 21:18:45 +05:30
kishorenc
9622d59996 Parameterize snippet_threshold for highlighting.
Strings under this length will be fully highlighted, instead of showing a snippet.
2020-02-27 18:50:31 +05:30
kishorenc
8a24d047ec Compute facet stats for numerical fields. 2020-02-27 14:27:43 +05:30
kishorenc
991bf03bcb Only the last facet query token must be treated as prefix. 2020-02-23 11:52:11 +05:30
kishorenc
2dfec18811 Fix comparator for facet sorting. 2020-02-23 08:13:37 +05:30
kishorenc
38bac77c43 Bug fix: incomplete string array deletion. 2020-02-22 17:30:14 +05:30
kishorenc
712d962cac WIP: Highlight facet query results 2020-02-21 21:45:28 +05:30
kishorenc
4fa89ebf00 Implement facet filtering. 2020-02-17 21:59:47 +05:30
kishorenc
dfbe3888d8 Refactor facet search to use hash based mapping.
Also fixed a bug where filter fields marked as facets were being searched only verbatim.
2020-02-16 17:41:17 +05:30
kishorenc
b14cd3edca Address some warning. 2020-02-11 20:19:46 +05:30
kishorenc
fd285b6fbe Allow maximum hits returned to be configurable.
This obviously has a performance impact, but it might not be a big deal for most people and is now left to their discretion. The default of 500 results stays to maintain backward compatibility.
2020-02-10 20:54:38 +05:30
Kishore Nallan
9f788546c8 Return json object rather than string for convenience. 2019-08-17 19:40:58 +05:30
Kishore Nallan
237196204c Persist override configuration. 2019-08-17 10:40:13 +05:30
Kishore Nallan
c1b9501351 Lay foundations for overriding search results. 2019-08-10 19:46:37 +05:30
Kishore Nallan
e6dad1682c Parameter for controlling max number of facets returned during search. 2019-06-26 18:58:18 +05:30