# Help with request

**URL:** https://discuss.elastic.co/t/help-with-request/21275
**Category:** Elasticsearch
**Created:** [December 16, 2014, 12:42pm UTC](https://discuss.elastic.co/t/help-with-request/21275 "2014-12-16T12:42:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![11176](https://avatars.discourse-cdn.com/v4/letter/1/73ab20/32.png) [@11176](https://discuss.elastic.co/u/11176)
#### Post date: [December 16, 2014, 12:42pm UTC](https://discuss.elastic.co/t/help-with-request/21275/1 "2014-12-16T12:42:34Z")

</div>

Hi, all

I'm newbe in Elastic. Usualy I was use Sphinx in my projects but due some  
limitation I descide to play with Elastic and I like it.

But now I stuck in some "thin" request and need your help. So could you  
please push me in right direction how to make such request:

I have index (sample)  
{  
"Name":"Car oil TOTAL"  
"attributes":{"Attrib1"=\>"5w40","Fuel"=\>"disel"}  
"applicability":["BMW","AUDI","SEAT"]  
}

Could you pelase advice right syntax to find result with next queue: "Oil  
for disel BMW"  
Now i use  
"query\_string"=\>array (  
"query"=\>'Oil\*',  
"default\_operator"=\>'or',  
"allow\_leading\_wildcard"=\>true,  
"fields"=\> array(  
"Name^3",  
)  
),  
"constant\_score"=\>array(  
"filter"=\>array(  
"terms"=\>array(  
"applicability"=\>array('BMW')  
)  
)  
)

and there is expected result. But if I change queue to "Oil for BMW" -  
there is emty results.

--  
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/d127f8dd-da57-44e8-8a04-5c296e950a97%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d127f8dd-da57-44e8-8a04-5c296e950a97%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:43am UTC](https://discuss.elastic.co/t/help-with-request/21275/2 "2017-07-06T00:43:28Z")

</div>


