I’m writing a lucene server. I want to receive the post query like :
http://www.site.com/search?+title:google +type:website
but the post argument “+title:google +type:website” is encoded like this: “+title:google%20+type:website”
so I use URLDecoder.decode(argument,”UTF-8″) to get the original input, but I get the wrong result:
” title:goole type:website”, because the URLDecoder convert the plus sign “+” into a space character ” “. What can I do to get the decode argument without converting plus sign?
Actually All spaces will be replaced by %20 , so u can replace all the %20 to space once you get the URL string.