# Syntax of Elastic.Clients.Elasticsearch

**URL:** https://discuss.elastic.co/t/syntax-of-elastic-clients-elasticsearch/305433
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [May 23, 2022, 7:59pm UTC](https://discuss.elastic.co/t/syntax-of-elastic-clients-elasticsearch/305433 "2022-05-23T19:59:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sjaak](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sjaak](https://discuss.elastic.co/u/Sjaak)
#### Post date: [May 23, 2022, 7:59pm UTC](https://discuss.elastic.co/t/syntax-of-elastic-clients-elasticsearch/305433/1 "2022-05-23T19:59:02Z")

</div>

I can find a lot of examples for Elastic 8.2 'NEST' namespace, but nothing for the new 'Elastic.Clients.Elasticsearch' namespace.

For example, this code works, but how to add the second field 'name'. Nothing seems to work. When I use NEST, everything works as it used to/as expected. Who knows how I can add a second field for searching on 'multimatch' for the new 'Elastic.Clients.Elasticsearch' namespace.

```auto
            var searchResults3 = client
                .Search<Models.Ad>(s => s
                    .Query(q => q
                        .MultiMatch(m => m
                            .Query("a1242286350").Fields(f => f.Description)
                        )
                    )
                );

```

---

<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: [June 20, 2022, 7:59pm UTC](https://discuss.elastic.co/t/syntax-of-elastic-clients-elasticsearch/305433/2 "2022-06-20T19:59:27Z")

</div>

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