Commit Graph

52 Commits

Author SHA1 Message Date
89d0758713 Revert "Revert "Sort at query time"" 2021-08-24 11:55:16 +02:00
922f9fd4d5 Revert "Sort at query time" 2021-08-20 18:09:17 +02:00
1b7f6ea1e7 Return a new error when the sort criteria is not sortable 2021-08-18 15:04:07 +02:00
407f53872a Add a sort_criteria method to the Search builder struct 2021-08-18 15:04:07 +02:00
687cd2e205 Introduce the new Sort criterion and AscDesc enum 2021-08-18 15:04:07 +02:00
7aa6cc9b04 Do not insert fields in the map when changing the settings 2021-07-22 18:40:12 +02:00
f858f64b1f Move the facet number iterators into their own module 2021-07-21 16:59:37 +02:00
32b7bd366f Remove the roaring operation functions warnings 2021-06-30 14:12:56 +02:00
3d90b03d7b fix the limit
There was no check on the limit and thus, if a user especified a very large number this line could causes a panic
2021-06-22 14:52:13 +02:00
9716fb3b36 format the whole project 2021-06-16 18:33:33 +02:00
7ac441e473 Fix small typos 2021-06-16 11:03:37 +02:00
a7d6930905 Replace the panicking expect by tracked Errors 2021-06-15 11:51:32 +02:00
312c2d1d8e Use the Error enum everywhere in the project 2021-06-14 16:58:38 +02:00
3c304c89d4 Make sure that we generate the faceted database when required 2021-06-02 16:24:58 +02:00
3b1cd4c4b4 Rename the FacetCondition into FilterCondition 2021-06-02 16:24:58 +02:00
1e366dae3e remove useless lifetime on Distinct Trait 2021-06-02 16:24:58 +02:00
187c713de5 Remove the MapDistinct struct as now distinct attributes are faceted 2021-06-02 16:24:57 +02:00
2a3f9b32ff Rename the faceted fields into filterable fields 2021-06-02 16:24:57 +02:00
1df68d342a Make the MatchingWords return the number of matching bytes 2021-05-31 18:22:29 +02:00
02c655ff1a Refine the facet distribution to use both databases 2021-05-25 11:30:00 +02:00
f7efde11d9 Refine the facet condition to use both facet databases 2021-05-25 11:30:00 +02:00
bd7b285bae Split the update side to use the number and the strings facet databases 2021-05-25 11:30:00 +02:00
a3f8686fbf Introduce exactness criterion 2021-05-06 14:28:30 +02:00
ee09e50e7f Remove excluded document in criteria iterations
- pass excluded document to criteria to remove them in higher levels of the bucket-sort
- merge already returned document with excluded documents to avoid duplicas

Related to #125 and #112
Fix #170
2021-04-29 12:09:38 +02:00
658f316511 Introduce the Initial Criterion 2021-04-27 14:35:43 +02:00
6fa00c61d2 feat(search): support words_limit 2021-04-20 12:22:04 +03:00
75464a1baa review fixes 2021-04-15 16:25:56 +02:00
45c45e11dd implement distinct attribute
distinct can return error

facet distinct on numbers

return distinct error

review fixes

make get_facet_value more generic

fixes
2021-04-15 16:25:55 +02:00
dcb00b2e54 test a new implementation of the stop_words 2021-04-12 18:35:33 +02:00
a2f46029c7 implement a first version of the stop_words
The front must provide a BTreeSet containing the stop words
The stop_words are set at None if an empty Set is provided
add the stop-words in the http-ui interface

Use maplit in the test
and remove all the useless drop(rtxn) at the end of all tests
2021-04-01 13:57:55 +02:00
9c27183876 fix broken offset 2021-03-15 20:23:50 +01:00
d48008339e Introduce two new optional_words and authorize_typos Search options 2021-03-10 11:16:30 +01:00
62a70c300d Optimize words criterion 2021-03-10 10:42:53 +01:00
5fcaedb880 Introduce a WordDerivationsCache struct 2021-03-08 16:00:53 +01:00
9b6b35d9b7 Clean up some comments 2021-03-03 18:19:10 +01:00
f118d7e067 build criteria from settings 2021-03-03 15:45:03 +01:00
daf126a638 Introduce the final Fetcher criterion 2021-03-03 15:45:03 +01:00
5af63c74e0 Speed-up the MatchingWords highlighting struct 2021-03-03 15:45:03 +01:00
4510bbccca Add a lot of debug 2021-03-03 15:43:44 +01:00
9bc9b36645 Introduce the Proximity criterion 2021-03-03 15:43:44 +01:00
22b84fe543 Use the words criterion in the search module 2021-03-03 15:43:44 +01:00
14f9f85c4b Introduce the AscDesc criterion 2021-03-03 15:43:44 +01:00
e174ccbd8e Use the words criterion in the search module 2021-03-03 15:43:43 +01:00
d92ad5640a remove option on bucket_candidates 2021-03-03 15:43:43 +01:00
64688b3786 fix query tree builder 2021-03-03 15:43:43 +01:00
a273c46559 clean warnings 2021-03-03 15:43:42 +01:00
fea9ffc46a Use the bucket candidates in the search module 2021-03-03 15:43:42 +01:00
5344abc008 Introduce the CriterionResult return type 2021-03-03 15:43:41 +01:00
98e69e63d2 implement Context trait for criteria 2021-03-03 15:43:41 +01:00
f091f370d0 Use the Typo criteria in the search module 2021-03-03 15:43:41 +01:00