Skip to content

Commit

Permalink
Update mapping condition for _all fields
Browse files Browse the repository at this point in the history
Update condition in arElasticSearchPluginUtil to only get string
fields included in _all if copy_to is explicitly set to _all in the
mappping.
  • Loading branch information
anvit committed Nov 14, 2024
1 parent 0842eb9 commit abb1768
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ protected static function getAllObjectStringFields(
// Get string fields included in _all
elseif (
(
!isset($propertyProperties['copy_to'])
|| ('_all' == $propertyProperties['copy_to'])
isset($propertyProperties['copy_to'])
&& ('_all' == $propertyProperties['copy_to'])
) && (
isset($propertyProperties['type'])
&& 'text' == $propertyProperties['type']
Expand Down

0 comments on commit abb1768

Please sign in to comment.