# Where to start with custom query types

**URL:** <https://discuss.elastic.co/t/where-to-start-with-custom-query-types/230459>\
**Category:** Elasticsearch\
**Created:** [April 30, 2020, 3:11am UTC](https://discuss.elastic.co/t/where-to-start-with-custom-query-types/230459 "2020-04-30T03:11:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emarthinsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emarthinsen/32/23172_2.png) [@emarthinsen](https://discuss.elastic.co/u/emarthinsen)\
**Post date:** [April 30, 2020, 3:11am UTC](https://discuss.elastic.co/t/where-to-start-with-custom-query-types/230459/1 "2020-04-30T03:11:40Z")

</div>

This is, slightly, hypothetical, but let's say that I wanted to do something like index a matrix and then do a search based upon which documents had a matrix closest to the matrix that I'm searching for. How would I extend ES in order to create a query that could do this?

Also, as a follow-up, is there a way to declare a custom type in ES? I could store the matrix as a two dimensional array, but maybe there's a more elegant solution?

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:** [May 28, 2020, 3:11am UTC](https://discuss.elastic.co/t/where-to-start-with-custom-query-types/230459/2 "2020-05-28T03:11:40Z")

</div>

Closed on May 28, 2020, 3:11am UTC

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