Search Widget Only Returning One Result

409
1
03-14-2019 07:20 AM
ViktoriaMagnis
New Contributor II

Hi 

I have a search widget that is searching owners name in a property featurelayer.  I know that there are suppose to be multiple results but it is only returning one.  I have set  autoSelect: false,  but it's still only returning one results. 

There is the code 

var searchParcel = new Search({
view: view,
includeDefaultSources: false,
allPlaceholder: "Find Parcel",
minSuggestCharacters: 4,
popEnabled: true,
popupOpenOnSelect: true,
autoSelect: false,

sources: [
{
featureLayer: new FeatureLayer({
url: "https://xxxxx/MapServer/1",
outFields: ["*"]
}),
searchFields: ["owner"],
displayField: "owner",
exactMatch: false,
outFields: ["*"],
name: "Owner S",

maxSuggestions: 20,
suggestionsEnabled: true,
minSuggestCharacters: 3
},

Thanks

Vicki 

0 Kudos
1 Reply
ViktoriaMagnis
New Contributor II

Update : I figured out that if a type in the search criteria in the search widget I get all the results but if I select it from the suggestion dropdown  I only get one. 

Vicki 

0 Kudos