Skip to content

Commit 2cfe686

Browse files
Fix query text_expansion definition (#2211) (#2212)
Co-authored-by: Florian Bernd <[email protected]>
1 parent 656080d commit 2cfe686

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

specification/_types/query_dsl/TextExpansionQuery.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@
1717
* under the License.
1818
*/
1919

20-
import { Field } from '@_types/common'
2120
import { QueryBase } from './abstractions'
2221

2322
/** @shortcut_property value */
2423
export class TextExpansionQuery extends QueryBase {
25-
/** The name of the rank features field to search against */
26-
value: Field
2724
/** The text expansion NLP model to use */
2825
model_id: string
2926
/** The query text */

specification/_types/query_dsl/abstractions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class QueryContainer {
160160
* @availability stack since=8.8.0
161161
* @availability serverless
162162
*/
163-
text_expansion?: TextExpansionQuery
163+
text_expansion?: SingleKeyDictionary<Field, TextExpansionQuery>
164164
wildcard?: SingleKeyDictionary<Field, WildcardQuery>
165165
wrapper?: WrapperQuery
166166

0 commit comments

Comments
 (0)