# Is there any beginner's guide to achieving better search results in elasticsearch?

**URL:** <https://discuss.elastic.co/t/is-there-any-beginners-guide-to-achieving-better-search-results-in-elasticsearch/232360>\
**Category:** Elasticsearch\
**Created:** [May 13, 2020, 5:18am UTC](https://discuss.elastic.co/t/is-there-any-beginners-guide-to-achieving-better-search-results-in-elasticsearch/232360 "2020-05-13T05:18:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![labuka](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@labuka](https://discuss.elastic.co/u/labuka)\
**Post date:** [May 13, 2020, 5:18am UTC](https://discuss.elastic.co/t/is-there-any-beginners-guide-to-achieving-better-search-results-in-elasticsearch/232360/1 "2020-05-13T05:18:42Z")

</div>

I have indexed the data with certain mappings inside elasticsearch, however I'm trying to understand what are all the ways to achieve better search results. Let's say a generic search and on top of that I can add filters. As of now I just started with

```auto
    {
        "query" :
        {
            "query_string":
            {
               "query": "test"
            }
        }
    }

```

Let's say if i need to expose an API for a generic search within a particular doc\_type, what exactly should be the request body? and how that query can be modified for filters, how to implement recent searches, analyzers and any best practices for implementation

---

<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:** [June 10, 2020, 5:18am UTC](https://discuss.elastic.co/t/is-there-any-beginners-guide-to-achieving-better-search-results-in-elasticsearch/232360/2 "2020-06-10T05:18:43Z")

</div>

Closed on June 10, 2020, 5:18am UTC

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