FindTask with more than 500 values

Discussion created by harchet on Apr 8, 2013
Latest reply on Apr 9, 2013 by Schnoerkel

I want to make a findTask that gives me all the features with this searchText:

findParams.searchText = " ";

The problem is the map service is limited to 500 features per findTask, is there any way of asking the server for the information in another way or creating a loop that is able to ask for the features sequentially?

Sadly I am not able to edit the map service so I can't change the limit of the answers that the findTask is sending me.

Thanks in advance

PD: here you can find the code that retrieves the data
  findTask = new esri.tasks.FindTask("https://maps.cern.ch/ArcGIS/rest/services/General/loc/MapServer/");

  findParams = new esri.tasks.FindParameters();
  findParams.returnGeometry = true;
  findParams.layerIds = [6,7,8,10,11,15,16,17,19];
  findParams.outSpatialReference = map.spatialReference;
  findParams.searchText = " ";
  findTask.execute(findParams,function (results) {
 //parse results and add to autocomplete widget
 dojo.forEach(results, function(value, index){
    }, function (error) {
        alert("Error: " + error);