lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "DocTransformers" by ryan
Date Sat, 26 Mar 2011 03:07:41 GMT
Dear Wiki user,

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

The "DocTransformers" page has been changed by ryan.


New page:
/!\ EXPERIMENTAL -- Since Solr 4.0

Document Transformers give you a way to modify fields that are returned to the user.


== Standard Transformers ==

By default some transformers are enabled:

=== _explain_ ===

Add explain info to the document.

can use _explain:nl_,_explain:text_,_explain:html_

=== _value_ ===

Add a constant value to a document.  For example:



this can also be configured in the solrconfig.xml with default values.  like:
<transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory"
  <int name="value">5</int>
<transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory"
  <double name="defaultValue">5</double>

=== _shard_ ===

will add the shard to the request

=== _docid_ ===

Add the internal docid to the request

View raw message