MCPcopy Create free account
hub / github.com/blevesearch/bleve / AddSubDocumentMapping

Method AddSubDocumentMapping

mapping/document.go:274–279  ·  view source on GitHub ↗

AddSubDocumentMapping adds the provided DocumentMapping as a sub-mapping for the specified named subsection.

(property string, sdm *DocumentMapping)

Source from the content-addressed store, hash-verified

272// AddSubDocumentMapping adds the provided DocumentMapping as a sub-mapping
273// for the specified named subsection.
274func (dm *DocumentMapping) AddSubDocumentMapping(property string, sdm *DocumentMapping) {
275 if dm.Properties == nil {
276 dm.Properties = make(map[string]*DocumentMapping)
277 }
278 dm.Properties[property] = sdm
279}
280
281// AddFieldMappingsAt adds one or more FieldMappings
282// at the named sub-document. If the named sub-document

Calls

no outgoing calls