aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-08-16 11:50:35 +0000
committerArne Juul <arnej@verizonmedia.com>2020-08-18 08:11:43 +0000
commitc457305b6c2fbc9d07d7ac08c60e0c8db9c175ca (patch)
treeeb60c8433487ce8c34a5271de86e520d9431558d /searchsummary
parentef6227ebc92c625081f703a806e0b0c2c02a5a1c (diff)
wire in using new JSON-lite location format
Diffstat (limited to 'searchsummary')
-rw-r--r--searchsummary/src/vespa/searchsummary/docsummary/docsumstate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/docsumstate.cpp b/searchsummary/src/vespa/searchsummary/docsummary/docsumstate.cpp
index 1f9b553b56a..822017e0bdf 100644
--- a/searchsummary/src/vespa/searchsummary/docsummary/docsumstate.cpp
+++ b/searchsummary/src/vespa/searchsummary/docsummary/docsumstate.cpp
@@ -76,7 +76,7 @@ GetDocsumsState::parse_locations()
assert(_parsedLocations.empty()); // only allowed to call this once
if (! _args.getLocation().empty()) {
GeoLocationParser parser;
- if (parser.parseOldFormatWithField(_args.getLocation())) {
+ if (parser.parseWithField(_args.getLocation())) {
auto view = parser.getFieldName();
auto attr_name = PositionDataType::getZCurveFieldName(view);
GeoLocationSpec spec{attr_name, parser.getGeoLocation()};
@@ -94,7 +94,7 @@ GetDocsumsState::parse_locations()
vespalib::string view = iterator.getIndexName();
vespalib::string term = iterator.getTerm();
GeoLocationParser parser;
- if (parser.parseOldFormat(term)) {
+ if (parser.parseNoField(term)) {
auto attr_name = PositionDataType::getZCurveFieldName(view);
GeoLocationSpec spec{attr_name, parser.getGeoLocation()};
_parsedLocations.push_back(spec);