0
0
Fork 0

rewrote logic to be more obvious

found during code walkthrough on 8/24/2017
This commit is contained in:
Marty Schoch 2017-08-25 09:30:16 -07:00
parent b7a51dae2a
commit 930c06dfec
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ func (im *IndexMappingImpl) MapDocument(doc *document.Document, data interface{}
// see if the _all field was disabled
allMapping := docMapping.documentMappingForPath("_all")
if allMapping == nil || (allMapping.Enabled != false) {
if allMapping == nil || allMapping.Enabled {
field := document.NewCompositeFieldWithIndexingOptions("_all", true, []string{}, walkContext.excludedFromAll, document.IndexField|document.IncludeTermVectors)
doc.AddField(field)
}