Change Search Strategy

1. Use the whitespace analyzer so its easier to search for
tokens that are a mix of letters and numbers e.g. workout
codes and TT route names.

2. Search as you type. Since we have very small collections
to search across (typically no more than a couple of thousand)
there is no major overhead in searching as you type.

3. Search all texts by default not just the Notes field. This is
a more appropriate default and is less likely to confuse new
users. In addition, it is most likely what most users want to
do anyway.
This commit is contained in:
Mark Liversedge
2012-10-27 08:46:36 +01:00
parent f0e3a9cd6b
commit 944b772184
4 changed files with 13 additions and 4 deletions

View File

@@ -126,6 +126,8 @@ void SearchBox::updateCloseButton(const QString& text)
{
if (clearButton->isVisible() && text.isEmpty()) clearQuery();
clearButton->setVisible(!text.isEmpty());
if (mode == Search) searchSubmit();
}
void SearchBox::searchSubmit()