Disable search in "globalSearch"
Hi.
I am confuse.
DB is PostgreSQL.
I have in Resource
As I understood, it's for global search and when I search, it's searches like:
But I have another column for full text search with index and I one to search by query:
When I rewrite "getGlobalSearchResults":
It's searches in both variants and returns result based on first (simple "ilike" search)
If I remove $recordTitleAttribute, the its shows up menu without title (I see, that getGlobalSearchResults runs - searches)
So, how to enable only my getGlobalSearchResults query and return event_name as the title in search result.
3 Replies
Please, somebody comment..
I didn't really understand what you exactly want, but check this out https://filamentphp.com/docs/2.x/admin/resources/global-search#multi-column-search
What I wont is global search searches by custom sql and in the result returns event_name.
Custom search searches by column, witch is tsvector date type and in response from search need to show different column