Esempio n. 1
0
func (visitor *DocumentStoredFieldVisitor) stringField(fi model.FieldInfo, value string) error {
	ft := NewFieldTypeFrom(TEXT_FIELD_TYPE_STORED)
	ft.storeTermVectors = fi.HasVectors()
	ft.indexed = fi.IsIndexed()
	ft._omitNorms = fi.OmitsNorms()
	ft._indexOptions = fi.IndexOptions()
	visitor.doc.Add(NewStringField(fi.Name, value, ft))
	return nil
}