Ignore/Disable Sections of Documents
Sometimes documents contains sections of content you simply want to ignore. Let’s imagine we have the following structure:
type Person struct {
Name string
Addr Address
}
And, we’ve decided we don’t want to index or store any of the address data. We can accomplish this by using the following DocumentMapping.
addressMapping := bleve.NewDocumentDisabledMapping()
personMapping := bleve.NewDocumentMapping()
personMapping.AddSubDocumentMapping("Addr", addressMapping)
当前内容版权归 blevesearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 blevesearch .