This change removes the query syntax from the QtSmartSearchbox and all its classes. Now it only autocompletes to one single Token, but the UI functionality for composing a query of multiple elements is still left for later use. The struct SearchMatch is now used in the whole pipeline for passing search results back and forth.
21 lines
386 B
C++
21 lines
386 B
C++
#ifndef STORAGE_CACHE_H
|
|
#define STORAGE_CACHE_H
|
|
|
|
#include <map>
|
|
|
|
#include "data/access/StorageAccessProxy.h"
|
|
|
|
class StorageCache
|
|
: public StorageAccessProxy
|
|
{
|
|
public:
|
|
void clear();
|
|
|
|
virtual std::vector<Id> getTokenIdsForMatches(const std::vector<SearchMatch>& matches) const;
|
|
|
|
private:
|
|
mutable std::map<std::string, std::vector<Id>> m_queryToTokenIds;
|
|
};
|
|
|
|
#endif // STORAGE_CACHE_H
|