I basically have the same need as this fellow: Azure Search Analyzer
I want to store a series of space-delimited tags in "tags", each of which may contain limited punctuation chars. Is formulating a POST to the REST API the only way to go?
I suppose I could encode the strings as a last resort.
var definition = new Index()
{
Name = indexname,
Fields = new[]
{
new Field("id", DataType.String) { IsKey = true },
new Field("objectType", DataType.String) { IsSearchable = false, IsFilterable = true, IsRetrievable = true },
new Field("referenceId", DataType.Int32) { IsSearchable = false, IsFilterable = false, IsRetrievable = true },
new Field("name", DataType.String) { IsSearchable = false, IsFilterable = false, IsRetrievable = true },
new Field("tags", DataType.Collection(DataType.String)) { IsSearchable = true, IsFilterable = false, IsSortable = false, IsFacetable = true, IsRetrievable = true },
},
};