Search features use min and max tuples to configure the search bounds. When min values are greater than their corresponding max values, search features behave in strange ways.
Either the corresponding values should be normalized (with or without a warning) or the feature should fail to load.
Demonstration
The attached video demonstrates this issue. The incorrect attempt uses "min": [7, 7, 7], "max": [0, 0, 0] while the correct attempt uses "min": [0, 0, 0], "max": [7, 7, 7]. In the appropriate case, the search zone is supposed to form an 8-size cube. As seen, the incorrect attempt extends in a line.
Reproduction
The demo video is taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.
Thank you for helping us improve Minecraft! We saved your files: