[DOCS] Add text_expansion deprecation usage note (#115529) (#115537)

(cherry picked from commit 6980fc6253)
This commit is contained in:
Liam Thompson 2024-10-24 15:39:53 +02:00 committed by GitHub
parent 0ce58c569a
commit bd8b55cc5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,13 @@
deprecated[8.15.0, This query has been replaced by <<query-dsl-sparse-vector-query>>.] deprecated[8.15.0, This query has been replaced by <<query-dsl-sparse-vector-query>>.]
.Deprecation usage note
****
You can continue using `rank_features` fields with `text_expansion` queries in the current version.
However, if you plan to upgrade, we recommend updating mappings to use the `sparse_vector` field type and <<docs-reindex,reindexing your data>>.
This will allow you to take advantage of the new capabilities and improvements available in newer versions.
****
The text expansion query uses a {nlp} model to convert the query text into a list of token-weight pairs which are then used in a query against a The text expansion query uses a {nlp} model to convert the query text into a list of token-weight pairs which are then used in a query against a
<<sparse-vector,sparse vector>> or <<rank-features,rank features>> field. <<sparse-vector,sparse vector>> or <<rank-features,rank features>> field.