# Can't found the field "Suggest" in Nest

**URL:** <https://discuss.elastic.co/t/cant-found-the-field-suggest-in-nest/206990>\
**Category:** Elasticsearch\
**Created:** [November 7, 2019, 4:33pm UTC](https://discuss.elastic.co/t/cant-found-the-field-suggest-in-nest/206990 "2019-11-07T16:33:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lethienhoang](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@lethienhoang](https://discuss.elastic.co/u/lethienhoang)\
**Post date:** [November 7, 2019, 4:33pm UTC](https://discuss.elastic.co/t/cant-found-the-field-suggest-in-nest/206990/1 "2019-11-07T16:33:01Z")

</div>

I just define the model as below code

```
client.Indices.Create("demo", c => c
                   .Index<Company>()
                   .Map<Company>(c => c
                        .AutoMap()
                        .Properties(p => p
                            .Completion(c => c
                                .Name(n => n.Suggest))
                            .Keyword(k => k.Name(x => x.CompanyName))
                            .Nested<Employee>(e => e
                                .Name(nm => nm.Employees)
                                .AutoMap()
                                .Properties(pps => pps
                                    .Completion(c => c
                                        .Name(n => n.Suggest))
                                    .Nested<House>(h => h
                                        .Name(n => n.Houses)
                                        .AutoMap()
                                        )
                                    )
                                )
                            )
                        )
                );

```

In the result on ElasticSearch I see the field is "Suggest": {  
....  
}

I define the search (autocomplete) for that.

```
 var response = await ElasticSearch.Instance._elasticClient.SearchAsync<Company>(q => q
            .Index("demo")
            .Source(so => so
                .Includes(f => f
                    .Field(f => f.CompanyName)
                    .Field(f => f.Id)))
            .Suggest(su => su
                .Completion("suggestion", cs => cs
                    .Field(f => f.Suggest)
                    .Prefix(input.CompanyName)
                    .Fuzzy(f => f
                        .Fuzziness(Fuzziness.Auto))
                    .Size(10)
                    )
                )
            );

```

I got the errors when it's runing  
**Can't found the field "Suggest"**

I dont understand where is it wrong?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 5, 2019, 4:33pm UTC](https://discuss.elastic.co/t/cant-found-the-field-suggest-in-nest/206990/2 "2019-12-05T16:33:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
