lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "QueryElevationComponent" by GrantIngersoll
Date Fri, 18 Nov 2011 20:10:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "QueryElevationComponent" page has been changed by GrantIngersoll:
http://wiki.apache.org/solr/QueryElevationComponent?action=diff&rev1=15&rev2=16

  == fq ==
  Query elevation respects the standard "filter query" (fq) parameter.  That is, if the query
contains a fq parameter, all results will be within that filter even if elevate.xml adds other
documents to the result set.
  
+ == Marking Elevated Items in the Results ==
+ 
+ With Solr4.0, (https://issues.apache.org/jira/browse/SOLR-2037), you can choose to have
items that were elevated by this Component "marked" in the output with a pseudo-field by adding
in the name of the DocTransformer used as a field list input.  The default name for the DocTransformer
is "elevated" and it is automatically registered by the QueryElevationComponent.  To mark
items, simply pass in &fl=[elevated], as in:
+ {{{
+ ...&fl=id,score,[elevated]
+ }}}
+ with your request.
+ 
+ If you wish to change the name of the DocTransformer, you can configure the editorialMarkerFieldName
initialization argument to the QueryElevationComponent in the solrconfig.xml, as in:
+ {{{
+ <searchComponent name="elevate" class="org.apache.solr.handler.component.QueryElevationComponent"
>
+     <str name="queryFieldType">string</str>
+     <str name="config-file">elevate.xml</str>
+     <str name="editorialMarkerFieldName">foo</str>
+ </searchComponent>
+ }}}
+ 

Mime
View raw message