<?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 Changing Default SOLR Search Boost in Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/changing-default-solr-search-boost-in-share/m-p/312605#M265735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea how I can boost the query score for a specific property in the default Share search?&amp;nbsp; I'd like to make a match in a document name score higher in the search results than a match in the document title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could do it by editing the solrconfig.xml but it doesn't appear to do anything (I tried just reloading the config and also doing a complete re-index).&amp;nbsp; Below is a section of the solrconfig.xml for the workspace store with the default qf commented out and my modified qf below that where I've increased the boost for name and reduced it for title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/alfresco/solr4/workspace-SpacesStore/conf/solrconfig.xml&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1476651827179103 jive_text_macro" data-hasrefreshed="true" data-renderedposition="183_8_1332_256" jivemacro_uid="_1476651827179103" modifiedtitle="true"&gt;&lt;P&gt;&amp;lt;requestHandler name="/browse" class="solr.SearchHandler"&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Query settings --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;str name="defType"&amp;gt;edismax&amp;lt;/str&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;str name="qf"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/str&amp;gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;str name="qf"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text^0.5 features^1.0 name^5.0 sku^1.5 id^10.0 manu^1.1 cat^1.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title^1.0 description^2.0 keywords^5.0 author^2.0 resourcename^1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/str&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;/requestHandler&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My test consisted of creating one file with the word "Test" in the name and another with the word "Test" in the title.&amp;nbsp; Regardless of how I change the solrconfig.xml the document with "Test" in the title field would always come up first when doing a search in Share for "Test" which leads me to believe that this is the not the correct location to try and change this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Oct 2016 21:18:29 GMT</pubDate>
    <dc:creator>neilecker</dc:creator>
    <dc:date>2016-10-16T21:18:29Z</dc:date>
    <item>
      <title>Changing Default SOLR Search Boost in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changing-default-solr-search-boost-in-share/m-p/312605#M265735</link>
      <description>Any idea how I can boost the query score for a specific property in the default Share search?&amp;nbsp; I'd like to make a match in a document name score higher in the search results than a match in the document title.I thought I could do it by editing the solrconfig.xml but it doesn't appear to do anything</description>
      <pubDate>Sun, 16 Oct 2016 21:18:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changing-default-solr-search-boost-in-share/m-p/312605#M265735</guid>
      <dc:creator>neilecker</dc:creator>
      <dc:date>2016-10-16T21:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Default SOLR Search Boost in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changing-default-solr-search-boost-in-share/m-p/312606#M265736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add, another option I've looked at is to override search.get.config.xml which can be used to include additional properties to use in the simple search (the default content is shown below):&lt;/P&gt;&lt;P&gt;&amp;lt;search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;default-operator&amp;gt;AND&amp;lt;/default-operator&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;default-query-template&amp;gt;%(cm:name cm:title cm:description ia:whatEvent ia:descriptionEvent lnk:title lnk:description TEXT TAG)&amp;lt;/default-query-template&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/search&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that I could maybe use the boost operator in the default-query-template like the following but that prevents any simple search from succeeding.&amp;nbsp; Anyone have any idea if the relevance scores can be affected by making a change to this template?&lt;/P&gt;&lt;P&gt;&amp;lt;default-query-template&amp;gt;%(cm:name^2.0 cm:title cm:description ia:whatEvent ia:descriptionEvent lnk:title lnk:description TEXT TAG)&amp;lt;/default-query-template&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 18:31:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changing-default-solr-search-boost-in-share/m-p/312606#M265736</guid>
      <dc:creator>neilecker</dc:creator>
      <dc:date>2016-10-25T18:31:19Z</dc:date>
    </item>
  </channel>
</rss>

