Skip to content

Commit 708a9ce

Browse files
committed
Correct documentation on filter HasParent<K>
Fixes #1905
1 parent 154e5b3 commit 708a9ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Nest/DSL/Filter/FilterDescriptor.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,11 @@ public FilterContainer HasChild<K>(Action<HasChildFilterDescriptor<K>> filterSel
572572
}
573573

574574
/// <summary>
575-
/// The has_child filter accepts a query and the child type to run against,
576-
/// and results in parent documents that have child docs matching the query.
575+
/// The has_parent filter accepts a query and a parent type.
576+
/// The query is executed in the parent document space, which is specified by the parent type.
577+
/// This filter returns child documents which associated parents have matched.
577578
/// </summary>
578-
/// <typeparam name="K">Type of the child</typeparam>
579+
/// <typeparam name="K">Type of the parent</typeparam>
579580
public FilterContainer HasParent<K>(Action<HasParentFilterDescriptor<K>> filterSelector) where K : class
580581
{
581582
var filter = new HasParentFilterDescriptor<K>();

0 commit comments

Comments
 (0)