<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Solr search results depend on Accept-Language http header in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302938#M256068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a webscript which searches for nodes that have a certain string stored in a certain property. This is a name property, and by name, i mean people names. The end users of this application will be mostly Spanish speaking, and the names stored in these properties will also mostly be Spanish names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the interesting part. I run the webscript (which returns an ajax response) and tell it to search for nodes that have "Mario" in that property. On my machine, everything works fine, and only "Mario"s show up. On my co-worker's machine however, he gets "Maria"s as well as "Mario"s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked his request headers and compared them to mine. Every header was practically the same, except for the Accept-Language header. Mine was sent with the value of "en-US,en;q=0.8". I don't remember his exactly, but it started with "es-HN".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, this was no surprise. My OS and browser are in english, and his are in spanish. So I modified that request header and used his value, and sure enough, I got the same response from the webscript as he did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know how to "fix" this. I realize this is probably a feature, but I would like to know how to disable it. If I search for "Mario" i would like to find nodes who contain this word, exactly as it is, regardless of the user's browser's language settings. It may be surrounded by other characters and what not, but the whole word, no less, MUST be there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched online for answers but have come up with very little. The word "stemming" came up a few times. I also came across people who mentioned a StandardAnalyzer and a SpanishSnowballAnalyzer. I have only a vague idea of what these are but no clue how to use them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 20:23:33 GMT</pubDate>
    <dc:creator>mando_alvarado_</dc:creator>
    <dc:date>2013-04-23T20:23:33Z</dc:date>
    <item>
      <title>Solr search results depend on Accept-Language http header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302938#M256068</link>
      <description>I have a webscript which searches for nodes that have a certain string stored in a certain property. This is a name property, and by name, i mean people names. The end users of this application will be mostly Spanish speaking, and the names stored in these properties will also mostly be Spanish name</description>
      <pubDate>Tue, 23 Apr 2013 20:23:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302938#M256068</guid>
      <dc:creator>mando_alvarado_</dc:creator>
      <dc:date>2013-04-23T20:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Solr search results depend on Accept-Language http header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302939#M256069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had a similar issue like this once. What is this property defined like? In the data model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a property with type &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;d:mltext&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; (as in multilingual) text, and so when my users entered stuff in one locale, it would only be shown to other users with the same locale. For others (ie. English, like in your case), this was not seen. It was a custom description-like field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ended up adding a new property, then I created a script that found ALL instances of this type with anything written in this property and then I copied everything to this new property. When I found stuff in both languages, I just added both texts. Now, when it was done, I configured Share to show the new prop instead, and later just removed the old one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is stuff around Wiki and (old) forums, maybe you can do some googling. Here's a starting point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Multilingual_Document_Support" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Multilingual_Document_Support&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:34:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302939#M256069</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-04-24T18:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Solr search results depend on Accept-Language http header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302940#M256070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can have fixed tokenisation across all languages (and not have language dependent stemming).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remove all the &amp;lt;config&amp;gt;/alfresco/model/dataTypeAnalyzers_??.properties files and leave only the base property file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then configure this how you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The localised analysis for indexing and query using the lucene sub-system is picked up from these files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For SOLR see &amp;lt;SOLR_HOME&amp;gt;\&amp;lt;CoreName&amp;gt;\alfrescoResources\alfresco\model&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 19:22:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302940#M256070</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2013-05-09T19:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Solr search results depend on Accept-Language http header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302941#M256071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue. Is there any ways to disable this behaviour?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:26:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-search-results-depend-on-accept-language-http-header/m-p/302941#M256071</guid>
      <dc:creator>playerro</dc:creator>
      <dc:date>2019-08-16T14:26:15Z</dc:date>
    </item>
  </channel>
</rss>

