# Boolean Query causing server to crash without error message

**URL:** <https://discuss.elastic.co/t/boolean-query-causing-server-to-crash-without-error-message/281260>\
**Category:** Elasticsearch\
**Created:** [August 12, 2021, 8:11pm UTC](https://discuss.elastic.co/t/boolean-query-causing-server-to-crash-without-error-message/281260 "2021-08-12T20:11:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstone1492](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@cstone1492](https://discuss.elastic.co/u/cstone1492)\
**Post date:** [August 12, 2021, 8:11pm UTC](https://discuss.elastic.co/t/boolean-query-causing-server-to-crash-without-error-message/281260/1 "2021-08-12T20:11:06Z")

</div>

Hi, I am using version 7.3. A boolean query I'm running (see code below) in a python script is causing the server script to crash without producing any form of error message. The query is within a for-loop, and the crash happens at the same point (with the same query data) each time. Any thoughts?

```auto
query = {
				"bool":{
					"should": [
							{"match": {"title": rawQuery}},
							{"match": {"body": rawQuery}}
						],
					"minimum_should_match": 1,
					"must": {
						"bool": {
							"minimum_should_match": 1,
							"should" : docIDs
						}
					}

				}
			}
			
			ESres = self.es.search(
					index = self.esDocIndex, 
					request_timeout = 30,
					body = {
						'size': 10000,
						'query': query,
			})

```

rawQuery is a string of search terms  
docIDs is a list (of 1000 items or less) dictionaries of the following form:

```auto
{'term': {'id': docID}}

```

where docID is itself a string

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2021, 8:11pm UTC](https://discuss.elastic.co/t/boolean-query-causing-server-to-crash-without-error-message/281260/2 "2021-09-09T20:11:11Z")

</div>

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