private Indices InternalReadIndices() { writer.Write("Enter the dice to keep (1 .. 5), separated with spaces: "); var line = reader.ReadLine(); var values = line.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).Select(Index.Create).ToArray(); return(Indices.Create(values)); }
public CreateIndexResponse CreateIndex() { return(Indices.Create(DEFAULT_INDEX, c => c.Map <ScientificPaperDocument>(mp => mp.AutoMap() .Properties(ps => ps .Object <Attachment>(a => a .Name(n => n.Attachment) .Properties(ps => ps .Text(s => s .Name(n => n.Content) .Analyzer("serbian"))) .AutoMap()))))); }