# How to build a plugin to filter search results

**URL:** <https://discuss.elastic.co/t/how-to-build-a-plugin-to-filter-search-results/110236>\
**Category:** Elasticsearch\
**Created:** [December 5, 2017, 1:56am UTC](https://discuss.elastic.co/t/how-to-build-a-plugin-to-filter-search-results/110236 "2017-12-05T01:56:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sliu](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sliu](https://discuss.elastic.co/u/sliu)\
**Post date:** [December 5, 2017, 1:56am UTC](https://discuss.elastic.co/t/how-to-build-a-plugin-to-filter-search-results/110236/1 "2017-12-05T01:56:28Z")

</div>

How would I build a custom plugin to further trim search results? This would be at the stage after Elastic get all search results, before or right after query filters are applied. A pointer to some examples or tutorials would be appreciated. thanks.

---

<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:** [January 2, 2018, 1:56am UTC](https://discuss.elastic.co/t/how-to-build-a-plugin-to-filter-search-results/110236/2 "2018-01-02T01:56:57Z")

</div>

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