Where did you put this piece of code in search.jsp?I'm using Liferay 6.1 GA3, and I tried via EXT to override lucene's configuration (override beans from search-spring.xml, since in Liferay 6.1 GA3 there are no more lucene's configuration on portal-ext.properties), but I messed up with the search.Before that I tried this solution, I put this code after String keywords = ParamUtil.getString(request, "keywords"); on search.jsp, but there are no effect at all on the search, even if I put programmatically a word to keywords. I tried to put this code as well after keywords = keywords.replace(/^\s+|\s+$/, ''); on functions, but both solutions didn't work for me.