# Default Query

**URL:** <https://discuss.elastic.co/t/default-query/221536>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 29, 2020, 8:29pm UTC](https://discuss.elastic.co/t/default-query/221536 "2020-02-29T20:29:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DickyKwok](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@DickyKwok](https://discuss.elastic.co/u/DickyKwok)\
**Post date:** [February 29, 2020, 8:29pm UTC](https://discuss.elastic.co/t/default-query/221536/1 "2020-02-29T20:29:45Z")

</div>

Hi all, I am a Hong Kong developer who are making a online shopping platform and if I want to set some default result, how can I get it done by using search ui, does it support it?

I know we can set "AND" "OR" query, but if I want to set a sample results of products,for example, to show many products in customers' wishlist. I need to set multi query but does it support in search ui?

Here is my config now but the query would be too long

```
let config = {
  alwaysSearchOnInitialLoad: true,
  searchQuery: {
    query: "doc-5e3a9bb6a1f322f8d040573c OR doc-5e3a9bb4a1f3222dbe40547e OR doc-5e3a9bb2a1f322bd364052bf OR doc-5e3a9bb4a1f3222dbe405453 OR doc-5e3a9bb7a1f3225fa14057ef",
  },
  apiConnector: connector
  // initialState: {
  // searchTerm:
  // "doc-5e3a9bb6a1f322f8d040573c OR doc-5e3a9bb4a1f3222dbe40547e OR doc-5e3a9bb2a1f322bd364052bf OR doc-5e3a9bb4a1f3222dbe405453 OR doc-5e3a9bb7a1f3225fa14057ef"
  // },
};

```

---

<div class="post-metadata">

**Author:** ![DickyKwok](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@DickyKwok](https://discuss.elastic.co/u/DickyKwok)\
**Post date:** [February 29, 2020, 9:07pm UTC](https://discuss.elastic.co/t/default-query/221536/2 "2020-02-29T21:07:49Z")

</div>

This have to be closed as I found that we can use filter and it perfectly solve my question that I have been faced for a week....

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [March 2, 2020, 11:32am UTC](https://discuss.elastic.co/t/default-query/221536/3 "2020-03-02T11:32:09Z")

</div>

Glad you got it working. Please share a snippet of code if you can for the benefit of people reading this thread in the future.

---

<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:** [March 30, 2020, 11:32am UTC](https://discuss.elastic.co/t/default-query/221536/4 "2020-03-30T11:32:12Z")

</div>

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