# How to add analyzers for node clients search

**URL:** <https://discuss.elastic.co/t/how-to-add-analyzers-for-node-clients-search/275459>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [June 9, 2021, 3:17pm UTC](https://discuss.elastic.co/t/how-to-add-analyzers-for-node-clients-search/275459 "2021-06-09T15:17:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thislekan](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@thislekan](https://discuss.elastic.co/u/thislekan)\
**Post date:** [June 9, 2021, 3:17pm UTC](https://discuss.elastic.co/t/how-to-add-analyzers-for-node-clients-search/275459/1 "2021-06-09T15:17:47Z")

</div>

Hi. This is my first time trying elastic search and I am looking for a way to include an analyzer in my code. I have a bug at work that prevents me from doing a search like this, where the search term is  
`1:45 am`. I want to use the whitespace analyzer but I have no idea how to go about it.

The node client has a code that looks like the snippet below and I am searching by title. Please note that necessary conditions and sufficient conditions work for all kinds of search except when it contains a special character.

```auto
const data = await client.search({
            index: 'meetings',
            type: 'notes',
            body: {
              'sort': [{date: {order: "desc"}}],
                'query': {
                    'bool': {
                        'must': necessaryCondition,
                        'should': sufficientCondition,
                        'minimum_should_match': 1
                    }
                },
                '_source': ['title', 'validAttendees' ...etc]
            },
            from,
            size,
        });

```

I hope my phrasing of the question is good enough for anyone reading this to be able to help. Thanks in advance.

---

<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:** [July 7, 2021, 3:17pm UTC](https://discuss.elastic.co/t/how-to-add-analyzers-for-node-clients-search/275459/2 "2021-07-07T15:17:50Z")

</div>

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