Commit Graph

43 Commits

Author SHA1 Message Date
Clément Renault
f5f4438b43
Remove the duplicated code inside the facet_values_from_documents method 2021-01-28 11:22:18 +01:00
Clément Renault
b41bf58658
Split the FacetDistribution facet_values method into three 2021-01-27 18:29:56 +01:00
Clément Renault
a3e3bebed7
Rework the FacetDistribution execute method to use the faceted_fields struct 2021-01-27 18:29:54 +01:00
Clément Renault
11309ee99c
Rework the FacetDistribution execute method to use the faceted_fields struct 2021-01-27 14:53:50 +01:00
Clément Renault
9c8a654079
Add comments to help read the facet_values branchings 2021-01-27 14:49:08 +01:00
Clément Renault
2e00740515
Make sure that we don't iterate throught all string facet values 2021-01-27 14:41:36 +01:00
Clément Renault
b52d500fbc
Reorder the FacetType enum branching in the facet_value method 2021-01-27 14:36:49 +01:00
Clément Renault
d91d321129
Introduce some constants to the FacetDistribution struct and settings 2021-01-27 14:32:30 +01:00
Clément Renault
60480a1e2f
Rework the FacetCondition from_array constructor 2021-01-27 14:25:53 +01:00
Kerollmops
916dd3b7c5
Use the faceted_fields_ids method to fetch the ids 2021-01-26 14:14:38 +01:00
Kerollmops
7be275b692
Add the count to the facet distribution 2021-01-26 14:14:37 +01:00
Clément Renault
4b9e81fc89
Order the facet values lexicographically 2021-01-26 14:09:09 +01:00
Kerollmops
d893e83622
Speed-up facet aggregation by using a FacetIter 2021-01-26 14:09:08 +01:00
Kerollmops
afa86d8a45
Add a simple test to the FacetCondition from_array method 2021-01-26 14:06:29 +01:00
Kerollmops
cb5e57e2dd
FacetCondition can be created from array of facets 2021-01-26 14:06:28 +01:00
Clément Renault
3916c54501
Speed-up facet aggregation on low number of candidates 2021-01-26 14:06:28 +01:00
Clément Renault
a17bb54d8f
Limit the number of values by facets to a maximum of 1000 2021-01-26 14:06:28 +01:00
Kerollmops
3b64735058
Introduce a struct to compute facets values 2021-01-26 14:06:27 +01:00
mpostma
87a56d2bc9
Fix settings bug
replace ids with str in settings

This allows for better maintainability of the settings code, since
updating the searchable attributes is now straightforward.

criterion use string

fix reindexing fieldid remaping

add tests for primary_key compute

fix tests

fix http-ui

fixup! add tests for primary_key compute

code improvements settings

update deps

fixup! code improvements settings

fixup! refactor settings updates and fix bug

fixup! Fix settings bug

fixup! Fix settings bug

fixup! Fix settings bug

Update src/update/index_documents/transform.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>

fixup! Fix settings bug
2021-01-26 13:53:08 +01:00
mpostma
1ae761311e
integrate with meilisearch tokenizer 2021-01-07 16:14:27 +01:00
mpostma
49a016b53d create update handler trait
fix type inference error
2020-12-22 12:59:15 +01:00
Clément Renault
914eab12f7
Return non-faceted documents as remaining results 2020-12-17 13:57:07 +01:00
Clément Renault
0e5609d40e
Limit the number of elements after reversing it 2020-12-12 14:21:27 +01:00
Clément Renault
026f54dcf7
Use the field id docid facet value database when sorting documents 2020-12-04 12:03:20 +01:00
Clément Renault
4ffbddf21f
Introduce debug info for the time it takes to fetch candidates 2020-12-04 12:03:20 +01:00
Clément Renault
13217f072b
Use the FacetRange iterator in the facet exploring function 2020-12-04 12:03:20 +01:00
Clément Renault
0959e1501f
Introduce the FacetRevRange Iterator struct 2020-12-04 12:02:23 +01:00
Clément Renault
58d039a70d
Introduce the FacetIter Iterator 2020-12-04 12:02:23 +01:00
Clément Renault
d8e25a0863
Order documents by the first custom criterion on basic searches 2020-12-04 12:02:23 +01:00
Clément Renault
e0cc7faea1
Use the facet ordered to the search 2020-12-04 12:02:23 +01:00
Kerollmops
57e8e5c965
Move the FacetCondition to its own module 2020-12-02 11:21:26 +01:00
Clément Renault
ecc8bc8910
Introduce the FieldId u8 alias type 2020-12-02 11:19:45 +01:00
Kerollmops
d0240bd9d0
Done a big clippy pass 2020-12-01 14:45:19 +01:00
Kerollmops
844a9022fb
Introduce the FacetStringOperator equal and not_equal constructors 2020-12-01 14:29:44 +01:00
Kerollmops
45877b3154
Lowercase the facet string value 2020-12-01 14:10:00 +01:00
Clément Renault
276c87af68
Introduce more test to the FacetCondition struct 2020-11-23 16:43:57 +01:00
Clément Renault
a50f63840f
Return spanned pest error while parsing numbers in facet filters 2020-11-23 16:43:57 +01:00
Clément Renault
fc686aaca7
Use the De Morgan law to simplify the NOT operation 2020-11-23 16:43:56 +01:00
Clément Renault
7370ef8c5e
Add two simple test to the facet FacetCondition struct construction 2020-11-23 16:43:56 +01:00
Clément Renault
fc242f6e1f
Rewrite the FacetCondtion Debug impl in a defensive way 2020-11-23 16:43:56 +01:00
Clément Renault
a0adfb5e8e
Introduce a real pest parser and support every facet filter conditions 2020-11-23 16:43:55 +01:00
Clément Renault
c52d09d5b1
Support a basic version of the string facet query system 2020-11-23 16:43:55 +01:00
Clément Renault
278391d961
Move the facets related system into the new search module 2020-11-23 16:43:54 +01:00