I managed to find out how to draft such queries. In case someone might also needs to make such queries, I provide an example below, that can be provided to Snap:
query = %{
query: %{
span_near: %{
clauses: [
%{
span_multi: %{
match: %{
wildcard: %{
"doc.values.description": %{
value: "comput*"
}
}
}
}
},
%{
span_multi: %{
match: %{
wildcard: %{
"doc.values.description": %{
value: "inform*"
}
}
}
}
}
],
slop: 14,
in_order: false
}
}
}