From 67028a0bebd47b182557f29984b6bdb37a9eb7fc Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 31 Jul 2015 13:01:02 +0200 Subject: [PATCH] Autophrase only active on AND lists --- src/rcldb/searchdata.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp index 056d200f..3fda7988 100644 --- a/src/rcldb/searchdata.cpp +++ b/src/rcldb/searchdata.cpp @@ -91,11 +91,11 @@ bool SearchData::maybeAddAutoPhrase(Rcl::Db& db, double freqThreshold) string field; vector words; - // Walk the clause list. If we find any non simple clause or different - // field names, bail out. + // Walk the clause list. If this is not an AND list, we find any + // non simple clause or different field names, bail out. for (qlist_it_t it = m_query.begin(); it != m_query.end(); it++) { SClType tp = (*it)->m_tp; - if (tp != SCLT_AND && tp != SCLT_OR) { + if (tp != SCLT_AND) { LOGDEB2(("SearchData::maybeAddAutoPhrase: wrong tp %d\n", tp)); return false; }