2012-08-06 2 views
0

우리는 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? 아니면 존재하지 않는 기능을 찾고 있습니까?

감사 로마 을

elasticsearch에서
+0

이 왜 쿼리시 해당 필드를 밀어하지 않습니다 Custom Filters Score Query (빠르지 만 덜 유연) 또는 Custom Score Query이 (느리지 만 더 유연)를 사용하여 수행 할 수 있습니다? – naresh

+0

Lucene은 다양한 레벨에서 부스팅을 지원합니다. http://lucene.apache.org/core/3_6_0/scoring.html#Score Boosting을 참조하십시오. – naresh

답변