11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OUTPUT<br />

Output Content<br />

The output will include the class name of the global similarity defined (if any).<br />

EXAMPLES<br />

Get the similarity implementation.<br />

curl http://localhost:8983/solr/gettingstarted/schema/similarity?wt=json<br />

{<br />

"responseHeader":{<br />

"status":0,<br />

"QTime":1},<br />

"similarity":{<br />

"class":"org.apache.solr.search.similarities.DefaultSimilarityFactory"}}<br />

Get the Default Query Operator<br />

GET / collection/schema/solrqueryparser/defaultoperator<br />

INPUT<br />

Path Parameters<br />

Key<br />

collection<br />

Description<br />

The collection (or core) name.<br />

Query Parameters<br />

The query parameters can be added to the API request after a '?'.<br />

Key Type Required Default Description<br />

wt string No json Defines the format of the response. The options are json or xml. If not<br />

specified, JSON will be returned by default.<br />

OUTPUT<br />

Output Content<br />

The output will include simply the default operator if none is defined by the user.<br />

EXAMPLES<br />

Get the default operator.<br />

curl<br />

http://localhost:8983/solr/gettingstarted/schema/solrqueryparser/defaultoperator?wt=<br />

json<br />

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

93

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

Saved successfully!

Ooh no, something went wrong!