-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add expression operator testing whether a string contains a substring #4113
Comments
Closely related to #233 |
Now that expressions have landed and can be used as filters, this is actually a request to add an expression operator. Specifically, there should be an operator that tests whether a string contains another string. By analogy, the most likely syntax would be |
Hi When will this feature be ready? autocomplete search is one of our main use cases, is there an alternative way of doing a "contains" search? |
@arethasamuel if your data isn't too big you could keep an external list of the query properties from your features and filter based on the full list of names which match the user input. |
@arethasamuel the best place to track this at the moment is via the discussion about regexp expressions happening at #6228. As you can see from that conversation, we're still hashing out the right API design, so there's no concrete timeline for when this functionality will be available. |
so |
I'll second @pshavr 's request for a substring function and associated expression syntax! |
A substring test expression would make it easy to implement these road maps color-coded by street name suffix in GL. |
Here's an example of the color-coded road maps mentioned by @1ec5 |
From @vicapow on April 5, 2016 22:46
This would be useful for showing query results as the user types.
Copied from original issue: mapbox/mapbox-gl-style-spec#438
The text was updated successfully, but these errors were encountered: