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 "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.
http://wiki.apache.org/solr/DocTransformers

--------------------------------------------------

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

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

<<TableOfContents>>


== 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:

_value:hello_

_value:int:10_

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>
<transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory"
>
  <double name="defaultValue">5</double>
</transformer>
}}}



=== _shard_ ===

will add the shard to the request



=== _docid_ ===

Add the internal docid to the request





Mime
View raw message