From d46535a7c28c530b6d7f3e922b53a07d86257c63 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Mon, 5 Mar 2018 10:09:53 -0800 Subject: [PATCH] When an attribute is known-fulltext, don't hit AllDatoms. (#576) r=nalexander --- query-algebrizer/src/clauses/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query-algebrizer/src/clauses/mod.rs b/query-algebrizer/src/clauses/mod.rs index 6431429f..2e2d382e 100644 --- a/query-algebrizer/src/clauses/mod.rs +++ b/query-algebrizer/src/clauses/mod.rs @@ -742,10 +742,10 @@ impl ConjoiningClauses { // TODO: an existing non-string binding can cause this pattern to fail. &EvolvedValuePlace::Variable(_) => - Ok(DatomsTable::AllDatoms), + Ok(DatomsTable::FulltextDatoms), &EvolvedValuePlace::Value(TypedValue::String(_)) => - Ok(DatomsTable::AllDatoms), + Ok(DatomsTable::FulltextDatoms), _ => { // We can't succeed if there's a non-string constant value for a fulltext