579 Commits

Author SHA1 Message Date
kishorenc
10c22c174a Consider grouping when generating facet counts. 2020-06-14 08:14:03 +05:30
kishorenc
e234f23cec Merge branch 'master' into distinct-grouping 2020-06-13 12:39:11 +05:30
kishorenc
50dba3ec43 Fixed an edge case in filtering int64 values. 2020-06-13 11:12:46 +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
81dfe76009 Float array field should accept integer values. 2020-06-12 20:40:15 +05:30
kishorenc
9867ca5e29 Handle deletion of records with optional fields. 2020-06-10 22:05:59 +05:30
kishorenc
07456a5c6a Handle deletion of records with optional fields. 2020-06-10 21:59:56 +05:30
kishorenc
b97c37215a Basic distinct test is passing. 2020-06-06 15:14:53 +05:30
kishorenc
8f458640fd Choose sift down/up based on array size. 2020-06-06 13:20:42 +05:30
kishorenc
2c22f9b2e1 Merge branch 'master' into distinct-grouping 2020-06-05 20:42:35 +05:30
kishorenc
5b2407433f Refactor topster to support grouping. 2020-06-05 20:41:51 +05:30
kishorenc
2dcd813c6d Return an error when per page param exceeds in-built limit. 2020-05-31 13:01:08 +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
377394e793 Remove search-only-api-key server argument.
The API key generation end-point should be use for generating keys with specific ACL.
2020-05-30 11:09:35 +05:30
kishorenc
2d169df65f Handle bad request body for key creation. 2020-05-26 18:33:17 +05:30
kishorenc
2cf67d0c1e Pinned and hidden hits will take precedence over override rules. 2020-05-22 07:50:02 +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
a3024a7342 Fixed an edge case in fuzzy search with SKU-like tokens. 2020-05-20 19:17:43 +05:30
kishorenc
da5b860661 Excluded fields should not be present in highlights. 2020-05-05 19:40:18 +05:30
kishorenc
1395d74d48 Manage scoped search API keys. 2020-04-30 14:21:39 +05:30
kishorenc
29b4225461 API Key management. 2020-04-27 21:43:24 +05:30
kishorenc
559ee3369a Call the string similarity score as _text_match to reduce ambiguity. 2020-04-05 09:15:20 +05:30
kishorenc
8845917020 Symlink name must not conflict with a collection name. 2020-04-04 21:25:33 +05:30
kishorenc
16a1285a9b Add facet query tests for overrides. 2020-03-27 20:06:33 +05:30
kishorenc
8829c5aebc Allow customization of peering address.
This is an optional argument since Typesense automatically tries to bind on an internal IP. One needs to specify this only when there are multiple internal IPs.
2020-03-26 17:39:42 +05:30
kishorenc
c982335bdd Fix tests. 2020-03-17 07:53:41 +05:30
kishorenc
df08df5d96 Exit cleanly from raft service on validation errors. 2020-03-17 07:43:22 +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
eef3a5a3de Handle optional field for legacy records. 2020-03-07 08:59:38 +05:30
kishorenc
6bb6f2f4b8 Return request params in the response. 2020-03-06 07:39:28 +05:30
kishorenc
6c8e62a61b Allow fields to be marked as optional in the schema.
Downside: optional fields cannot be used for sorting or marked as default sorting field.
2020-03-05 21:56:05 +05:30
kishorenc
ba17243a36 Split collection test into smaller test suites. 2020-03-05 17:53:13 +05:30
kishorenc
5e1c5f2093 Ditch use of number_t for sorting. 2020-03-05 08:03:01 +05:30
kishorenc
eed10d554d Sort results on custom order. 2020-03-04 20:27:33 +05:30
kishorenc
7b342c7c73 Refactor number_t to use a single int64_t as store. 2020-03-04 06:23:50 +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
e82bee7d89 Allow filter value of bool field to be multi-valued. 2020-02-27 10:59:55 +05:30
kishorenc
95c8fb7082 Allow non-string fields to be facetable. 2020-02-26 22:59:01 +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
1369a473e4 Facet query partial highlighting + tests. 2020-02-22 21:43:57 +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
5de270f4ae Allow large float values for default_sorting_field.
Fixes https://github.com/typesense/typesense/issues/94
2020-02-20 15:00:03 +05:30
kishorenc
412efbb500 Float fields used as sort field should accept integers. 2020-02-20 13:43:20 +05:30