# NEST search not working with wildcards or spaces or special chars like -

**URL:** <https://discuss.elastic.co/t/nest-search-not-working-with-wildcards-or-spaces-or-special-chars-like/239781>\
**Category:** Elasticsearch\
**Created:** [July 3, 2020, 10:58am UTC](https://discuss.elastic.co/t/nest-search-not-working-with-wildcards-or-spaces-or-special-chars-like/239781 "2020-07-03T10:58:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [July 3, 2020, 10:58am UTC](https://discuss.elastic.co/t/nest-search-not-working-with-wildcards-or-spaces-or-special-chars-like/239781/1 "2020-07-03T10:58:13Z")

</div>

I have in elasticsearch index with software instaleld in my pc like this:

Microsoft .NET Core Runtime - 3.1.5 (x64)

But later when searching the index using NEST it doesnt get any result when I search for full or partial.

I am using this query

```auto
var query = new SearchDescriptor<InstalledSoftware>();
            query.Index(string.Format(IndexName, orgId));
            query.From(skip);
            query.Size(take);
query.Query(q => q.MatchPhrase(qs => qs.Field(f => f.Name).Query(searchString)))

or 

QueryString(qs => qs.DefaultField(f => f.FileName).Query("*" + searchString + "*"))

```

none of this is working when i search for the full text or partil like "microsoft"

How can I search like in SQL for anything containing LIKE microsoft\*, m\*, _runtime_, or the full text "Microsoft .NET Core Runtime - 3.1.5 (x64)"?

---

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [July 6, 2020, 2:30pm UTC](https://discuss.elastic.co/t/nest-search-not-working-with-wildcards-or-spaces-or-special-chars-like/239781/2 "2020-07-06T14:30:59Z")

</div>

any help on this?

---

<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:** [August 3, 2020, 2:31pm UTC](https://discuss.elastic.co/t/nest-search-not-working-with-wildcards-or-spaces-or-special-chars-like/239781/3 "2020-08-03T14:31:06Z")

</div>

Closed on August 3, 2020, 2:31pm UTC

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