|
a/src/rcldb/searchdata.cpp |
|
b/src/rcldb/searchdata.cpp |
|
... |
|
... |
858 |
return false;
|
858 |
return false;
|
859 |
}
|
859 |
}
|
860 |
return true;
|
860 |
return true;
|
861 |
}
|
861 |
}
|
862 |
|
862 |
|
863 |
static const string nullstemlang;
|
863 |
static const string cstr_null;
|
864 |
|
864 |
|
865 |
// Translate a simple OR, AND, or EXCL search clause.
|
865 |
// Translate a simple OR, AND, or EXCL search clause.
|
866 |
bool SearchDataClauseSimple::toNativeQuery(Rcl::Db &db, void *p,
|
866 |
bool SearchDataClauseSimple::toNativeQuery(Rcl::Db &db, void *p,
|
867 |
const string& stemlang)
|
867 |
const string& stemlang)
|
868 |
{
|
868 |
{
|
869 |
const string& l_stemlang = (m_modifiers&SDCM_NOSTEMMING)? nullstemlang:
|
869 |
const string& l_stemlang = (m_modifiers&SDCM_NOSTEMMING)? cstr_null:
|
870 |
stemlang;
|
870 |
stemlang;
|
871 |
|
871 |
|
872 |
m_terms.clear();
|
872 |
m_terms.clear();
|
873 |
m_groups.clear();
|
873 |
m_groups.clear();
|
874 |
Xapian::Query *qp = (Xapian::Query *)p;
|
874 |
Xapian::Query *qp = (Xapian::Query *)p;
|
|
... |
|
... |
943 |
|
943 |
|
944 |
// Translate NEAR or PHRASE clause.
|
944 |
// Translate NEAR or PHRASE clause.
|
945 |
bool SearchDataClauseDist::toNativeQuery(Rcl::Db &db, void *p,
|
945 |
bool SearchDataClauseDist::toNativeQuery(Rcl::Db &db, void *p,
|
946 |
const string& stemlang)
|
946 |
const string& stemlang)
|
947 |
{
|
947 |
{
|
948 |
const string& l_stemlang = (m_modifiers&SDCM_NOSTEMMING)? nullstemlang:
|
948 |
const string& l_stemlang = (m_modifiers&SDCM_NOSTEMMING)? cstr_null:
|
949 |
stemlang;
|
949 |
stemlang;
|
950 |
LOGDEB(("SearchDataClauseDist::toNativeQuery\n"));
|
950 |
LOGDEB(("SearchDataClauseDist::toNativeQuery\n"));
|
951 |
m_terms.clear();
|
951 |
m_terms.clear();
|
952 |
m_groups.clear();
|
952 |
m_groups.clear();
|
953 |
|
953 |
|