I'm using ndb.Model. The Search API has the following field classes:
TextField : plain textHtmlField : HTML formatted textAtomField : a string which is treated as a single tokenNumberField : a numeric value (either float or integer)DateField : a date with no time componentGeoField : a locale based on latitude and longitude
Suppose I have a 'tags' field which is a list field:
tags = ndb.StringProperty(repeated=True)
How am I supposed to treat this field with search.Document
?
Right now I'm turning tags
list into a string:
t = '|'.join(tags)
And then:
search.TextField(name=cls.TAGS, value=t)
Any suggestions?