Select to view content in your preferred language

Full-Text Search on Arcgis SDK JS

1635
4
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

4 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
SebastianKrings
Frequent Contributor

This does also apply fpr non hosted feater layers in Enterprise at least
We added the index via ArcGIS Pro
Translated:
"

In ArcGIS Pro, you can use the Add Full-Text Index geoprocessing tool in the Data Management Tools toolbox to create a full-text index for feature classes or tables in a geodatabase.

"
 
0 Kudos