2008년 07월 25일
[SOLR] solr와 tomcat연동시 한글검색이 않돼는 경우
solr를 설치하고 tomcat과 연동을 한 후 색인까지 했는데 검색이 않돼는 경우가 발생하였다.
혹시 색인이 잘못된 것은 아닐까?
몇번을 확인했지만 영어로 검색한 검색결과화면에서 정상적으로 한글이 보여지는 걸 보니 색인은 잘된 것 같은데...
몇시간의 삽질 끝에 인터넷에서 다음의 글을 찾아서 셋팅하니 아주 잘 보인다.
--------------
The conclusion is that setting URIEncoding="UTF-8" in thesection in server.xml
출처 : http://www.mail-archive.com/solr-user@lucene.apache.org/msg05541.html
--------------
URIEncoding을 설명하는 tomcat manual에는 다음과 같이 나온다.
URIEncoding
This specifies the character encoding used to decode the URI bytes,after %xx decoding the URL. If not specified, ISO-8859-1 will be used.
혹시 색인이 잘못된 것은 아닐까?
몇번을 확인했지만 영어로 검색한 검색결과화면에서 정상적으로 한글이 보여지는 걸 보니 색인은 잘된 것 같은데...
몇시간의 삽질 끝에 인터넷에서 다음의 글을 찾아서 셋팅하니 아주 잘 보인다.
--------------
The conclusion is that setting URIEncoding="UTF-8" in the
출처 :
--------------
URIEncoding을 설명하는 tomcat manual에는 다음과 같이 나온다.
URIEncoding
This specifies the character encoding used to decode the URI bytes,after %xx decoding the URL. If not specified, ISO-8859-1 will be used.
이 글과 관련있는 글을 자동검색한 결과입니다 [?]
- Tomcat 과 IIS 연동시 URL 의 한글 파라메터가 깨진다? by killy
- 레일스에서 사용가능한 검색 플러그인들 by thinkr
- RHEL3, RH9에서 레드햇RPM버전 APM에 톰캣 연동하는 법 by ydhoney
# by | 2008/07/25 14:06 | SOLR | 트랙백 | 덧글(0)





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]