karmi/tire — pull request #388 by squidfunk (2012-06-21 16:19:02+00:00)
Title: Support for span_near / span_or / span_term queries

Hi there,

I was in need of support for span_near / span_or / span_term queries, so I added it:

MyIndex.search do
query do
span_near slop: 10, in_order: true do
span_term :field1, value1
span_term :field2, value2
end
end
end

If you find it useful, you're free to merge it.

All the best,
Martin