elasticsearch,Lucene,elasticsearch" /> elasticsearch,Lucene,elasticsearch" />

Lucene 源文档属性查询中的Boosting

Lucene 源文档属性查询中的Boosting,lucene,elasticsearch,Lucene,elasticsearch,我们通过.Net客户端使用 索引文档的索引如下所示: [ElasticType( Name = "tag", DateDetection = true, NumericDetection = true, SearchAnalyzer = "standard", IndexAnalyzer = "standard" )] public class TagIndexDto : AbstractInd

我们通过.Net客户端使用

索引文档的索引如下所示:

   [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的支持吗?锿?或者我正在寻找一个不存在的功能

谢谢
Roman

在elasticsearch中,可以使用(更快但不太灵活)或(更慢但更灵活)

在查询过程中为什么不提升这些字段?Lucene支持不同级别的提升。。见助推