Weight be position in string?

Is it possible to boost the weight a result if it is closer to the start of
a string in the index? So that searching for 'bar' would weight 'foo bar
baz' higher than 'foo baz bar'?

I'm working with ngrams, if that helps.

Thanks
Lee

--
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/52bf1a41-b01d-4e3a-a61d-ab364afe2869%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.