Error when searching in a specific field

hello,

I got error "failed to connect to console's backed. please check the kibana server is up and running" when tried to search on field "file_content".
here is my query

{
			"query": {
				"multi_match": {
					"query": "specimen book",
					"fields": ["judul^3", "deskripsi", "file_content"],
					"operator": "AND",
					"type" : "bool_prefix", 
					"fuzziness": "AUTO",
					"prefix_length" : 5
				}
			},
			"sort": [
				{
					"_score": {
						"order": "desc"
					}
				}
			],
			"highlight": {
				"pre_tags": [
				  "<b>"
				],
				"post_tags": [
				  "</b>"
				],
				"fields": {
				  "file_content": {
					"number_of_fragments": 1,
					"fragment_size": 100,
					"type": "plain"
				  }
				},
				"max_analyzed_offset": 1000000
			}
		  }

When I removed "file_content" on the fields and highlight, the result is normal.

"file_content" is an index for storing the text from an extracted PDF file.

Welcome to our community! :smiley:

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them. Instead, post the code and the response so we can see it :slight_smile:

I'm sorry, I just edited it

1 Like

Thanks.

Can you check the Kibana logs as well?

recently I tried again the query on kibana then got error but there is no log show at that time,

here is the log I got which is yesterday's log.

Mar	1	23:23:23	CCP-13332	kibana(2804918):
(2023-03-01T23:23:23.083+07:00)[INFO ][status) Kibana is now available (was degraded) 
Mar	1	23:28:39	CCP-I3332	kibana(2804918]:
(2023-03-01T23:25:11.041+07:00)(ERROR)(plugins.taskManager] Failed to poll for work: Error: work has timed out 
Mar	1	23:28:39	CCP-13332	kibana(2804918):
(2023-03-01723:25:23.775+07:003(INFO )(status) Kibana is now degraded (was available) 
Mar	1	23:28:39	CCP-13332	kibana(2804918):
(2023-03-01723:25:41.048+07:00)(ERRORI(plugins.taskManager) Failed to poll for work: Error: work has timed out 
Mar	1	23:28:39	CCP-I3332	kibana(2804918]:
(2023-03-01723:26:09.372+07:00)(ERROR)(plugins.taskManager] Task reports:monitor "reports:monitor" failed- Timeoul 				
Mar	1	23:28:39	CCP-I3332	kibana(2804918):
(2023-03-01723:26:11.055+07:00)(ERROR)(plugins.taskManager) Failed to poll for work: Error: work has timed out 
Mar	1	23:28:39	CCP-13332	kibana(2804918]:
(2023-03-01723:26:38.250+07:00)[WARN )(plugins.taskManager) Cancelling task reports:monitor "reports:monitor° as

I also tried on postman with that query but got timeout.

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