0
我們通過.Net Nest客戶端使用ES。在源文檔屬性中提高查詢效率
目錄文件索引看起來像這樣:
[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場)的值的特定提升。升壓應該是可配置的,這意味着升壓的確切值在索引時間是未知的。 這實際上是由lucene支持嗎? ES?或者我正在尋找一個不存在的功能?
感謝 羅馬
你爲什麼不查詢過程中提高這些領域做些什麼呢? – naresh 2012-08-06 14:18:05
Lucene支持不同級別的提升。請參閱http://lucene.apache.org/core/3_6_0/scoring.html#Score Boosting – naresh 2012-08-06 14:19:24