Skip to content
Permalink
Browse files

fixed #584 error on indexing of data into index with index_token_filt…

…er plugin along with stopwords and stopword_step=0
  • Loading branch information
tomatolog committed Nov 28, 2018
1 parent 9ee5703 commit 5138fc048a1bd146b271ce6a72fe954344281f69
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/sphinx.cpp
  2. +1 −0 src/sphinx.h
@@ -3782,7 +3782,7 @@ class PluginFilterTokenizer_c : public CSphTokenFilter

int GetOvershortCount() final
{
return m_iPosDelta-1;
return Max ( 0, m_iPosDelta-1 );
}

bool TokenIsBlended() const final
@@ -1856,6 +1856,7 @@ class ISphHits
tHit.m_uDocID = uDocid;
tHit.m_uWordID = uWordid;
tHit.m_uWordPos = uPos;
assert ( uPos>0 );
}
}

0 comments on commit 5138fc0

Please sign in to comment.