I'm trying to write a query for some products. Products have two fields, title and description. I'd like to write a query that passes in some text and returns to me products with matching text. I'd like all the products that have a match in the title to be ranked above all the products that have a match in the description. I'd also like to have the description field matches to require a higher fuzziness and minimum should match than title matches.
So far i've only been able to find ways to write queries that A) would check both fields, but matches for title and description would ranked equivalently or b) would check both fields, but would require a match in both fields before returning a result.
Any help writing this in either the regular elastic search or using the FOSElasticaBundle would be much appreciated.