Skip to content
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

Open
chughes-lincoln opened this issue Sep 16, 2024 · 8 comments
Open

Comments

@chughes-lincoln
Copy link
Contributor

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:
image

@brentfraser
Copy link
Contributor

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?

@chughes-lincoln
Copy link
Contributor Author

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.

@brentfraser
Copy link
Contributor

The doc seems to differ slightly from the single-search code in the examples app.js. Not sure if the differences are significant.

@chughes-lincoln
Copy link
Contributor Author

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.

@brentfraser
Copy link
Contributor

brentfraser commented Sep 16, 2024

It's been a few years, but I seem to recall a problem with the "ilike" parameter. Try switching to "like".

@brentfraser
Copy link
Contributor

And maybe use the network tab in the browser's debugger to examine the query sent to the server and the server's response.

@chughes-lincoln
Copy link
Contributor Author

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.

@brentfraser
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants