Help with request

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d127f8dd-da57-44e8-8a04-5c296e950a97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.