# Query string order field

**URL:** <https://discuss.elastic.co/t/query-string-order-field/22633>\
**Category:** Elasticsearch\
**Created:** [March 12, 2015, 2:18pm UTC](https://discuss.elastic.co/t/query-string-order-field/22633 "2015-03-12T14:18:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan1](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dan1](https://discuss.elastic.co/u/Dan1)\
**Post date:** [March 12, 2015, 2:18pm UTC](https://discuss.elastic.co/t/query-string-order-field/22633/1 "2015-03-12T14:18:50Z")

</div>

Hello,

Is it possible to do a query string search on multi fields, where I can determine the result order by field?

When a string is found in field-A it would be more important then an result in field-B

[query] =\> Array  
(  
[query\_string] =\> Array  
(  
[default\_operator] =\> AND  
[query] =\> _string_  
)

```
    )

```

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5ff5d0a9-7936-464c-a223-072ef6e5d8d1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ff5d0a9-7936-464c-a223-072ef6e5d8d1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:27am UTC](https://discuss.elastic.co/t/query-string-order-field/22633/2 "2017-07-06T00:27:14Z")

</div>


