AnsweredAssumed Answered

Search popup only shows three fields

Question asked by HustleHard on Jan 19, 2016
Latest reply on Jan 19, 2016 by Girish.Yadav

Not sure if this is a default or not, but when I get my search results, only three fields show up. Regardless of how many I have set in my index.

Am I missing something? below is the code for the search:

 

    sources.push({

      featureLayer: new FeatureLayer("https://gis.cityofthornton.net/arcgis/rest/services/External_Webmaps/MasterAddress/MapServer/0 "),

      searchFields: ["ADDRESS"],

      displayField: "ADDRESS",

      suggestionTemplate: "${ADDRESS}",

      exactMatch: false,

      outFields: ["PT_TYPE", "ADDRESS", "CITY", "STATE", "ZIPCODE", "BUS_NAME", "BUS_TYPE", "LANDUSE", "ZONING", "WARD", "SUBDIVISIO", "DEV_NAME"],

      infoTemplate: new InfoTemplate("Address: ${ADDRESS}", "Address Type: ${PT_TYPE}</br>Address: ${ADDRESS}</br>City: ${CITY}", "State: ${STATE}</br>Zipcode: ${ZIPCODE}","Business Name: ${BUS_NAME}</br>Business Type: ${BUS_TYPE}</br>Landuse: ${LANDUSE}", "Zoning: ${ZONING}</br>Ward: ${WARD}", "Subdivision Name: ${SUBDIVISIO}</br>Development Name: ${DEV_NAME}"),

      name: "Address Search",

      placeholder: "Search Addresses",

      maxResults: 6,

      maxSuggestions: 6,

      enableSuggestions: true,

      minCharacters: 0

    });

   

    s.set("sources", sources);

 

 

    s.startup();

Outcomes