summaryrefslogtreecommitdiffstats
path: root/vsm
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-02-04 00:29:39 +0100
committerHenning Baldersheim <balder@oath.com>2018-02-04 00:29:39 +0100
commitd1c8e15ee5f8f7cc32ff92be6b881ad01a41e31a (patch)
tree810c877c72a3d0a2292431319e22c374244cda8e /vsm
parentaba01adff0736e99747ffc87d47c1ede7b1a8a32 (diff)
Break endless recursion
Diffstat (limited to 'vsm')
-rw-r--r--vsm/src/vespa/vsm/vsm/fieldsearchspec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vsm/src/vespa/vsm/vsm/fieldsearchspec.cpp b/vsm/src/vespa/vsm/vsm/fieldsearchspec.cpp
index 80a072df6af..8855923610c 100644
--- a/vsm/src/vespa/vsm/vsm/fieldsearchspec.cpp
+++ b/vsm/src/vespa/vsm/vsm/fieldsearchspec.cpp
@@ -221,7 +221,7 @@ buildFieldSet(const VsmfieldsConfig::Documenttype::Index & ci, const FieldSearch
LOG(spam, "Parsing field %s", cf.name.c_str());
auto foundIndex = std::find_if(indexes.begin(), indexes.end(),
[&cf](const auto & v) { return v.name == cf.name;});
- if (foundIndex != indexes.end()) {
+ if ((foundIndex != indexes.end()) && (cf.name != ci.name)) {
FieldIdTList sub = buildFieldSet(*foundIndex, specMap, indexes);
ifm.insert(ifm.end(), sub.begin(), sub.end());
} else {