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

@@ -18,7 +18,7 @@
#include "SearchFilterBox.h"
#include "Context.h"
#include "Lucene.h"
#include "FreeSearch.h"
#include "DataFilter.h"
#include "SearchBox.h"
@@ -34,12 +34,12 @@ SearchFilterBox::SearchFilterBox(QWidget *parent, Context *context, bool nochoos
searchbox = new SearchBox(context, this, nochooser);
contents->addWidget(searchbox);
lucene = new Lucene(this, context);
freeSearch = new FreeSearch(this, context);
datafilter = new DataFilter(this,context);
// text searching
connect(searchbox, SIGNAL(submitQuery(QString)), lucene, SLOT(search(QString)));
connect(lucene, SIGNAL(results(QStringList)), this, SIGNAL(searchResults(QStringList)));
connect(searchbox, SIGNAL(submitQuery(QString)), freeSearch, SLOT(search(QString)));
connect(freeSearch, SIGNAL(results(QStringList)), this, SIGNAL(searchResults(QStringList)));
connect(searchbox, SIGNAL(clearQuery()), this, SIGNAL(searchClear()));
// data filtering