Class Query¶
Defined in File search.h
Class Documentation¶
-
class Query¶
A Query represent a query.
It describe what have to be searched and how. A Query is “database” independent.
Public Functions
-
Query &setQuery(const std::string &query)¶
Set the textual query of the Query.
- Parameters:
query – The string to search for.
-
Query &setGeorange(float latitude, float longitude, float distance)¶
Set the geographical query of the Query.
Some article may be geo positioned. You can search for articles in a certain distance of a point.
- Parameters:
latitude – The latitute of the point.
longitude – The longitude of the point.
distance – The maximal distance from the point.
-
Query &setQuery(const std::string &query)¶