elasticsearch 使用NEST在索引上设置Elasticsearch时间戳路径?
我需要使用NEST向索引添加时间戳路径,但不确定如何实现: 我一直在搞乱NEST,但我想不出来 我一直在阅读这里的文档,但没有找到我想要的:elasticsearch 使用NEST在索引上设置Elasticsearch时间戳路径?,elasticsearch,nest,elasticsearch,Nest,我需要使用NEST向索引添加时间戳路径,但不确定如何实现: 我一直在搞乱NEST,但我想不出来 我一直在阅读这里的文档,但没有找到我想要的: 使用fluent API,可以在创建索引时执行以下操作: var response=client.CreateIndexmyindex,c=>c .AddMappingm=>m .MapFromAttributes .TimestampFieldt=>t .SetDisabledfalse .SetPatho=>o.mytimestamps字段 ; 或更
使用fluent API,可以在创建索引时执行以下操作: var response=client.CreateIndexmyindex,c=>c .AddMappingm=>m .MapFromAttributes .TimestampFieldt=>t .SetDisabledfalse .SetPatho=>o.mytimestamps字段 ; 或更新现有索引: var response=client.Mapm=>m .TimestampFieldt=>t .SetDisabledfalse .SetPatho=>o.mytimestamps字段 ;
希望能有所帮助。使用fluent API,在创建索引时可以做到: var response=client.CreateIndexmyindex,c=>c .AddMappingm=>m .MapFromAttributes .TimestampFieldt=>t .SetDisabledfalse .SetPatho=>o.mytimestamps字段 ; 或更新现有索引: var response=client.Mapm=>m .TimestampFieldt=>t .SetDisabledfalse .SetPatho=>o.mytimestamps字段 ; 希望有帮助