diff options
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/fieldvalue/stringfieldvalue.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp b/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp index 47e96b4f4e4..be5070ff3db 100644 --- a/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp +++ b/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp @@ -56,6 +56,13 @@ StringFieldValue::print(std::ostream& out, bool verbose, const std::string& inde Parent::print(out, verbose, indent); ConstBufferRef buf = getSerializedAnnotations(); out << "\"\n" << indent << " " << vespalib::HexDump(buf.data(), buf.size()); + if (verbose) { + out << "\nSpanTree(\n"; + for (const auto & tree: getSpanTrees()) { + out << "Tree '" << tree->getName() << "':" << tree->toString() << std::endl; + } + out << ")\n"; + } out << ")"; } } |