Users of the API can choose what text to search in a row. This allows removing some elements that contain text that you do not want to search, as well as using more aggressive regexp. For example, I want a regexp that strips more whitespace (to improve search speed) and does not concatenate words.
The method strip_html returns an object that is passed to testQuery. This is good because the returned object does not necessarily have to be a string.
A developer can implement strip_html/testQuery that performs all types of searches, not limited to string contains.
It's a very simple code change, basically move the method to options.
Users of the API can choose what text to search in a row. This allows removing some elements that contain text that you do not want to search, as well as using more aggressive regexp. For example, I want a regexp that strips more whitespace (to improve search speed) and does not concatenate words.
The method strip_html returns an object that is passed to testQuery. This is good because the returned object does not necessarily have to be a string.
A developer can implement strip_html/testQuery that performs all types of searches, not limited to string contains.
It's a very simple code change, basically move the method to options.