dosubot[bot] commented on issue #37931:
URL: https://github.com/apache/superset/issues/37931#issuecomment-3891229885

   <!-- Greeting -->
   Hi @clayheaton! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   This is expected behavior in Superset 6.0.0: with server-side pagination 
enabled on the Table chart, the search box only matches the beginning of 
strings (prefix match), not substrings. This happens because the query uses the 
`ILIKE` operator with a trailing `%` (e.g., `searchText%`), so only values 
starting with your input are matched. There’s no configuration option to change 
this to a substring match (e.g., `%searchText%`) by default—adding `%` manually 
is the only way to search inside strings right now. This is a known limitation, 
not a bug or misconfiguration, and is done for performance reasons on large 
datasets 
[[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts)].
   
   If you need more flexible substring search with server-side pagination, the 
new AG Grid Table V2 supports column-level filters with "contains" and other 
options, but the standard Table chart does not 
[[source](https://github.com/apache/superset/pull/35683)]. The community is 
open to proposals for making the filter operator configurable, but this isn’t 
implemented yet [[source](https://github.com/apache/superset/issues/32276)].
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0f28e357-2809-4821-a624-3e3a7ac7449c?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20expected%20behavior%20in%20Superset%206.0.0%3A%20with%20server-side%20pagination%20enabled%20on%20the%20Table%20chart%2C%20the%20search%20box%20only%20matches%20the%20beginning%20of%20strings%20%28prefix%20match%29%2C%20not%20substrings.%20This%20happens%20because%20the%20query%20uses%20the%20%60ILIKE%60%20operator%20with%20a%20trailing%20%60%25%60%20%28e.g.%2C%20%60searchText%25%60%29%2C%20so%20only%20values%20starting%20with%20your%20input%20are%20matched.%20There%E2%80%99s%20no%20configuration%20option%20to%20change%20this%20to%20a%20substring%20match%20%28e.g.%2C%20%60%25searchText%25%60%29%20by%20default%E2%80%94adding%20%60%25%60%20manually%20is%20the%20only%20way%20to%20search%20inside%20strings%20right%20now.%20This%20is%20a%20k
 
nown%20limitation%2C%20not%20a%20bug%20or%20misconfiguration%2C%20and%20is%20done%20for%20performance%20reasons%20on%20large%20datasets%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts%29%5D.%0A%0AIf%20you%20need%20more%20flexible%20substring%20search%20with%20server-side%20pagination%2C%20the%20new%20AG%20Grid%20Table%20V2%20supports%20column-level%20filters%20with%20%22contains%22%20and%20other%20options%2C%20but%20the%20standard%20Table%20chart%20does%20not%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/pull/35683%29%5D.%20The%20community%20is%20open%20to%20proposals%20for%20making%20the%20filter%20operator%20configurable%2C%20but%20this%20isn%E2%80%99t%20implemented%20yet%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/32276%29%5D.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https:
 //go.dosu.dev/discord-bot)&nbsp;[![Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37931)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to