File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Nest/Mapping/Types/Core/Join
Tests/ClientConcepts/HighLevel/Inference Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ namespace Nest
66 [ JsonConverter ( typeof ( JoinFieldJsonConverter ) ) ]
77 public class JoinField : Union < JoinField . Parent , JoinField . Child >
88 {
9- public JoinField ( Parent parentName ) : base ( parentName ) { }
9+ public JoinField ( Parent parent ) : base ( parent ) { }
1010
1111 public JoinField ( Child child ) : base ( child ) { }
1212
1313 public static JoinField Root < TParent > ( ) => new Parent ( typeof ( TParent ) ) ;
1414 public static JoinField Root ( RelationName parent ) => new Parent ( parent ) ;
1515
16- public static JoinField Link ( RelationName childName , Id parentId ) => new Child ( childName , parentId ) ;
16+ public static JoinField Link ( RelationName child , Id parentId ) => new Child ( child , parentId ) ;
1717 public static JoinField Link < TChild , TParentDocument > ( TParentDocument parent ) where TParentDocument : class =>
1818 new Child ( typeof ( TChild ) , Id . From < TParentDocument > ( parent ) ) ;
1919 public static JoinField Link < TChild > ( Id parentId ) => new Child ( typeof ( TChild ) , parentId ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ [U] public void PluralizeTypeNames()
6969 *
7070 * Both `Parent` and `Child` will need to have resolve to the same typename to be indexed into the same index.
7171 *
72- * Therefor in 6.x we need a different type that translates a CLR type to a join relation. This can be configured seperately
72+ * Therefore in 6.x we need a different type that translates a CLR type to a join relation. This can be configured seperately
7373 * using `.RelationName()`
7474 */
7575 [ U ] public void RelationNameConfiguration ( )
You can’t perform that action at this time.
0 commit comments