Changeset 6278


Ignore:
Timestamp:
06/05/15 12:23:27 (9 years ago)
Author:
Twan Goosen
Message:

added boosting of records by hierarchy weight
refs #750

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-ticket761/vlo-solr/src/main/solr_conf/solr/collection1/conf/solrconfig.xml

    r6271 r6278  
    369369        name^8 description^4 keywords^2 languageCode^2 country^2 organisation^2 collection^1 modality^1 genre^1 continent^.5 id^.1
    370370     </str>
     371     <str name="bf">
     372         <!-- boost by hierarchy weight (reverse order because lower numbers indicate a higher level -->
     373         rord(_hierarchyWeight)
    371374     <!-- TODO: use bf to boost records with one or more resources -->
     375     </str>
    372376       <!--
    373377       <int name="rows">10</int>
     
    911915    <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>
    912916
    913     <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
    914   -->
    915 
    916   <!-- XSLT response writer transforms the XML output by any xslt file found
    917        in Solr's conf/xslt directory.  Changes to xslt files are checked for
    918        every xsltCacheLifetimeSeconds. 
    919    -->
    920   <queryResponseWriter name="xslt" class="org.apache.solr.response.XSLTResponseWriter">
    921     <int name="xsltCacheLifetimeSeconds">5</int>
    922   </queryResponseWriter>
    923 
    924 
    925   <!-- example of registering a query parser
    926   <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>
    927   -->
    928 
    929   <!-- example of registering a custom function parser
    930   <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />
    931   -->
    932 
    933   <!-- config for the admin interface -->
    934   <admin>
    935     <defaultQuery>solr</defaultQuery>
    936 
    937     <!-- configure a healthcheck file for servers behind a loadbalancer
    938     <healthcheck type="file">server-enabled</healthcheck>
    939     -->
    940   </admin>
     917      <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
     918    -->
     919
     920    <!-- XSLT response writer transforms the XML output by any xslt file found
     921        in Solr's conf/xslt directory.  Changes to xslt files are checked for
     922        every xsltCacheLifetimeSeconds. 
     923    -->
     924    <queryResponseWriter name="xslt" class="org.apache.solr.response.XSLTResponseWriter">
     925        <int name="xsltCacheLifetimeSeconds">5</int>
     926    </queryResponseWriter>
     927
     928
     929    <!-- example of registering a query parser
     930    <queryParser name="lucene" class="org.apache.solr.search.LuceneQParserPlugin"/>
     931    -->
     932
     933    <!-- example of registering a custom function parser
     934    <valueSourceParser name="myfunc" class="com.mycompany.MyValueSourceParser" />
     935    -->
     936
     937    <!-- config for the admin interface -->
     938    <admin>
     939        <defaultQuery>solr</defaultQuery>
     940
     941        <!-- configure a healthcheck file for servers behind a loadbalancer
     942        <healthcheck type="file">server-enabled</healthcheck>
     943        -->
     944    </admin>
    941945
    942946</config>
Note: See TracChangeset for help on using the changeset viewer.