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.

The Standard Query Parser's Response<br />

By default, the response from the standard query parser contains one block, which is unnamed. If the<br />

debug parameter is used, then an additional block will be returned, using the name "debug". This will<br />

contain useful debugging info, including the original query string, the parsed query string, and explain info for<br />

each document in the block. If the explainOther parameter is also used, then additional explain info<br />

will be provided for all the documents matching that query.<br />

Sample Responses<br />

This section presents examples of responses from the standard query parser.<br />

The URL below submits a simple query and requests the XML Response Writer to use indentation to make the<br />

XML response more readable.<br />

Results:<br />

http://localhost:8983/solr/techproducts/select?q=id:SP2514N<br />

<br />

<br />

01<br />

<br />

<br />

electronicshard drive<br />

7200RPM, 8MB cache, IDE Ultra ATA-133<br />

NoiseGuard, SilentSeek technology, Fluid Dynamic Bearing (FDB)<br />

motor<br />

SP2514N<br />

true<br />

Samsung Electronics Co. Ltd.<br />

Samsung SpinPoint P120 SP2514N - hard drive - 250 GB -<br />

ATA-133<br />

6<br />

92.0<br />

SP2514N<br />

<br />

<br />

<br />

Here's an example of a query with a limited field list.<br />

http://localhost:8983/solr/techproducts/select?q=id:SP2514N&fl=id+name<br />

Results:<br />

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

253

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

Saved successfully!

Ooh no, something went wrong!