11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

http://localhost:8983/solr/techproducts/select?q=ipod&fl=id,cat,name,popularity,pr<br />

ice,score&wt=csv returns:<br />

id,cat,name,popularity,price,score<br />

IW-02,"electronics,connector",iPod & iPod Mini USB 2.0 Cable,1,11.5,0.98867977<br />

F8V7067-APL-KIT,"electronics,connector",Belkin Mobile Power Cord for iPod w/<br />

Dock,1,19.95,0.6523595<br />

MA147LL/A,"electronics,music",Apple 60 GB iPod with Video Playback<br />

Black,10,399.0,0.2446348<br />

Velocity Response Writer<br />

The VelocityResponseWriter processes the <strong>Solr</strong> response and request context through <strong>Apache</strong> Velocity<br />

templating.<br />

See Velocity Response Writer section for details.<br />

Binary Response Writer<br />

<strong>Solr</strong> also includes a Response Writer that outputs binary format for use with a Java client. See Client APIs for<br />

more details.<br />

Smile Response Writer<br />

The Smile format is a JSON-compatible binary format, described in detail here: http://wiki.fasterxml.com/SmileFo<br />

rmat.<br />

Velocity Response Writer<br />

The VelocityResponseWriter is an optional plugin available in the contrib/velocity directory. It powers the<br />

/browse user interfaces when using configurations such as "basic_configs", "techproducts", and "example/files".<br />

Its JAR and dependencies must be added (via or solr/home lib inclusion), and must be registered in solrc<br />

onfig.xml like this:<br />

<br />

${velocity.template.base.dir:}<br />

<br />

<br />

The above example shows the optional initialization and custom tool parameters used by<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!