Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "q":"(Billy AND Smith OR ("Billy Smith")) AND status:active",
- "tie":".1",
- "defType":"edismax",
- "qf":"email^6 wholename^5 wholename.edge^3 firstname^2 nickname^1.5 lastname^1 firstname.edge^.5 lastname.edge^.3 wholename.phonetic^.3 nickname.phonetic^0.1",
- "sort":"score desc, id asc"
- {
- "query": {
- "bool" : {
- "minimum_should_match" : 1,
- "should" : [{
- "multi_match" : {
- "query" : "billy smith",
- "type": "cross_fields",
- "fields" : ["email^6", "wholename^5", "firstname^2", "nickname^1.5" "lastname^1"],
- "tie_breaker":0.15
- }},
- {
- "multi_match" : {
- "query" : "billy smith",
- "type": "cross_fields",
- "fields" : ["wholename.edge^3", "firstname.edge^2", "lastname.edge^1"],
- "tie_breaker":0.15
- }},
- {
- "multi_match" : {
- "query" : "billy smith",
- "type": "cross_fields",
- "fields" : ["wholename.phonetic^0.9", "nickname.phonetic^0.1"],
- "tie_breaker":0.15
- }
- }],
- "filter" :{
- "term": {"status":"active"}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement