Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. "q":"(Billy AND Smith OR ("Billy Smith")) AND status:active",
  2. "tie":".1",
  3. "defType":"edismax",
  4. "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",
  5. "sort":"score desc, id asc"
  6.  
  7. {
  8. "query": {
  9. "bool" : {
  10. "minimum_should_match" : 1,
  11. "should" : [{
  12. "multi_match" : {
  13. "query" : "billy smith",
  14. "type": "cross_fields",
  15. "fields" : ["email^6", "wholename^5", "firstname^2", "nickname^1.5" "lastname^1"],
  16. "tie_breaker":0.15
  17. }},
  18. {
  19. "multi_match" : {
  20. "query" : "billy smith",
  21. "type": "cross_fields",
  22. "fields" : ["wholename.edge^3", "firstname.edge^2", "lastname.edge^1"],
  23. "tie_breaker":0.15
  24. }},
  25. {
  26. "multi_match" : {
  27. "query" : "billy smith",
  28. "type": "cross_fields",
  29. "fields" : ["wholename.phonetic^0.9", "nickname.phonetic^0.1"],
  30. "tie_breaker":0.15
  31. }
  32. }],
  33. "filter" :{
  34. "term": {"status":"active"}
  35. }
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement