javascript - ArcGIS JS API Search source searchFields - multiple fields not working -


my application not able search in 2 (or more) fileds. same problem in sample application esri.

esri app sample: http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=search_customized

on line 130, ok: searchfields: ["country"],

this ok, too: searchfields: ["rating"],

but, wrong: searchfields: ["country", "rating"],

the documentation says, searchfields array of fields search in (see https://developers.arcgis.com/javascript/jsapi/search-amd.html#sources)

why not working, wrong?

i verified link happening because of field data type; if open sample layer rest url see "county" has string data type "rating" has integer data type.

layer's screen shot:

enter image description here

it not doesn't supports combination; supports such combinations need take care while pass value in text box should integer. because string uses "like" , integer uses "=" operator.

hope :)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -