Examine icon indicating copy to clipboard operation
Examine copied to clipboard

Hardcoded default limit of max 500 search results is not obvious

Open arknu opened this issue 1 year ago • 0 comments

I just had a strange issue where searching was returning unexpected results. Eventually, it turned out that Examine has a default hardcoded limit of only returning 500 search results: https://github.com/Shazwazza/Examine/blob/56c89711b6e6d60d143b162068fdb774857b7052/src/Examine.Core/Search/QueryOptions.cs#L7 I would expect that not passing in QueryOptions would simply return all the results. If I want to limit the results, I'll pass in QueryOptions as appropriate.

I find the current behavior very strange and unintuitive. There is nothing in the API design to indicate that there is a limit, I had to check the source code to find out.

arknu avatar Feb 20 '24 15:02 arknu