Skip to content

Commit 42d9dd2

Browse files
committed
Update index-type-inference.markdown
1 parent 944c630 commit 42d9dd2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: new_docs/contents/nest/index-type-inference.markdown

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
template: layout.jade
3-
title: Connecting
3+
title: Type/Index Inference
44
menusection: concepts
55
menuitem: index-type-inference
66
---
@@ -40,11 +40,11 @@ As noted in the [quick start](/nest/quick-start.html) you can always pass **expl
4040
.Ttl("1m")
4141
);
4242

43-
This will index the document using `/another-index/another-type/1-should-not-be-the-id?refresh=true&&ttl=1m` as the url.
43+
This will index the document using `/another-index/another-type/1-should-not-be-the-id?refresh=true&ttl=1m` as the url.
4444

4545
There are a couple of places within NEST where inference comes in to play
4646

47-
## Index name inference
47+
## Index Name Inference
4848

4949
Whenever an explicit index name is not provided NEST will look to see if the type has it's own default index name on the connection settings.
5050

@@ -56,12 +56,12 @@ Whenever an explicit index name is not provided NEST will look to see if the typ
5656
// searches in /my-type-index/mytype/_search
5757
client.Search<MyType>()
5858

59-
// searches in /my-default-index/mytype/_search
59+
// searches in /my-default-index/person/_search
6060
client.Search<Person>()
6161

6262
`MyType` defaults to `my-type-index` because it is explicitly configured but `Person` will default to the global fallback `my-default-index`.
6363

64-
## Type name inference
64+
## Type Name Inference
6565

6666
Whenever NEST needs a type name but is not given one explicitly it will use the given CLR type to infer it's Elasticsearch type name.
6767

@@ -90,7 +90,7 @@ Prior to NEST 1.0 typenames were by default lowercased AND pluralized, if you wa
9090

9191
settings.PluralizeTypeNames();
9292

93-
## Property name inference
93+
## Property Name Inference
9494
In many places `NEST` allows you to pass property names and JSON paths as C# expressions i.e
9595

9696
.Query(q=>q.Term(p=>p.Followers.First().FirstName, "martijn"))
@@ -107,7 +107,7 @@ This will leave property names untouched.
107107

108108
Properties marked with `[ElasticAttibute(Name="")]` or `[JsonProperty(Name="")]` will pass the configured name verbatim.
109109

110-
## Id inference
110+
## Id Inference
111111

112112
Whenever an object is passed that needs to specify an id (i.e index, bulk operations) the object is inspected to see if it has an `Id` property and if so, that value will be used.
113113

0 commit comments

Comments
 (0)