Page 1 of 1
OpenKM 5.0-RC1 - Keyword Search
PostPosted:Sat Nov 27, 2010 9:06 am
by suresh
The Keyword Search in this release is "Case Sensitive" making it difficult for users to use this feature.
Can you help in this regards. Where can this change be made ??
Re: OpenKM 5.0-RC1 - Keyword Search
PostPosted:Sat Nov 27, 2010 8:00 pm
by jllort
The most easiest way to change it, is on servlet making lowercase all keywords.
We had been talking about it ... but we've considered upper and lower case are different ... that's more near an end user problem than openkm. I'm not sure but I think delicios make diferences between upper and lower case ... as I said I'm not sure.
Re: OpenKM 5.0-RC1 - Keyword Search
PostPosted:Thu Dec 02, 2010 10:23 am
by suresh
Keyword search was not case sensitve in OpenKM 4.1 release, is there any special reason for the change.
I am unable to do the changes in 5.0-RC1 can you please help in understanding the lines of code and the servlet where it needs to be changed.
Because this part of the feature is used extensively by the users. I had migrated to RC1 due to IE issues in 4.1
Re: OpenKM 5.0-RC1 - Keyword Search
PostPosted:Fri Dec 03, 2010 8:57 am
by jllort
Document.java ( on properties ) references OKMPropertyServlet addKeyword and on PropertyServlet make this change
replace
Code: Select allOKMProperty.getInstance().addKeyword(null, nodePath, keyword);
to
OKMProperty.getInstance().addKeyword(null, nodePath, keyword.toLowerCase());
It might be Changed too OKMSearchServlet -> query params ( the most easies way could be done in Util.java where GWTQueryParam conversion to QueryParam , here make the same operation