127 Commits

Author SHA1 Message Date
kishorenc
c982335bdd Fix tests. 2020-03-17 07:53:41 +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
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
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
kishorenc
9cbc90f2b7 Ensure that facet id mapping is done consistently. 2020-02-19 19:03:52 +05:30
kishorenc
b3a7b5cfb2 Temporarily remove ExcludeIncludeExactQueryMatch test. 2020-02-19 07:19:22 +05:30
kishorenc
67c2169b88 Fixed an issue with facet query containing multiple tokens. 2020-02-18 20:30:15 +05:30
kishorenc
4fa89ebf00 Implement facet filtering. 2020-02-17 21:59:47 +05:30
kishorenc
01b28c1108 Improve a facet test. 2020-02-16 19:28:28 +05:30
kishorenc
2fc58a54bb Allow facet field to be used as a query/filter field. 2020-02-16 19:27:23 +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
74aa2e8a84 Hits and found fields should always be returned in response.
Even if the query produces no results.
2020-01-30 22:08:03 +05:30
kishorenc
53086d6a52 Ensure that default sorting field exists in schema during collection creation. 2019-12-15 10:42:29 +05:30
kishorenc
fde1d268cf Fix duplicate counts when faceting across multiple query fields. 2019-12-09 08:57:27 +05:30
kishorenc
d2dba44e5e Test for edge case of finding no query tokens in the array. 2019-11-19 14:01:41 +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
Kishore Nallan
aa439c1ea6 Fix long queries causing highlighter to misbehave and sometimes crash.
A window of size 10 is used by the highlighter to mark overlap with query text. When query length exceeded 10 tokens, this caused the highlighter to break.
2019-06-25 12:20:07 +05:30
Kishore Nallan
a2e3d5ac79 Fix facet counts not showing up in wildcard searches. 2019-06-14 08:37:27 +05:30
Kishore Nallan
d524b08884 Add test for bad import JSON. 2019-05-26 21:06:01 +05:30
Kishore Nallan
ba205222b7 Refactor bulk indexing process. 2019-05-25 22:28:13 +05:30
Kishore Nallan
2f0f3f9c9a Pull index count into configs. 2019-05-14 19:35:15 +05:30
Kishore Nallan
8f167dd7df Test for import. 2019-05-11 17:07:23 +05:30
Kishore Nallan
e1db28a153 When a facet field is filtered upon, search should be verbatim instead of normalizing the filter_by value.
There was also a difference in the behavior between string and string array facet fields which is corrected in this PR.

Fixes https://github.com/typesense/typesense/issues/54
2019-04-22 20:58:54 +05:30
Kishore Nallan
6bb139399d Fixed an edge case that causes overflow when querying large string fields. 2018-06-08 20:59:14 +05:30
Kishore Nallan
c5b7f3c7e2 Return snippets of best matched array elements instead of just the best matched element.
However, we limit the number of snippets returned to 5 for now.
2018-05-22 14:48:25 +05:30
Kishore Nallan
0014e19ea6 Highlighting should include all search fields, and not just the best matched field. 2018-05-14 14:11:14 +05:30
Kishore Nallan
2d7e75caa5 Support wildcard query: using a * would ignore the search query and consider all records for filter+sort. 2018-05-12 09:48:29 +05:30
Kishore Nallan
95112a8086 Support inclusion and exclusion of document fields that are returned in search response. 2018-05-08 07:53:13 +05:30
Kishore Nallan
46983ba6b4 Simplify the structure of the "highlight" field in response. 2018-05-05 17:48:04 +05:30
Kishore Nallan
56ed39e3ff Refactor topster to ensure that it handles insertion of duplicate keys.
Instead of ignoring a duplicate blindly, ignore when match score is less than existing key.
2018-04-30 20:28:56 +05:30
Kishore Nallan
1d1cd2459b When multiple fields are searched, the same document should not be returned twice. 2018-04-24 17:49:04 +05:30
Kishore Nallan
33552ca627 Change structure of hightlight in response to allow sending the matched array index. 2018-04-23 21:54:08 +05:30