summaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
diff options
context:
space:
mode:
Diffstat (limited to 'streamingvisitors/src/vespa/searchvisitor/queryenvironment.h')
-rw-r--r--streamingvisitors/src/vespa/searchvisitor/queryenvironment.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h b/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
index e3da5a44167..2c08ca34aee 100644
--- a/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
+++ b/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
@@ -23,7 +23,7 @@ private:
const search::fef::Properties &_properties;
search::attribute::IAttributeContext::UP _attrCtx;
std::vector<const search::fef::ITermData *> _queryTerms;
- search::fef::Location _location;
+ std::vector<search::common::GeoLocationSpec> _locations;
public:
typedef std::unique_ptr<QueryEnvironment> UP;
@@ -49,10 +49,10 @@ public:
}
// inherit documentation
- std::vector<const search::fef::Location *> getAllLocations() const override {
- std::vector<const search::fef::Location *> retval;
- if (_location.isValid()) {
- retval.push_back(&_location);
+ GeoLocationSpecPtrs getAllLocations() const override {
+ GeoLocationSpecPtrs retval;
+ for (const auto & loc : _locations) {
+ retval.push_back(&loc);
}
return retval;
}