From 615a52ec81178cb88ff8cc68bf77ae8f1c1eecae Mon Sep 17 00:00:00 2001 From: dockes Date: Wed, 16 Nov 2005 17:29:38 +0000 Subject: [PATCH] use and_maybe in adv search --- src/mk/localdefs | 2 +- src/rcldb/rcldb.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mk/localdefs b/src/mk/localdefs index e7ba8c69..f1856491 100644 --- a/src/mk/localdefs +++ b/src/mk/localdefs @@ -5,5 +5,5 @@ XAPIANCXXFLAGS=-I/usr/local/include LIBICONV=-L/usr/local/lib -liconv INCICONV=-I/usr/local/include -LOCALCXXFLAGS = $(INCICONV) $(CXXFLAGSXAPIAN) +LOCALCXXFLAGS = $(INCICONV) $(XAPIANCXXFLAGS) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 5ad97382..fa46dfed 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.36 2005-11-14 09:56:49 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.37 2005-11-16 17:29:38 dockes Exp $ (C) 2004 J.F.Dockes"; #endif #include #include @@ -880,7 +880,7 @@ bool Rcl::Db::setQuery(AdvSearchData &sdata, QueryOpts opts, nq = Xapian::Query(Xapian::Query::OP_OR, pqueries.begin(), pqueries.end()); xq = xq.empty() ? nq : - Xapian::Query(Xapian::Query::OP_AND, xq, nq); + Xapian::Query(Xapian::Query::OP_AND_MAYBE, xq, nq); pqueries.clear(); } }