@@ -278,34 +278,34 @@ public void Inference()
278278 * here we index `parent` and rather than fishing out the parent id by inspecting `parent` we just pass the instance
279279 * to `Routing` which can infer the correct routing key based on the JoinField property on the instance
280280 */
281- var ndexResponse = client . Index ( parent , i => i . Routing ( Routing . From ( parent ) ) ) ;
282- ndexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=1337" ) ;
281+ var indexResponse = client . Index ( parent , i => i . Routing ( Routing . From ( parent ) ) ) ;
282+ indexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=1337" ) ;
283283
284284 /**
285285 * The same goes for when we index a child, we can pass the instance directly to `Routing` and NEST will use the parent id
286286 * already specified on `child`. Here we use the static import `using static Nest.Infer` and it's `Route()` static method to
287287 * create an instance of `Routing`
288288 */
289- ndexResponse = client . Index ( child , i => i . Routing ( Route ( child ) ) ) ;
290- ndexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=1337" ) ;
289+ indexResponse = client . Index ( child , i => i . Routing ( Route ( child ) ) ) ;
290+ indexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=1337" ) ;
291291
292292 /** You can always override the default inferred routing though */
293- ndexResponse = client . Index ( child , i => i . Routing ( "explicit" ) ) ;
294- ndexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=explicit" ) ;
293+ indexResponse = client . Index ( child , i => i . Routing ( "explicit" ) ) ;
294+ indexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=explicit" ) ;
295295
296- ndexResponse = client . Index ( child , i => i . Routing ( null ) ) ;
297- ndexResponse . ApiCall . Uri . Query . Should ( ) . NotContain ( "routing" ) ;
296+ indexResponse = client . Index ( child , i => i . Routing ( null ) ) ;
297+ indexResponse . ApiCall . Uri . Query . Should ( ) . NotContain ( "routing" ) ;
298298
299299 var indexRequest = new IndexRequest < MyChild > ( child ) { Routing = Route ( child ) } ;
300- ndexResponse = client . Index ( indexRequest ) ;
301- ndexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=1337" ) ;
300+ indexResponse = client . Index ( indexRequest ) ;
301+ indexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=1337" ) ;
302302 /**
303303 * Its important to note that the routing is resolved at request time, not instantiation time
304304 * here we update the `child`'s `JoinField` after already creating the index request for `child`
305305 */
306306 child . MyJoinField = JoinField . Link < MyChild > ( parentId : "something-else" ) ;
307- ndexResponse = client . Index ( indexRequest ) ;
308- ndexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=something-else" ) ;
307+ indexResponse = client . Index ( indexRequest ) ;
308+ indexResponse . ApiCall . Uri . Query . Should ( ) . Contain ( "routing=something-else" ) ;
309309 }
310310 /** [NOTE]
311311 * --
0 commit comments