From 6f9357b4691d7856dcde376a77d983b06698f557 Mon Sep 17 00:00:00 2001 From: Marco Hermo Date: Sun, 27 Oct 2019 18:32:47 +1300 Subject: [PATCH] Change default field from _text to text --- src/Traits/IndexTraits/BaseIndexTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/IndexTraits/BaseIndexTrait.php b/src/Traits/IndexTraits/BaseIndexTrait.php index a83ff1df..8ec5d6a8 100644 --- a/src/Traits/IndexTraits/BaseIndexTrait.php +++ b/src/Traits/IndexTraits/BaseIndexTrait.php @@ -46,7 +46,7 @@ trait BaseIndexTrait /** * @var string Default search field */ - protected $defaultField = '_text'; + protected $defaultField = 'text'; /** * @var array Stored fields */ @@ -55,7 +55,7 @@ trait BaseIndexTrait * @var array Fields to copy to the default fields */ protected $copyFields = [ - '_text' => [ + 'text' => [ '*', ], ];