开发者

How to search a string for different tenses?

开发者 https://www.devze.com 2023-02-03 06:17 出处:网络
I can use Stemmers, Filters etc. No problem. But what about this case, for 开发者_如何学编程example the source text contains the phrase:

I can use Stemmers, Filters etc. No problem.

But what about this case, for 开发者_如何学编程example the source text contains the phrase:

The fox made a jump.

User has entered: fox AND make Results = 0;

The question is how to process irregular forms of words?


There aren't that many irregular verbs. Get a list of the most common ones like here and use it to do a find/replace in your query string to replace "make" with ("make" OR "made") before submitting.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号