mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Introduce a query_builder method on Index
This commit is contained in:
parent
a57a64823e
commit
0bfba3e4ba
3 changed files with 12 additions and 10 deletions
|
@ -15,7 +15,7 @@ pub use self::updates::Updates;
|
|||
pub use self::updates_results::UpdatesResults;
|
||||
|
||||
use meilidb_schema::Schema;
|
||||
use crate::{update, MResult};
|
||||
use crate::{update, query_builder::QueryBuilder, MResult};
|
||||
|
||||
fn aligned_to(bytes: &[u8], align: usize) -> bool {
|
||||
(bytes as *const _ as *const () as usize) % align == 0
|
||||
|
@ -85,6 +85,10 @@ impl Index {
|
|||
self.updates_notifier.clone(),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn query_builder(&self) -> QueryBuilder {
|
||||
QueryBuilder::new(self.main, self.postings_lists, self.synonyms)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue