Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let jsonObject = {
- "from": from,
- "size": 3,
- "query": {
- "function_score": {
- "filter": {
- "and": [
- {
- "term" : {"propertyName" : "hot"}
- },
- {
- "term" : {"active" : true}
- }
- ]
- },
- "functions": [
- {
- "random_score": {
- seed: seed
- }
- }
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement