Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrGlassfish" page has been changed by HeinrichSpreiter: http://wiki.apache.org/solr/SolrGlassfish?action=diff&rev1=4&rev2=5 Comment: Describe how to use sun-web.xml to enable UTF-8 Note the '''METHOD.POST''' which obviously POSTs the data as parameters which Glassfish does seem to support. That bypasses the issue of running a non-Embedded Solr instance on Glassfish with UTF-8 queries under Solrj. - - + === UTF-8 and sun-web.xml === + You can also create sun-web.xml inside $GLASSFISHHOME/glassfishv3/domains/domainname/applications/<solr-directory>/WEB-INF with the following content: + {{{ + <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd"> + <sun-web-app error-url=""> + <parameter-encoding default-charset="UTF-8"/> + </sun-web-app> + }}} If you need to add another solr instance follow the these steps: 1) cd to $GLASSFISHHOME/glassfishv3/domains/''domainname''/autodeploy directory mentioned above.