Skip to content

Instantly share code, notes, and snippets.

Created Nov 15, 2012
Embed
What would you like to do?
{
"query": {
"bool": {
"should": [
{
"top_children": {
"type": "vertical",
"query": {
"fuzzy": {
"_all": {
"value": "auto",
"min_similarity": 0.9
}
}
}
}
},
{
"top_children": {
"type": "vertical",
"query": {
"text": {
"_all": "auto"
}
}
}
},
{
"top_children": {
"type": "company",
"query": {
"text": {
"_all": "auto"
}
}
}
},
{
"top_children": {
"type": "company",
"query": {
"fuzzy": {
"name": {
"value": "auto",
"min_similarity": 0.85
}
}
}
}
},
{
"text": {
"name": "auto"
}
},
{
"fuzzy": {
"name": {
"value": "auto",
"min_similarity": 0.85
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment