Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Common problems

Smart Search: API search limited to 1000 items

Last updated on 9 May 2025

Admin
Search

Overview

When doing a search through the M-Files API and the vault uses Smart Search, large values for the parameter for the results limit may be ignored and you may get only up to 1000 results (see details on the search limit arguments for REST API - the limit querystring parameter and COM API - the MaxResultCount argument to SearchForObjectsByConditionsEx).

Smart Search is optimized for end-user experience and typically when a user searches, they want the most relevant results in a manageable set of results - the goal is that the object they are looking for is in the top few results so that the user experience is good. Thus, a performance optimization is in place that can truncate search results to 1000 by default.

Solution

There is an improvement logged for the M-Files Server so that API searches will respect the limit provided as an argument with ID 161747. You can monitor the release notes to see about its implementation.

Workaround

Depending on your use case, there are different things you may be able to do.

For example:

  • See if you can add filters to reduce the amount of results you get and process in the first place.
  • Use a segmented search if using the COM API.
  • Consider if there is a different way to get such large quantities of data - for example, through replication structure exports, or data export for reporting.
  • Increase the "Maximum Number of Results for Pagination" property of the Smart Search index. Note that this can come with a performance hit for all searches, so if you do that you may need to monitor the performance of the system.
    image.png

Still need help?