mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user