You might also have to do this, which is what we figured out in my office:
1) Edit /etc/tomcat7/server.xml and change
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"/>
to
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8"/>
2) Restart tomcat
That took care of character encoding in the search box.
Aaron Helton (Mr.)
United Nations
Department of Public Information
Outreach Division
From: siriom siriom <sir...@gmail.com>
To: Adan <adan.ro...@gmail.com>, Hilton Gibson <hilton.gib...@gmail.com>,
Cc: dspace-tech@lists.sourceforge.net
Date: 24/11/2014 01:02 PM
Subject: Re: [Dspace-tech] Help with Latin Languages
First all thanks for your replies but i still havent gotten this fixed.
This is a copy from my /dspace/solr/search/conf/schema.xml
<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- in this example, we will only use synonyms at query time
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
-->
<!-- Case insensitive stop word removal.
add enablePositionIncrements=true in both the index and query
analyzers to leave a 'gap' for more accurate phrase queries.
-->
<filter class="solr.ASCIIFoldingFilterFactory"></filter>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.ICUFoldingFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"></filter>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
As you can see I've added <filter class="solr.ASCIIFoldingFilterFactory"></filter> twice , once to each analyzer.
This is whats happening:
If i search for "accao" if find tons of relevant matches including "acção" in the title, if on the other hand i search for "acção"
i get "searching for all of Dspace for" screen except its looking for "acçao"
Its all garbled ... and therefore wont find any relevant hits ....
Ive done a re index -b as requested.
Im running Dspace 4.2
Please help,
On Thu, Nov 20, 2014 at 12:04 PM, Adan <adan.ro...@gmail.com> wrote:
Hi anonimous
You can begin searching <fieldType name=”text” ……> in schema.xml and change
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt">
with
<filter class="solr.ASCIIFoldingFilterFactory"></filter>
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt">
then do a
dspace update-discovery-index -b for 3.x or a dspace index-discovery -b for a 4.x version
Its explained at http://www.arvo.es/dspace/configurando-solr/ (in spanish)
regards
Adán Román Ruiz
ARVO Consultores
Can anyone give me a hand with enabling solr to properly search for non english words ? More specifically portuguese words with "ã" or "é" for example.
Right now a search for "são" will find nothing but a search for "sao" will find "são".
I was told some changes need to be made to schema.xml ?
Anyone out there using solr with a non english language that could send me a schema.xml ?
Thanks.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
El
software de antivirus Avast ha analizado este correo electrónico en busca
de virus. www.avast.com |
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration &
more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration &
more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette