simplify calls to isStop
This commit is contained in:
parent
acb297c9df
commit
eda494153e
@ -766,7 +766,7 @@ int Db::termDocCnt(const string& _term)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_stops.hasStops() && m_stops.isStop(term)) {
|
if (m_stops.isStop(term)) {
|
||||||
LOGDEB1(("Db::termDocCnt [%s] in stop list\n", term.c_str()));
|
LOGDEB1(("Db::termDocCnt [%s] in stop list\n", term.c_str()));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -942,7 +942,7 @@ bool TextSplitDb::takeword(const std::string &_term, int pos, int, int)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stops.hasStops() && stops.isStop(term)) {
|
if (stops.isStop(term)) {
|
||||||
LOGDEB1(("Db: takeword [%s] in stop list\n", term.c_str()));
|
LOGDEB1(("Db: takeword [%s] in stop list\n", term.c_str()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -494,7 +494,7 @@ class TextSplitQ : public TextSplit {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stops.hasStops() && stops.isStop(noaclowterm)) {
|
if (stops.isStop(noaclowterm)) {
|
||||||
LOGDEB1(("TextSplitQ::takeword [%s] in stop list\n",
|
LOGDEB1(("TextSplitQ::takeword [%s] in stop list\n",
|
||||||
noaclowterm.c_str()));
|
noaclowterm.c_str()));
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user