9359a69ee5
Sometimes you have structs which contain data which isn't exported, or for which the correct data to index isn't just the contents of it's exported fields. In these cases your struct can implement TextMarshaler to return a suitable text representation. Previously bleve did not recognize this interface and do anything to use it. Now, if the field containing such a struct is explicitly mapped as "text" and if the struct (or pointer to it) implements TextMarshaler, we index a text field with the contents returned by MarshalText(). For backwards compatibilty, dynamic mappings will never use this feature, and will continue to traverse into the struct and index the exported fields directly. fixes #281 |
||
---|---|---|
.. | ||
analysis.go | ||
document.go | ||
examples_test.go | ||
field.go | ||
index.go | ||
mapping_test.go | ||
mapping.go | ||
reflect_test.go | ||
reflect.go |