Bool should query with result limit for each condition


(Tushar Chevulkar) #1

Hello,
Is there a way i can give limit to each should condition ?
for e.g. in the below query i need only 10 results for each source.

  {
				  "query": {
					"bool": {
						
					  "should": [
						{
						  "match_phrase": {
			"link": "https://www.b.in/"
						    }
						    ""
						},{
						  "match_phrase": {
							"link": "https://www.a.in"
						  }
						}
					  ]
					}
				  },"sort": [
						{
						  "pub_date": {
							"order": "desc"
						  }
						}
					  ]
				}

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.