AnsweredAssumed Answered

Search Widget

Question asked by heike4711 on May 31, 2017
Latest reply on Jul 26, 2017 by heike4711

Hi,

we use the search widget for a search in a custom feature layer.
This works fine if we have an ID field for the layer and can find the result in one single field.

Now we want the users to enter TWO search terms seperated by a column delimiter and search for one term in one field and for the other in another field.
I was hoping to achieve this by altering the query with the searchQueryParams option, but no luck so far.

It it possible to overwrite the where-part of the underlying query with that option?

Has anybody got an example for how to do that?
Is it possible to hook up an entirely new query with the search widget?

Any ideas?

 

We use JS API 3.20, but I guess this is version independent.

Outcomes