Log
-
Add broad filters based on sort parameters 💬 by Caio 4 years ago
When sorting by a feature, only output recipes that actually contain said feature. I'm not sure I like this - In one hand the `items` part of the output is a lot more sane, but it's really weird to ask for sorting and having the result-set change drastically. I think the ideal, albeit still very weird, is pushing the items with missing features to the end of the results (i.e. score them with MAX or MIN, based on order), but doing that externally will be very annoying.
-
Mention `sort` restrictions by Caio 4 years ago
-
Use a Result type for SearchCursor::from_bytes by Caio 4 years ago
-
Switch to quickcheck 💬 by Caio 4 years ago
I expected to have my property tests to start failing on 3049519e6, left a `todo!()` note for it but the failure never happened and it sneaked past me until now. The culprit was a bad test: `no_crash_with_properly_sized_junk` relies on the framework providing a properly sized input and the decoder (correctly) discards things with wrong size - when the payload length changed to 34 I expected this to crash, but naturally it didn't. A proper fix would have been to adjust `uniform32` to `uniform34` and assert the length against a constant, but `proptest` doesn't ship with support for larger arrays and I'm not keen on copy pasting a bunch of code just for creating my own strategy. Instead, I switch to `quickcheck` that I'm already familiar with and allows for quick input discard in my case. Now the test actually fails :-)
-
Add a simple API walk-through by Caio 4 years ago
-
Strict derived Query types deserialization by Caio 4 years ago
-
Add a more information about tique::top_collector by Caio 4 years ago
-
Add support for ascending relevance ordering by Caio 4 years ago
-
Add support for modifying the original score 💬 by Caio 4 years ago
This is pretty much a copy pasta from custom_score.rs, the difference is that instead of using `Fn(DocId) -> T` it uses `Fn(DocId,Score) -> T` Essentially the same as tantivy's, with the added support for conditions.
-
Add types back to cursors 💬 by Caio 4 years ago
This patch starts adding the type information to the cursors. This information is"lost" by containing everything as (u64,u64), so we add it back by making cursor types enums. The price I'm paying is an added byte for the type tag (mapping to an enum member) which leads to 2 extra characters in the base64 SearchCursor representation.
-
Reorganize top_collector::fastfield by Caio 4 years ago
-
Update README by Caio 4 years ago
-
Add (partial) support for ascending sort 💬 by Caio 4 years ago
Now this works for everything fast-field. A new collector will be needed for reversing `Sort::Relevance`
-
Wire fast-field sorting via tique's new interface 💬 by Caio 4 years ago
Now it should be easy to add support for reversing the order when sorting by a fast-field. For reversing the relevance (default) ordering I'll need to implement functionality to modify the score (as opposed to just supplying one via a fast field)
-
Add support for (reversible) fast field scoring 💬 by Caio 4 years ago
This patch replaces the original `ordered_by_XXX_fast_field` with a more explicit `fastfield::{ascending,descending}` idiom. Essentially, this is a very verbose way of encoding a runtime boolean check into the type system.
-
Only output image url(s) if we have any by Caio 4 years ago
-
Update Cargo.lock by Caio 4 years ago
-
Add a simple README by Caio 4 years ago
-
Minor cleanup by Caio 4 years ago
-
Make public recipe models more detailed 💬 by Caio 4 years ago
Now a basic search result item will contain the main image (if it exists) and a detailed view will expose the instructions.
-
Remove timeout functionality 💬 by Caio 4 years ago
I'll leave client management stuff to the load balancer
-
Remove dead code by Caio 4 years ago
-
Use a boolean property instead of Not{Term,Phrase} by Caio 4 years ago
-
Move `from_*` methods into `From` trait implementations by Caio 4 years ago
-
Adjust to tique's new trait names by Caio 4 years ago
-
Better names for ConditionalTopCollector traits by Caio 4 years ago
-
Reduce some of the `unwrap()`ing by Caio 4 years ago
-
(kinda) Organize the Result types by Caio 4 years ago
-
Define ENCODED_SEARCH_CURSOR_LEN as 32 directly by Caio 4 years ago
-
Add a simple /info endpoint 💬 by Caio 4 years ago
This can serve as a health-check and as an initial "what can I ask this index about" answer. Right now, this is what you get: { "total_recipes": 1183461, "features": { "num_ingredients": [ { "min": 2, "max": 93, "count": 1183461 } ], "instructions_length": [ { "min": 18, "max": 34663, "count": 1183461 } ], "prep_time": [ { "min": 0, "max": 129600, "count": 755741 } ], "total_time": [ { "min": 0, "max": 259200, "count": 592741 } ], "cook_time": [ { "min": 1, "max": 878040, "count": 605199 } ], "calories": [ { "min": 1, "max": 1285624091, "count": 311252 } ], "fat_content": [ { "min": 0, "max": 50693.902, "count": 275000 } ], "carb_content": [ { "min": 0, "max": 7266.2, "count": 276161 } ], "protein_content": [ { "min": 0, "max": 15727.4, "count": 267743 } ], "diet_lowcarb": [ { "min": 0.5, "max": 1, "count": 863199 } ], "diet_vegetarian": [ { "min": 1, "max": 1, "count": 22716 } ], "diet_vegan": [ { "min": 1, "max": 1, "count": 13788 } ], "diet_keto": [ { "min": 0.5, "max": 1, "count": 109035 } ], "diet_paleo": [ { "min": 0.5, "max": 1, "count": 412171 } ] } }