Don't cache dynamic teaser.
@@ -375,10 +375,6 @@ DynamicTeaserDFW::makeDynamicTeaser(uint32_t docid, vespalib::stringref input, G
state->_dynteaser._query = _juniper->CreateQueryHandle(iq, nullptr);
}
- if (docid != state->_dynteaser._docid ||
- _inputFieldEnumValue != state->_dynteaser._input ||
- _langFieldEnumValue != state->_dynteaser._lang ||
- !juniper::AnalyseCompatible(_juniperConfig.get(), state->_dynteaser._config)) {
LOG(debug, "makeDynamicTeaser: docid (%d,%d), fieldenum (%d,%d), lang (%d,%d) analyse %s",
docid, state->_dynteaser._docid,
_inputFieldEnumValue, state->_dynteaser._input,
@@ -409,7 +405,6 @@ DynamicTeaserDFW::makeDynamicTeaser(uint32_t docid, vespalib::stringref input, G
juniper::Analyse(_juniperConfig.get(), state->_dynteaser._query,
input.data(), input.length(), docid, _inputFieldEnumValue, langid);
}
- }
juniper::Summary *teaser = (state->_dynteaser._result != nullptr)
? juniper::GetTeaser(state->_dynteaser._result, _juniperConfig.get())
