API find results limited to 250

Hi,

Thank you again for all the work on Orthanc. Any help would be greatly appreciated:

We appear to have an issue whereby when we make requests using the tools/find API route the results are limited to 250.

We are using the LSB on 1.12.9 on Ubuntu 24.04. We have Orthanc behind Apache2 which we thought may have been the issue, but I am getting the same issue directly on the server:

curl -X POST http://localhost:8045/tools/find/ -d ‘{“Level”:“Series”,“Query”:{“Modality”:“MR”},“Expand”:true, “Limit”:3000}’ > results.test

grep -o “ExpectedNumberOfInstances” results.test | wc -l
250

I’m expecting a much higher number. Am I missing something in terms of config to allow this kind of search?

Hi @davie

Are you sure you have not set these configurations:

  // The maximum number of results for a single C-FIND request at the
  // Patient, Study or Series level. Setting this option to "0" means
  // no limit.

  // Note: this limit is also used in the /tools/find API route.
  "LimitFindResults" : 0,

  // The maximum number of results for a single C-FIND request at the
  // Instance level. Setting this option to "0" means no limit.
  // Note: this limit is also used in the /tools/find API route.
  "LimitFindInstances" : 0,

Hope this helps,

Alain.

Ah I was looking in the wrong place entirely - thank you!