johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 8 forks source link

Count of search results unexpectedly changes when regex flag set #150

Closed xjamesb closed 2 years ago

xjamesb commented 2 years ago

Summary

I expect that when searching for a string such as

formidable id

I will get the same number of search results with the regex flag present and absent

Actual Behaviour

Actually I get 60 results when the regex flag is not present and 25 results when it is present.

Steps to reproduce

Screenshot

Environment

Current

johngodley commented 2 years ago

When searching regex it will only tell you how many results it's found so far. You need to page through the database to know the total.

xjamesb commented 2 years ago

When searching regex it will only tell you how many results it's found so far. You need to page through the database to know the total.

I have verified that changing the number of items per page increases the count to the expected number.

I think that the difference in counts is a BUG not a FEATURE and the issue should remain open. However it is your call!

Thanks for writing a brilliant plugin.

johngodley commented 2 years ago

That's how it is intended to work so I'll close this issue.