Boosting in query upon source document properties


(Roman Kournjaev) #1

HI

We are using ES through the .Net Nest https://github.com/Mpdreamz/NEST
client.

The Index document indexed looks like this :

[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; }
}

What I want to do is to give a specific boost upon the values of the 3
counts ( last 3 fields ). And the boost should be configurable , it means
the exact value of the boost is not known at indexing time.
Is that actually supported by lucene ? ES ? Or I am looking for a
nonexisting feature ?

Thanks
Roman


(system) #2