wip: Create a tree from query but need to show synonyms

This commit is contained in:
Clément Renault 2020-01-07 17:40:58 +01:00
parent 856c5c4214
commit 6e1f4af833
3 changed files with 359 additions and 0 deletions

View file

@ -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() {