# Query DSL: New "text" family of queries and more

**URL:** <https://discuss.elastic.co/t/query-dsl-new-text-family-of-queries-and-more/4365>\
**Category:** Elasticsearch\
**Created:** [May 8, 2011, 6:53pm UTC](https://discuss.elastic.co/t/query-dsl-new-text-family-of-queries-and-more/4365 "2011-05-08T18:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 8, 2011, 6:53pm UTC](https://discuss.elastic.co/t/query-dsl-new-text-family-of-queries-and-more/4365/1 "2011-05-08T18:53:20Z")

</div>

Heya,

Just pushed a very important feature to elasticsearch, and I think one of the big ones in terms of usability (not a big one effort wise).

The aim of `text` queries family is to reduce the confusion of `term` query and provide a family of queries that just do analysis and constructs queries out of them (with different types). In general, when in double, use `text` query should be the new slogan for the query dsl.

Here is the issue: [https://github.com/elasticsearch/elasticsearch/issues/917](https://github.com/elasticsearch/elasticsearch/issues/917). Which also explains the comparison of it to query\_string / field query. Note the nice `phrase_prefix` text type query.

Last, though really a syntactic sugar, fuzziness is now supported for numeric and date types. Once can issue a fuzzy query on a date type with min\_similarity of "1h", and it will automatically be translated to a range query (you can do that with text query as well by setting its fuzziness). Here is the issue: [https://github.com/elasticsearch/elasticsearch/issues/907](https://github.com/elasticsearch/elasticsearch/issues/907).

-shay.banon

---

<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 6, 2017, 4:06am UTC](https://discuss.elastic.co/t/query-dsl-new-text-family-of-queries-and-more/4365/2 "2017-07-06T04:06:41Z")

</div>

Closed on July 6, 2017, 4:06am UTC


