Skip to content
Permalink
Browse files

fixed advancing beyond the end of the doclist in multiand node

  • Loading branch information
glookka committed Dec 11, 2019
1 parent bf34457 commit a5fc8a36e1644ee051632408ab8b53e79aeb9ff4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/searchnode.cpp
@@ -3316,7 +3316,7 @@ uint64_t ExtMultiAnd_T<USE_BM25,TEST_FIELDS>::GetWordID() const
template <bool USE_BM25,bool TEST_FIELDS>
void ExtMultiAnd_T<USE_BM25,TEST_FIELDS>::HintRowID ( RowID_t tRowID )
{
if ( m_dNodes[0].m_pQword->m_iDocs )
if ( m_dNodes[0].m_pQword->m_iDocs && ( m_bFirstChunk || m_dNodes[0].m_tRowID!=INVALID_ROWID ) )
{
Advance ( 0, tRowID );
m_bFirstChunk = false;

0 comments on commit a5fc8a3

Please sign in to comment.
You can’t perform that action at this time.