chore(deps): bump github.com/blevesearch/bleve/v2 from 2.4.0 to 2.4.2
Bumps [github.com/blevesearch/bleve/v2](https://github.com/blevesearch/bleve) from 2.4.0 to 2.4.2. - [Release notes](https://github.com/blevesearch/bleve/releases) - [Commits](https://github.com/blevesearch/bleve/compare/v2.4.0...v2.4.2) --- updated-dependencies: - dependency-name: github.com/blevesearch/bleve/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
840eb734fa
commit
d31e179e86
+13
-11
@@ -443,6 +443,8 @@ func (dm *DocumentMapping) processProperty(property interface{}, path []string,
|
||||
fieldMapping.processGeoShape(property, pathString, path, indexes, context)
|
||||
} else if fieldMapping.Type == "geopoint" {
|
||||
fieldMapping.processGeoPoint(property, pathString, path, indexes, context)
|
||||
} else if fieldMapping.Type == "vector_base64" {
|
||||
fieldMapping.processVectorBase64(property, pathString, path, indexes, context)
|
||||
} else {
|
||||
fieldMapping.processString(propertyValueString, pathString, path, indexes, context)
|
||||
}
|
||||
@@ -532,33 +534,33 @@ func (dm *DocumentMapping) processProperty(property interface{}, path []string,
|
||||
dm.walkDocument(property, path, indexes, context)
|
||||
}
|
||||
case reflect.Map, reflect.Slice:
|
||||
var isPropertyVector bool
|
||||
var isPropertyVectorInitialized bool
|
||||
if subDocMapping != nil {
|
||||
walkDocument := false
|
||||
if subDocMapping != nil && len(subDocMapping.Fields) != 0 {
|
||||
for _, fieldMapping := range subDocMapping.Fields {
|
||||
switch fieldMapping.Type {
|
||||
case "vector":
|
||||
processed := fieldMapping.processVector(property, pathString, path,
|
||||
fieldMapping.processVector(property, pathString, path,
|
||||
indexes, context)
|
||||
if !isPropertyVectorInitialized {
|
||||
isPropertyVector = processed
|
||||
isPropertyVectorInitialized = true
|
||||
} else {
|
||||
isPropertyVector = isPropertyVector && processed
|
||||
}
|
||||
case "geopoint":
|
||||
fieldMapping.processGeoPoint(property, pathString, path, indexes, context)
|
||||
walkDocument = true
|
||||
case "IP":
|
||||
ip, ok := property.(net.IP)
|
||||
if ok {
|
||||
fieldMapping.processIP(ip, pathString, path, indexes, context)
|
||||
}
|
||||
walkDocument = true
|
||||
case "geoshape":
|
||||
fieldMapping.processGeoShape(property, pathString, path, indexes, context)
|
||||
walkDocument = true
|
||||
default:
|
||||
walkDocument = true
|
||||
}
|
||||
}
|
||||
} else {
|
||||
walkDocument = true
|
||||
}
|
||||
if !isPropertyVector {
|
||||
if walkDocument {
|
||||
dm.walkDocument(property, path, indexes, context)
|
||||
}
|
||||
case reflect.Ptr:
|
||||
|
||||
Reference in New Issue
Block a user