<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search Widget using Arabic Word in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589798#M55124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A word of caution, we do not recommend or allow people to modify the JS API. Please see our policy here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/faq/#am-i-allowed-to-modify-the-arcgis-api-for-javascript%3F" title="https://developers.arcgis.com/javascript/latest/guide/faq/#am-i-allowed-to-modify-the-arcgis-api-for-javascript%3F"&gt;Frequently Asked Questions | ArcGIS API for JavaScript 4.13&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2019 19:02:09 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2019-10-21T19:02:09Z</dc:date>
    <item>
      <title>Search Widget using Arabic Word</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589795#M55121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using ArcGIS JavaScript API 4.10. I have implemented the search widget in my application. I am able to search feature using English words but when I am trying to search using Arabic word, I got 'No results found' in suggestion Template. I have set below two properties for Search Widget&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;searchFields: ["NAMEENGLISH", "NAMEARABIC"],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;suggestionTemplate: "{NAMEENGLISH}, {NAMEARABIC}",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;1.&amp;nbsp;&lt;/STRONG&gt;Search using English Characters(Musaffah)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/445276_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;2. Search using Arabic Characters(مصفح)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/445277_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;I am not getting suggestion for the Arabic Case. Any help here.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589795#M55121</guid>
      <dc:creator>MayurPatel</dc:creator>
      <dc:date>2019-04-30T13:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget using Arabic Word</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589796#M55122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, to solve this issue should be done following item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. try to hosting the Esri Javascript API locally.&lt;/P&gt;&lt;P&gt;2. go to the "search.js" in this path "&lt;A class="link-titled" href="https://egis.mcit.gov.sa/arcgis_js_api/library/3.27/3.27/esri/dijit/search.js" title="https://egis.mcit.gov.sa/arcgis_js_api/library/3.27/3.27/esri/dijit/search.js"&gt;https://&amp;lt;your machine&amp;gt;/arcgis_js_api/library/3.27/3.27/esri/dijit/search.js&lt;/A&gt;" and open it in the editor.&lt;/P&gt;&lt;P&gt;3. go to the method "_whereClause"&lt;/P&gt;&lt;P&gt;4. change this line from&lt;/P&gt;&lt;P&gt;'this.reHostedFS.test(b.url) &amp;amp;&amp;amp; this._containsNonLatinCharacter(a) &amp;amp;&amp;amp;(f = "N");'&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;'this._containsNonLatinCharacter(a) &amp;amp;&amp;amp; (f = "N");'.&lt;/P&gt;&lt;P&gt;5.check now will be solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 07:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589796#M55122</guid>
      <dc:creator>MahmoudHemdan2</dc:creator>
      <dc:date>2019-10-21T07:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget using Arabic Word</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589797#M55123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested a sample using Arabic localization, it seems to give suggestions.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/noash/pen/KKKaaOP" title="https://codepen.io/noash/pen/KKKaaOP"&gt;https://codepen.io/noash/pen/KKKaaOP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you searching a layer, a custom Locator source, or using the Esri world geocoding service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 18:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589797#M55123</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-10-21T18:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget using Arabic Word</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589798#M55124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A word of caution, we do not recommend or allow people to modify the JS API. Please see our policy here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/faq/#am-i-allowed-to-modify-the-arcgis-api-for-javascript%3F" title="https://developers.arcgis.com/javascript/latest/guide/faq/#am-i-allowed-to-modify-the-arcgis-api-for-javascript%3F"&gt;Frequently Asked Questions | ArcGIS API for JavaScript 4.13&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/589798#M55124</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-10-21T19:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget using Arabic Word</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/1310947#M81762</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;I'm facing the same issue searching in a&amp;nbsp;LayerSearchSource. It is registered in GDB.&lt;/P&gt;&lt;P&gt;I test in ArcGIS Pro and it returns results only if I added N before searchTerm like "where field=N'text'"&lt;/P&gt;&lt;P&gt;How can I add it to the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;addsearchSource&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPA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t;searchFields&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;allowedFields&lt;/SPAN&gt;&lt;SPAN&gt; ? &lt;/SPAN&gt;&lt;SPAN&gt;allowedFields&lt;/SPAN&gt;&lt;SPAN&gt; : [&lt;/SPAN&gt;&lt;SPAN&gt;'*'&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;exactMatch&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;outFields&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;allowedFields&lt;/SPAN&gt;&lt;SPAN&gt; ? &lt;/SPAN&gt;&lt;SPAN&gt;allowedFields&lt;/SPAN&gt;&lt;SPAN&gt; : [&lt;/SPAN&gt;&lt;SPAN&gt;'*'&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;placeholder&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;placeholder&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;slice&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;20&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;'...'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;// trim long placeholderes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;layer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;zoomScale&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;500000&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;searchWidget&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sources&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;source&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jul 2023 11:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/1310947#M81762</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2023-07-24T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget using Arabic Word</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/1311829#M81777</link>
      <description>&lt;P&gt;Find the solution &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-not-working-with-non-english/td-p/1310981" target="_blank" rel="noopener"&gt;in this thread&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 23:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-using-arabic-word/m-p/1311829#M81777</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2023-07-25T23:58:26Z</dc:date>
    </item>
  </channel>
</rss>

