logic: fulltextsearch with suffixarray

* delete test.sqlite in storagetestsuite in desstructor
* remove new and delete from suffixarray
* case sensitive fts
* fixed fulltext results annotated like errors
* lazy suffix array building
* fulltextsearch folder added
* go back too branch without _publish
* suffixarray working
* logic: Improved code view performance
This commit is contained in:
Andreas Stallinger
2016-06-07 08:49:34 +02:00
parent 53120cf270
commit 6edcd77eb2
25 changed files with 602 additions and 258 deletions
+12 -2
View File
@@ -33,8 +33,18 @@ void QtSearchElement::onChecked(bool)
void QtSmartSearchBox::fullTextSearch()
{
LOG_INFO_STREAM(<< "FullTextsearch: " << text().toStdString().substr(1));
MessageSearchFullText(text().toStdString().substr(1)).dispatch();
std::string term = text().toStdString().substr(1);
if(term.at(0) == '@')
{
term = term.substr(1);
LOG_INFO_STREAM(<< "FullTextsearch(case sensitive): " << term);
MessageSearchFullText(term, true).dispatch();
}
else
{
LOG_INFO_STREAM(<< "FullTextsearch: " << term);
MessageSearchFullText(term).dispatch();
}
}
void QtSmartSearchBox::search()