mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
#1: Don't analyze the artist field in Elasticsearch.
This commit is contained in:
parent
990916171c
commit
a5bb117ae7
1 changed files with 2 additions and 4 deletions
|
@ -18,10 +18,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Poniverse\Ponyfm\Console\Commands\RebuildSearchIndex;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
|
||||
class SetupElasticsearch extends Migration
|
||||
{
|
||||
|
@ -43,7 +41,7 @@ class SetupElasticsearch extends Migration
|
|||
'dynamic' => 'strict',
|
||||
'properties' => [
|
||||
'title' => ['type' => 'string'],
|
||||
'artist' => ['type' => 'string'],
|
||||
'artist' => ['type' => 'string', 'index' => 'not_analyzed'],
|
||||
'published_at' => ['type' => 'date'],
|
||||
'genre' => ['type' => 'string', 'index' => 'not_analyzed'],
|
||||
'track_type' => ['type' => 'string', 'index' => 'not_analyzed'],
|
||||
|
@ -60,7 +58,7 @@ class SetupElasticsearch extends Migration
|
|||
'dynamic' => 'strict',
|
||||
'properties' => [
|
||||
'title' => ['type' => 'string'],
|
||||
'artist' => ['type' => 'string'],
|
||||
'artist' => ['type' => 'string', 'index' => 'not_analyzed'],
|
||||
|
||||
// This field is intended to be used as an array.
|
||||
// Note that all Elasticsearch fields can technically be used as arrays.
|
||||
|
|
Loading…
Reference in a new issue