searchAsYouType('name', ['boost' => 2]) ->keyword('tags', ['normalizer' => 'lowercase']) ->text('detail', ['boost' => 1.5]) ->text('brand') ->text('source') ->text('notes') ->float('calories') ->float('cholesterol') ->float('sodium') ->float('carbohydrates') ->float('protein') ->date('created_at') ->date('updated_at'); }); } /** * Reverse the migration. */ public function down(): void { Index::dropIfExists('foods'); } }