mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
wip: Create a tree from query but need to show synonyms
This commit is contained in:
parent
856c5c4214
commit
6e1f4af833
3 changed files with 359 additions and 0 deletions
|
@ -28,6 +28,7 @@ use crate::distinct_map::{BufferedDistinctMap, DistinctMap};
|
|||
use crate::raw_document::RawDocument;
|
||||
use crate::{database::MainT, reordered_attrs::ReorderedAttrs};
|
||||
use crate::{store, Document, DocumentId, MResult};
|
||||
use crate::query_tree::create_query_tree;
|
||||
|
||||
pub fn bucket_sort<'c, FI>(
|
||||
reader: &heed::RoTxn<MainT>,
|
||||
|
@ -46,6 +47,9 @@ pub fn bucket_sort<'c, FI>(
|
|||
where
|
||||
FI: Fn(DocumentId) -> bool,
|
||||
{
|
||||
let operation = create_query_tree(reader, postings_lists_store, synonyms_store, query).unwrap();
|
||||
println!("{:?}", operation);
|
||||
|
||||
// We delegate the filter work to the distinct query builder,
|
||||
// specifying a distinct rule that has no effect.
|
||||
if filter.is_some() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue