Find Task "contains" parameter default value - bug?

6253
11
03-22-2015 06:47 AM
AlexanderGleyzer
New Contributor

Hi.

I'm using Runtime's Find Task in order to find all features in a map service layer containing a specified string.

According to documentation the default value of FindParameters.Contains parameter is true (i.e. search is performed for a partial and not exact match).

In practice, however, the search is always performed for an exact match - whether FindParameters.Contains is set to either true or false.

After "sniffing" the actual REST URL generated by the task, I think I found the problem.

When FindParameters.Contains is set to true - the generated REST URL doesn't have the "contains" URL parameter at all, because it assumes the default value of true.

Unfortunately, REST API (at least in ArcGIS Server version 10.2.2 that I'm currently using) for Map Service's Find method falsely assumes the default value of false, contrary to its own documentation.

Is this a bug in 10.2.2?

Is there any workaround for this issue, except generating my own REST "find" request and parsing the results (from JSON)?

Thanks,

Alexander.

0 Kudos
11 Replies
AlexanderGleyzer
New Contributor

Hi, Asser.

Thanks for the workaround.

Please, let me know when this issue is fixed in either the next ArcGIS Runtime or ArcGIS Server release.

Alexander.

0 Kudos
AndrewFoster
New Contributor II

Alexander,

We are experiencing the same issue on our installation of ArcGIS Server 10.3.1.  This wasn't an issue for us in version 10.2.1.  We are in the process of upgrading to ArcGIS Server 10.5.  The issue seems to be fixed in version 10.5.  Thank you for all your research and explanation as it helped us identify our problem.

Andy

0 Kudos