Hi Everyone,
I'm trying to put together the search component by using a layer as the search source, and I'm getting maybe the first 1000 to 2000 records in a sorted order, and can't return anything else past those records from the search. I have roughly 4,000 rows I would like to search on.
I have updated the JSON definition of the layer to return a max record count of 5000, which is working for drop downs in Survey123. But I can't get this same result from the search widget in experience builder or the search component in the ArcGIS Maps SDK for JavaScript.
When I search on my layer, I can return the addresses in the beginning of a sorted result like "1 CRATER LN", "10 CRATER LN", but "6 CRATER LN" can't be found.
const sourceProperties = [
{
layer: featureLayerAddresses,
searchFields: ["Address"],
displayField: "Address",
exactMatch: false,
outFields: ["Address", "SRAddress", "TaxlotSitus", "TaxLotID", "SRPropID"],
name: "Addresses",
placeholder: "example: 1 CRATER LN",
minSuggestCharacters: 4
}
];
search.sources = new Collection(sourceProperties);