Full-Text Search on Arcgis SDK JS

225
3
Jump to solution
2 weeks ago
fb1
by
New Contributor III

good morning,

is there a possibility to have a full-text search in the Search widget?

Current behaviour:

fb1_0-1713776849888.png

if i search only 'sud' 'est' or 'nord' can find nothing

fb1_1-1713776873317.png

0 Kudos
1 Solution

Accepted Solutions
MichaelSnook
Occasional Contributor III
In the properties for each SearchSource item that you have referenced in your Search Widget, add the 'prefix' and 'suffix' properties as needed with a wildcard '%'.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html

View solution in original post

3 Replies
MichaelSnook
Occasional Contributor III
In the properties for each SearchSource item that you have referenced in your Search Widget, add the 'prefix' and 'suffix' properties as needed with a wildcard '%'.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html
fb1
by
New Contributor III

thank you!! it worked perfectly

0 Kudos
RussRoberts
Esri Notable Contributor

If you are using a hosted feature layer in Online you can add a full text index on the service through the layer settings and then search will leverage that index if it exists

https://doc.arcgis.com/en/arcgis-online/manage-data/manage-hosted-feature-layers.htm#ESRI_SECTION1_0...

0 Kudos