Skip to content

Commit 1da4335

Browse files
committed
Add Score to PercolateResponse
When Percolating with a query, size and trackscores=true, the raw response contains a score, but the PercolateResponse class does not. This is now fixed.
1 parent b0fbf5a commit 1da4335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Nest/Domain/Responses/PercolateResponse.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public class PercolatorMatch
6464
[JsonProperty(PropertyName = "_id")]
6565
public string Id { get; set; }
6666
[JsonProperty(PropertyName = "highlight")]
67-
public Dictionary<string, IList<string>> Highlight { get; set; }
67+
public Dictionary<string, IList<string>> Highlight { get; set; }
68+
[JsonProperty(PropertyName = "_score")]
69+
public double Score { get; set; }
6870

6971
}
7072

0 commit comments

Comments
 (0)