mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
feat: Introduce filtering methods for Distinct/QueryBuilder
This commit is contained in:
parent
a0a11faee5
commit
e2a9dbc404
3 changed files with 46 additions and 19 deletions
|
@ -12,7 +12,7 @@ use crate::database::{retrieve_data_schema, retrieve_data_index};
|
|||
use crate::database::blob::positive::PositiveBlob;
|
||||
use crate::database::deserializer::Deserializer;
|
||||
use crate::database::schema::Schema;
|
||||
use crate::rank::QueryBuilder;
|
||||
use crate::rank::{QueryBuilder, FilterFunc};
|
||||
use crate::DocumentId;
|
||||
|
||||
pub struct DatabaseView<D>
|
||||
|
@ -71,7 +71,7 @@ where D: Deref<Target=DB>
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn query_builder(&self) -> Result<QueryBuilder<D>, Box<Error>> {
|
||||
pub fn query_builder(&self) -> Result<QueryBuilder<D, FilterFunc<D>>, Box<Error>> {
|
||||
QueryBuilder::new(self)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue