AS we know that can store our Data into Custom Setting as we can Custom
object.
As per business requirement if ,we need to write Salesforce Object Search Language (SOSL) over custom setting for that firstly we need to enable it and then we can write SOSL over Custom Setting.
below are the Steps:-
1. Click on "Setup", it opens in a new tab
2. Enter "Schema" in the Quick Find
3. Click on 'Schema Settings"
4. Switch the toggle(Enable SOSL on custom settings) to Off and its done!