/** * @type TextQuery: A text query is used to match some text (for example, a search phrase possibly consisting of multiple terms) against one or more fields. When multiple fields are provided, the phrase conceptually forms a logical `OR` over the fields. In this case, the terms of the phrase basically have to match within the text, that would result in concatenating all given fields. * * @property fields: The document fields that the search phrase matches against. * * @property searchPhrase: A search phrase, which can include multiple terms separated by spaces. * */ export type TextQuery = { fields: Array; searchPhrase: string; } & { [key: string]: any; };