Skip to content

Commit c9f9e00

Browse files
committed
Merge pull request #987 from sstranz/develop
Fix OIS class for ConstantScoreQuery
2 parents fdf1a75 + 61d08a4 commit c9f9e00

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)