# Is it necessary to test the search\_analyzer using the analyzer name?

**URL:** <https://discuss.elastic.co/t/is-it-necessary-to-test-the-search-analyzer-using-the-analyzer-name/145974>\
**Category:** Elasticsearch\
**Created:** [August 24, 2018, 9:11pm UTC](https://discuss.elastic.co/t/is-it-necessary-to-test-the-search-analyzer-using-the-analyzer-name/145974 "2018-08-24T21:11:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elizabeth\_Haubert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elizabeth_haubert/32/34355_2.png) [@Elizabeth\_Haubert](https://discuss.elastic.co/u/Elizabeth_Haubert)\
**Post date:** [August 24, 2018, 9:11pm UTC](https://discuss.elastic.co/t/is-it-necessary-to-test-the-search-analyzer-using-the-analyzer-name/145974/1 "2018-08-24T21:11:55Z")

</div>

Hi,

I'm building some unit tests around parsing in a new index. We're using SynonymGraphFilter, with the intention that they be applied query-time only, which necessitates using an analyzer and a search\_analyzer.

I'd rather validate at the level of:

```auto
GET /my_index/_analyze
{
  "field": "my_field",
  "text": "some query value",
 "use_search_analyzer_or_some_such_flag":True

} 

```

than

```auto
GET /jobs/_analyze
{
  "analyzer": "my_query_time_analyzer",
  "text": "some query value"
}

```

---

<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:** [September 21, 2018, 9:12pm UTC](https://discuss.elastic.co/t/is-it-necessary-to-test-the-search-analyzer-using-the-analyzer-name/145974/2 "2018-09-21T21:12:00Z")

</div>

Closed on September 21, 2018, 9:12pm UTC

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