Created
April 20, 2017 15:20
-
-
Save adamjonas/ff75b46537af6fefa5f40ca9af4c7c16 to your computer and use it in GitHub Desktop.
elasticsearch json dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://elasticsearch05.fe.flatironschool.com:9200/users_development/_search?pretty -d '{ | |
"query":{ | |
"dis_max":{ | |
"queries":[ | |
{ | |
"match":{ | |
"github_username.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":10, | |
"analyzer":"searchkick_search" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"github_username.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":10, | |
"analyzer":"searchkick_search2" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"github_username.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":1, | |
"fuzziness":1, | |
"max_expansions":3, | |
"analyzer":"searchkick_search" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"github_username.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":1, | |
"fuzziness":1, | |
"max_expansions":3, | |
"analyzer":"searchkick_search2" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"email.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":10, | |
"analyzer":"searchkick_search" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"email.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":10, | |
"analyzer":"searchkick_search2" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"email.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":1, | |
"fuzziness":1, | |
"max_expansions":3, | |
"analyzer":"searchkick_search" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"email.analyzed":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":1, | |
"fuzziness":1, | |
"max_expansions":3, | |
"analyzer":"searchkick_search2" | |
} | |
} | |
}, | |
{ | |
"match":{ | |
"full_name.text_middle":{ | |
"query":"adam", | |
"operator":"and", | |
"boost":1, | |
"analyzer":"searchkick_autocomplete_search" | |
} | |
} | |
} | |
] | |
} | |
}, | |
"size":100000, | |
"from":0, | |
"fields":[ | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment