Highlighting and snippets extraction: reworked to handle phrases properly. Use a compound position list instead of multiplying the OR groups inside a near clause

This commit is contained in:
Jean-Francois Dockes
2019-07-05 18:02:09 +02:00
parent 00eb803f5d
commit f877e7e459
7 changed files with 211 additions and 140 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ string PlainToRichQtPreview::PlainToRichQtPreview::header()
string PlainToRichQtPreview::startMatch(unsigned int grpidx)
{
LOGDEB2("startMatch, grpidx " << (grpidx) << "\n" );
grpidx = m_hdata->grpsugidx[grpidx];
grpidx = m_hdata->index_term_groups[grpidx].grpsugidx;
LOGDEB2("startMatch, ugrpidx " << (grpidx) << "\n" );
m_groupanchors[grpidx].push_back(++m_lastanchor);
m_groupcuranchors[grpidx] = 0;