索引的索引文档如下所示:
[ElasticType(
Name = "tag",
DateDetection = true,
NumericDetection = true,
SearchAnalyzer = "standard",
IndexAnalyzer = "standard"
)]
public class TagIndexDto : AbstractIndexDto
{
[ElasticProperty(Index = FieldIndexOption.analyzed, OmitNorms = true)]
public string Name { get; set; }
[ElasticProperty(Index = FieldIndexOption.analyzed, OmitNorms = true)]
public string Description { get; set; }
[ElasticProperty(AddSortField = true)]
public int FollowerCount { get; set; }
[ElasticProperty(AddSortField = true)]
public int ProductCount { get; set; }
[ElasticProperty(AddSortField = true)]
public int CatalogCount { get; set; }
}
我想要做的是对 3 个计数(最后 3 个字段)的值进行特定提升。并且 boost 应该是可配置的,这意味着 boost 的确切值在索引时是未知的。这实际上是由 lucene 支持的吗?ES?或者我正在寻找一个不存在的功能?
谢谢罗马