Don't try to match implicit non-required phrases when verifying doc

has query terms.
This commit is contained in:
Zak Betz
2016-01-08 10:09:34 -07:00
parent 008b21ee6b
commit 344732ac19

@ -1779,7 +1779,8 @@ bool Matches::docHasQueryTerms(int32_t totalInlinks) {
for ( int32_t i = 0 ; i < nqt ; i++ ) {
QueryTerm *qt = &m_q->m_qterms[i];
// For purposes of matching, we ignore all stop words
if ( ! isMatchableTerm ( qt ) || qt->m_ignored) {
if ( ! isMatchableTerm ( qt ) || qt->m_ignored ||
(qt->m_isPhrase && !qt->m_isRequired)) {
continue;
}