Last active
August 29, 2015 14:21
-
-
Save kstenson/6febf0267e056dddabf6 to your computer and use it in GitHub Desktop.
Boolean field score inside query should
This file contains 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
{ | |
"value":3.722785, | |
"description":"weight(services.Phone.freeCalls.Daytime:T in 2786) [PerFieldSimilarity], result of:", | |
"details":[ | |
{ | |
"value":3.722785, | |
"description":"score(doc=2786,freq=1.0 = termFreq=1.0 ), product of:", | |
"details":[ | |
{ | |
"value":0.51985043, | |
"description":"queryWeight, product of:", | |
"details":[ | |
{ | |
"value":7.1612616, | |
"description":"idf(docFreq=77, maxDocs=36974)" | |
}, | |
{ | |
"value":0.07259202, | |
"description":"queryNorm" | |
} | |
] | |
}, | |
{ | |
"value":7.1612616, | |
"description":"fieldWeight in 2786, product of:", | |
"details":[ | |
{ | |
"value":1, | |
"description":"tf(freq=1.0), with freq of:", | |
"details":[ | |
{ | |
"value":1, | |
"description":"termFreq=1.0" | |
} | |
] | |
}, | |
{ | |
"value":7.1612616, | |
"description":"idf(docFreq=77, maxDocs=36974)" | |
}, | |
{ | |
"value":1, | |
"description":"fieldNorm(doc=2786)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
This file contains 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
{ | |
"query":{ | |
"bool":{ | |
"must":[ | |
{ | |
"function_score":{ | |
"functions":[ | |
{ | |
"gauss":{ | |
"services.TV.grade":{ | |
"origin":6, | |
"scale":20 | |
} | |
} | |
}, | |
{ | |
"gauss":{ | |
"services.TV.equipment.pVRStorage":{ | |
"origin":500, | |
"scale":20 | |
} | |
} | |
}, | |
{ | |
"gauss":{ | |
"services.Broadband.maximumDownloadSpeed":{ | |
"origin":16, | |
"scale":20 | |
} | |
} | |
} | |
] | |
} | |
} | |
], | |
"should":[ | |
{ | |
"term":{ | |
"services.Broadband.technology":1 | |
} | |
}, | |
{ | |
"term":{ | |
"services.Phone.freeCalls.Daytime":true | |
} | |
}, | |
{ | |
"term":{ | |
"services.Phone.freeCalls.Evening":true | |
} | |
}, | |
{ | |
"term":{ | |
"services.Phone.freeCalls.Weekend":true | |
} | |
}, | |
{ | |
"term":{ | |
"services.Phone.freeCalls.International":false | |
} | |
} | |
], | |
"must_not":[ | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment