Skip to content

Commit 61d08a4

Browse files
committed
Fix OIS class for ConstantScoreQuery
1 parent 5308d37 commit 61d08a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Nest/DSL/Query/ConstantScoreQueryDescriptor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@ public interface IConstantScoreQuery : IQuery
2222
double? Boost { get; set; }
2323
}
2424

25-
public class ConstantScoreQuery : PlainQuery, ICustomScoreQuery
25+
public class ConstantScoreQuery : PlainQuery, IConstantScoreQuery
2626
{
2727
protected override void WrapInContainer(IQueryContainer container)
2828
{
29-
container.CustomScore = this;
29+
container.ConstantScore = this;
3030
}
3131

3232
public bool IsConditionless { get { return false; } }
3333
public string Lang { get; set; }
3434
public string Script { get; set; }
3535
public Dictionary<string, object> Params { get; set; }
3636
public IQueryContainer Query { get; set; }
37+
public IFilterContainer Filter { get; set; }
38+
public double? Boost { get; set; }
3739
}
3840

3941
public class ConstantScoreQueryDescriptor<T> : IConstantScoreQuery where T : class

0 commit comments

Comments
 (0)