Unable to set global search field or change weight #23898
Replies: 2 comments 2 replies
🟡 Sonarly Analysis — Medium SeveritySearch configuration is display-only Global search only uses a fixed set of fields, while the settings UI displays those fields without providing controls to add fields or change weights. Root CauseGlobal search is backed by the generated For People, the search-vector input is explicitly limited to four fields: The settings UI reinforces this limitation rather than configuring it. The underlying The triggering state described in the issue is adding a custom database index to a previously non-searchable field. The custom-index management feature was introduced by Blame commit: Suggested FixUpdated global search to derive its tsvector and ILIKE fallback expressions from all active searchable fields, including custom fields. This removes the dependency on the hardcoded/generated searchVector contents and makes custom fields searchable immediately after creation. Updated the data-model search settings section to list the actual active searchable fields instead of parsing the stale searchVector expression, and added a unit test covering custom searchable-field inclusion. Analyzed by Sonarly · View full analysis |
|
Search index isn't really linked to individual index fields so you shouldn't need to create indexes. It's very rare that there's a need to create individual indexes (only for clients with millions of records on a given table that run perf issues). Agree search index by itself should be editable! @prastoin was working on that |
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
Currently only 4 fields are by default set as globally searchable fields for People object. If new indexed field is added, e.g. middle name or some website link, then even after being index, unable to add it to be globally searchable.
Also, no button to change the weight of the global search field.
Expected behavior
When we create an indexed field, then we should we able to add that field to globally searchable fields. And, also able to change the weight if needed
All reactions