Suggest query does not work when used with script query?

Suggest query does not return anything when used with script _score query

{"_source": {"excludes": ["tag", "document_vector"]},
                   "size": 1000,
					   "query": {
						   "script_score": {
							   "query": {
								   "match_all": {}
							   },
							   "script": {
								   "source": "cosineSimilarity(params.query_vector, 'document_vector') + 1.0",
								   "params": {"query_vector": query_vector}
							   }
						   }
					   },
					   "highlight": {
						   "order": "score",
						   "no_match_size": 500,
						   "number_of_fragments": 5,
						   "fragment_size": 150,
						   "pre_tags": ["<mark>"],
						   "post_tags": ["</mark>"],
						   "fields": {
							   "content": {}
						   }
					   },
					   "suggest": {
						   "namesuggester": {
							   "text": search_string,
							   "term": {
								   "field": "document_title"
							   }
						   }
					   }
					   }

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