【发布时间】:2014-08-05 22:30:36
【问题描述】:
我看到这样的例子:
var result = this._client.Search(s => s
.Index("my-index")
.Type("my-type")
.Query(q=> ....)
.Filter(f=> ....)
);
但是当我使用它时,我得到:
The type arguments for method 'Nest.ElasticClient.Search<T>(System.Func<Nest.SearchDescriptor<T>,Nest.SearchDescriptor<T>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
我有很多不同的类型,我不想为所有类型创建类。我可以使用 NEST 并且它的搜索没有像 Search<MyType> 这样的类型吗?
谢谢
【问题讨论】:
标签: c# database elasticsearch nest