-
Notifications
You must be signed in to change notification settings - Fork 60
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
Single Field Search and Search by List Fail on Type AGS-Vector #870
Comments
Looking at the GeoMoose Protocol Support page, I see Search is supported (or it was when I did my testing) if the Arc GIS server is configured for Supported Operation:Query. Is that the case for your data source? |
Yes, Query is enabled, and I've gotten it working for the standard search, it's just search by list and the single field search that aren't working. |
The doc seems to differ slightly from the single-search code in the examples app.js. Not sure if the differences are significant. |
Not sure how much the distinctions matter. My code matches the single-search example code, though I copied the doc code and it worked just fine on a postgres dataset. Regarding the ags-vector issue, I'm using the same code that's working for a wfs map-source, just swapping out the map-source name and fields. |
It's been a few years, but I seem to recall a problem with the "ilike" parameter. Try switching to "like". |
And maybe use the network tab in the browser's debugger to examine the query sent to the server and the server's response. |
I'm seeing the same issues with "like". The network tab doesn't show any traffic. For the multi-field search (that works) I can see the query to the server and the response, but for the single-field and list searches the only traffic are the search templates. |
Sounds like GeoMoose is having trouble constructing the query. Looking at the code, you better not have any single quotes in your search term. But I expect there's a bug (or lack of doc) in GeoMoose. |
The standard geomoose search works with type ags-vector (i.e. specify a list of fields that the user can individually search - i.e. the search specified here - https://docs.geomoose.org/3.x/howto/configure-search-fieldrequired.html).
It fails with both the single field search and search by list examples specified here - https://docs.geomoose.org/3.x/howto/configure-search-or-fields.html. It results in no results found and throws a console error.
Console error that occurs when trying to use search by list/single field search with ags-vector:
The text was updated successfully, but these errors were encountered: