Select to view content in your preferred language

Full-Text Search on Arcgis SDK JS

716
3
Jump to solution
04-22-2024 02:09 AM
fb1
by
Occasional Contributor

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
Frequent Contributor
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
Frequent Contributor
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
Occasional Contributor

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