nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'relevance' #88

Open bushbill opened 9 years ago

bushbill commented 9 years ago

If you have a field named "relevance" in your table, the system did not work... make this "virtual field" configurable or name it like "relevance" or "searchable_relevance"... so the chance to have a conflict is minimized.

skalero01 commented 4 years ago

You can modify it now, just use define public $relevanceField = 'relevance' on the model