| 411 | } |
| 412 | |
| 413 | std::unique_ptr<DocumentBase> makeDoc(const RawDoc& rawDoc, const RawDocTokenizer::Factory& tokenizer) const override |
| 414 | { |
| 415 | auto doc = as_mutable(this)->template _makeFromRawDoc<true>(rawDoc, tokenizer); |
| 416 | return std::make_unique<_DocType>(as_mutable(this)->template _updateDoc<true>(doc, |
| 417 | rawDoc.template getMisc<std::string>("metadata"), |
| 418 | rawDoc.template getMiscDefault<std::vector<std::string>>("multi_metadata") |
| 419 | )); |
| 420 | } |
| 421 | |
| 422 | size_t addDoc(const RawDoc& rawDoc) override |
| 423 | { |
nothing calls this directly
no test coverage detected