GitHub user dosubot[bot] added a comment to the discussion: Modify Automatic “IN” Filter to Support “LIKE” Search for Categorical Filters
<!-- Answer --> The logic that defaults to using "IN" for categorical filters in Superset is implemented in the `onSubjectChange` function within the `useSimpleTabFilterProps` hook. If the operator is not defined, it defaults to using the "IN" operator <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent/index.tsx)</sup>. To modify the filtering logic to allow text-based "LIKE" searches instead of "IN", you would need to adjust this logic to set the operator to "LIKE" or "ILIKE" based on your requirements. This would involve changing the default operator in the relevant part of the code where the filter is applied. As for planned features or workarounds for full-text search in dashboards, I wasn't able to find specific information in the repository. You might need to implement custom logic or modifications to achieve full-text search capabilities. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/96790ef6-1726-4def-ae44-a19adacc2542?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/33625#discussioncomment-13315740 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
