If term gets stemmed to fewer than 3 characters, form validation fails

spjsche - February 8, 2008 - 16:21
Project:Porter-Stemmer
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Trying to search for the word "innings" on a 4.7.11, 5.7 or even on the Drupal website returns the

"You must include at least one positive keyword with 3 characters or more." status error, even though I am entering 7 characters.

Does someone have an explanation for this issue.

I also believe this is a baseball term as well.

Thanks
Stephen

#1

spjsche - February 18, 2008 - 21:08

Just to point out that it does not occur on Drupal 6.

#2

Kristi Wachter - March 26, 2008 - 03:03

I tested this on a 5.7 install and 4.7.5 and didn't encounter the "3 characters or more" message (instead, I got "Your search yielded no results," which would be expected on the sites I tested).

It IS still happening here on drupal.org. Weird.

Can you still reproduce this issue? Do you notice any difference whether you're logged in or not? Do you have any contributed modules installed?

#3

keith.smith - March 26, 2008 - 03:13

Note that I really have no idea, but perhaps d.o. is running PorterStemmer and "innings" is reduced to "inn". Though "inn" is still three characters or more; perhaps "inn" gets further incorrectly shortened to "in". Just thinking aloud, really.

#4

spatz4000 - March 26, 2008 - 12:14

Searching for "inn" brings these results:

http://drupal.org/search/node/inn

#5

spjsche - March 27, 2008 - 07:54

Yes, I do have portstemmer on both 4 and 5 versions, I will disable them and try again.

Thanks for the response.

#6

robertDouglass - April 10, 2008 - 13:41
Title:Searching for the "Cricket Term" "innings" returns "You must include at least one positive keyword with 3 characters or more."» If term gets stemmed to fewer than 3 characters, form validation fails
Project:Drupal» Porter-Stemmer
Version:4.7.11» 6.x-2.x-dev
Component:search.module» Code

By reading the thread I'm guessing that this is a porter stemmer issue. Renaming and catagorizing.

#7

spjsche - April 11, 2008 - 10:14

Quite correct and thanks

#8

nafis - May 19, 2008 - 03:46

I am facing same problem on drupal 6.2.

Can any one help me to fix it ??

#9

jhodgdon - July 14, 2009 - 23:42
Status:active» needs review

This is now fixed in the HEAD branch, as of commit http://drupal.org/cvs?commit=237490 ; marking Needs Review because it should be tested.

See issue #511930: Upgrade to Porter 2 algorithm for more information on what is in the HEAD branch and how to download it. At least, that information should be there in a few minutes.

#10

jhodgdon - August 4, 2009 - 15:33
Status:needs review» fixed

The 6.x-2.0 version of Porter Stemmer has now been released (should be on the Project page in the next 5 minutes). So this issue is now fixed.

I've also removed the 6.x-2.x-dev (HEAD) version from view on the Project page, since there is nothing currently in there that isn't in the official release. If we start developing again, I'll put it back in view.

#11

System Message - August 18, 2009 - 15:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.