Deprecate Lucene

.. use a simple free text search against the ridecache now we
   have all the texts available and in memory

.. no need to maintain an index, no dependency on a horrid lib
   with nasty dependencies and its faster too

.. the free text search is very simple, will need to bolster it
   over time e.g. it matches text not words
This commit is contained in:
Mark Liversedge
2015-01-13 20:49:49 +00:00
parent b68487fbbe
commit df94e42e58
34 changed files with 144 additions and 208 deletions

View File

@@ -44,9 +44,7 @@ GcScopeBar::GcScopeBar(Context *context) : QWidget(context->mainWindow), context
layout->addWidget(searchLabel);
searchLabel->hide();
#ifdef GC_HAVE_LUCENE
connect(context, SIGNAL(filterChanged()), this, SLOT(setHighlighted()));
#endif
connect(context, SIGNAL(compareIntervalsStateChanged(bool)), this, SLOT(setCompare()));
connect(context, SIGNAL(compareDateRangesStateChanged(bool)), this, SLOT(setCompare()));
@@ -146,7 +144,6 @@ GcScopeBar::GcScopeBar(Context *context) : QWidget(context->mainWindow), context
void
GcScopeBar::setHighlighted()
{
#ifdef GC_HAVE_LUCENE
if (context->isfiltered) {
searchLabel->setHighlighted(true);
searchLabel->show();
@@ -168,7 +165,6 @@ GcScopeBar::setHighlighted()
#endif
#endif
}
#endif
}
void