You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BM25 indexes can't index documents whose text is in a named graph #2243
P2Scheduled: real but not urgentarea:queryQuery execution, planning, fast paths, overlay, result formattingbugSomething isn't working as expectedfull text search
A BM25 indexing query whose documents live in a named graph builds an empty index, and nothing says so. The where matches, but a document's text comes from the select hydration, and the indexing path formats results against the default graph: execute_bm25_indexing_query in fluree-db-api/src/graph_source/bm25.rs calls result.to_jsonld_async(ledger.as_graph_db_ref(0)). The hydrated document has none of the selected properties, so the builder finds no text and skips it.
execute_vector_indexing_query in vector.rs runs and formats the same way, so vector indexes should have the same gap. That hasn't been run.
create_full_text_index with that query gives an index with no documents. Writing the title to the default graph, and only ex:g1 a ex:Doc to <g>, gets ex:g1 indexed.
Options
Let the index config name the graph its query reads, then run and format the query against that graph.
Hydrate each document from the graph its where matched it in.
Either way, warn when matched documents come out with no text, so that an empty index isn't silent.
P2Scheduled: real but not urgentarea:queryQuery execution, planning, fast paths, overlay, result formattingbugSomething isn't working as expectedfull text search
Activity