How to use semantic search(or querytype=simple) and return average of a field. For example, I have a sample
CodePudding user response:
Semantic search will only return verbatim statements from your index. It cannot calculate the average from tabular data. See documentation for Returning a semantic answer:
A semantic answer is a substructure of a semantic query response. It consists of one or more verbatim passages from a search document, formulated as an answer to a query that looks like a question. To return an answer, phrases or sentences must exist in a search document that have the language characteristics of an answer, and the query itself must be posed as a question.