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
Kishore Nallan
3f64a26399
When a write to on-disk storage fails, ensure that in-memory write is rolled back.
...
Otherwise, the memory and disk stores will not be in sync.
2019-05-31 19:11:30 +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
ade8e1946f
Bulk import API.
2019-05-11 13:48:41 +05:30
Kishore Nallan
b5b7635dc7
Load the indices parallely from disk.
...
Decreases initialization and boot up time.
2019-02-09 16:34:39 +05:30
Kishore Nallan
35b7ba720b
Store the created timestamp as part of collection metadata.
2018-08-26 16:45:47 +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
95112a8086
Support inclusion and exclusion of document fields that are returned in search response.
2018-05-08 07:53:13 +05:30
Kishore Nallan
6ad5e36179
Allow configuring a threshold for dropping tokens.
...
Fixes https://github.com/typesense/typesense/issues/20
2018-04-12 19:25:59 +05:30
Kishore Nallan
ca2c084d86
Rename token_ranking_field
to default_sorting_field
and make it mandatory.
2018-02-24 12:18:48 +05:30
Kishore Nallan
92335438b3
Log Bad JSON error.
2018-02-23 08:28:38 +05:30
Kishore Nallan
70d95475d9
Made a few comments better.
2018-02-10 14:43:37 -08:00
Kishore Nallan
0f7530ed13
Serialize and deserialize next sequence id properly instead of string encoding.
2018-02-02 19:02:19 -05:00
Kishore Nallan
b73dbebd2d
Handle scenarios when store get fails or doesn't find data when it should have.
2018-02-02 18:21:51 -05:00
Kishore Nallan
c3298ba6d8
Address -Wall and -Wextra warnings.
2018-01-25 20:08:13 +05:30
Kishore Nallan
192b00e71f
Address API review comments.
...
1. Move document specific actions under /documents
2. Document creation echoes the full document
3. Collections summary returns full detail on each each collection
4. Collections summary endpoint has no nested root attribute
5. When collection or document is deleted, the whole entity is returned in response
2018-01-02 21:35:24 +05:30
Kishore Nallan
01275c38f2
Use unorderd_map for low-volume meta datastructures.
...
Order of spp:sparse_hash_map during iteration is different in clang and gcc.
2017-12-20 09:16:15 +05:30
Kishore Nallan
bae67169d6
Collection summary end-point now shows the schema.
2017-12-16 18:43:08 +05:30
Kishore Nallan
3d38b63d7f
Support upto 500 search results.
2017-11-24 17:53:38 +05:30
Kishore Nallan
d132098463
Free h2o related resources to have a clean shutdown. [Valgrind]
2017-11-19 20:41:31 +05:30
Kishore Nallan
eff61d2c25
Search for documents parallely.
2017-11-18 22:22:52 +05:30
Kishore Nallan
f347375adb
Compiles, but tests are failing.
2017-11-07 17:17:32 +05:30
Kishore Nallan
9856c3888a
Create new collection.h and collection.cpp as a clone of index.h and index.cpp.
2017-11-06 12:47:43 +05:30
Kishore Nallan
883a9f14a0
Rename collection.h and collection.cpp to index.h and index.cpp.
2017-11-06 12:46:00 +05:30
Kishore Nallan
a6dced3c43
Do all validations upfront before attempting to index fields.
2017-10-23 21:32:51 +05:30
Kishore Nallan
a2ce56fd67
Allow string fields to be filtered on.
...
A rather convenient feature to have - but it would be a match of all tokens without typo tolerance.
2017-10-22 19:52:09 +05:30
Kishore Nallan
0e4517d901
Combine search, facet and sort fields into a single "fields".
...
1. All numerical fields are added to sort index automatically since that makes logical sense.
2. Search fields to be used as a facet are to have a `facet: true` property - removes duplication.
3. If someone wants to use a faceted field also to search against (rare scenario), then they can duplicate that field without the `facet: true` property.
2017-10-17 21:51:07 +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
d351523655
Allow results to be sorted on a float field.
2017-08-20 21:15:48 +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
e384b777a1
Collection operations on float fields.
2017-08-10 18:20:58 -04:00