# Search response in a progressive way

**URL:** https://discuss.elastic.co/t/search-response-in-a-progressive-way/177248
**Category:** Elastic Search
**Tags:** elastic-site-search
**Created:** [April 17, 2019, 9:12am UTC](https://discuss.elastic.co/t/search-response-in-a-progressive-way/177248 "2019-04-17T09:12:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![luka7](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@luka7](https://discuss.elastic.co/u/luka7)
#### Post date: [April 17, 2019, 9:12am UTC](https://discuss.elastic.co/t/search-response-in-a-progressive-way/177248/1 "2019-04-17T09:12:21Z")

</div>

Hi,

```
getPayload() {
      let textsearch = this.textsearch.replace(/ /g," AND ");
      return {
        q: textsearch,
        lang: this.$store.getters.getLang || 'en',
        engine: this.getSwiftypeEngine
      }
    }

```

I am trying to query swiftype engine and get the response in a progressive way.  
It means that:

When I search for: “elastic” I get an array of objects with 20 results and a property title starting with "elastic" word  
When I search for: “elastic s” I get an array of objects with 20 results and a property title starting with **exactly** “elastic c”

I tried already to change the algorithm by passing AND between two keywords (that works better but not exactly as I would expect).

Free-text Query Syntax  
Text searches support a basic subset of the standard Lucene query syntax.  
The supported functions are: double quoted strings, + and -, AND, OR, and NOT.  
Visit the Lucene documentation for more information.

Do I need to pass anything additional? Is it possible to omit completely the score and return results only containing exact amount of letters?

---

<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 15, 2019, 9:12am UTC](https://discuss.elastic.co/t/search-response-in-a-progressive-way/177248/2 "2019-05-15T09:12:23Z")

</div>

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