diff --git a/solr/solr-ref-guide/src/collections-api.adoc b/solr/solr-ref-guide/src/collections-api.adoc index 94893ff7f45..2fc6849ba66 100644 --- a/solr/solr-ref-guide/src/collections-api.adoc +++ b/solr/solr-ref-guide/src/collections-api.adoc @@ -121,7 +121,7 @@ The response will include the status of the request and the new core names. If t [source,text] ---- -http://localhost:8983/solr/admin/collections?action=CREATE&name=newCollection&numShards=2&replicationFactor=1 +http://localhost:8983/solr/admin/collections?action=CREATE&name=newCollection&numShards=2&replicationFactor=1&wt=xml ---- *Output* @@ -204,7 +204,7 @@ The response will include the status of the request and the cores that were relo [source,text] ---- -http://localhost:8983/solr/admin/collections?action=RELOAD&name=newCollection +http://localhost:8983/solr/admin/collections?action=RELOAD&name=newCollection&wt=xml ---- *Output* @@ -284,7 +284,7 @@ Split shard1 of the "anotherCollection" collection. [source,text] ---- -http://localhost:8983/solr/admin/collections?action=SPLITSHARD&collection=anotherCollection&shard=shard1 +http://localhost:8983/solr/admin/collections?action=SPLITSHARD&collection=anotherCollection&shard=shard1&wt=xml ---- *Output* @@ -389,7 +389,7 @@ Create 'shard-z' for the "anImplicitCollection" collection. [source,text] ---- -http://localhost:8983/solr/admin/collections?action=CREATESHARD&collection=anImplicitCollection&shard=shard-z +http://localhost:8983/solr/admin/collections?action=CREATESHARD&collection=anImplicitCollection&shard=shard-z&wt=xml ---- *Output* @@ -443,7 +443,7 @@ Delete 'shard1' of the "anotherCollection" collection. [source,text] ---- -http://localhost:8983/solr/admin/collections?action=DELETESHARD&collection=anotherCollection&shard=shard1 +http://localhost:8983/solr/admin/collections?action=DELETESHARD&collection=anotherCollection&shard=shard1&wt=xml ---- *Output* @@ -496,7 +496,7 @@ Create an alias named "testalias" and link it to the collections named "anotherC [source,text] ---- -http://localhost:8983/solr/admin/collections?action=CREATEALIAS&name=testalias&collections=anotherCollection,testCollection +http://localhost:8983/solr/admin/collections?action=CREATEALIAS&name=testalias&collections=anotherCollection,testCollection&wt=xml ---- *Output* @@ -524,6 +524,15 @@ The output will contain a list of aliases with the corresponding collection name === Examples using LISTALIASES +*Input* + +List the existing aliases, requesting information as XML from Solr: + +[source,text] +---- +http://localhost:8983/solr/admin/collections?action=LISTALIASES&wt=xml +---- + *Output* [source,xml] @@ -565,7 +574,7 @@ Remove the alias named "testalias". [source,text] ---- -http://localhost:8983/solr/admin/collections?action=DELETEALIAS&name=testalias +http://localhost:8983/solr/admin/collections?action=DELETEALIAS&name=testalias&wt=xml ---- *Output* @@ -605,7 +614,7 @@ Delete the collection named "newCollection". [source,text] ---- -http://localhost:8983/solr/admin/collections?action=DELETE&name=newCollection +http://localhost:8983/solr/admin/collections?action=DELETE&name=newCollection&wt=xml ---- *Output* @@ -682,7 +691,7 @@ Request ID to track this action which will be </admin/ping?distrib=true + http://localhost:8983/solr//admin/ping?distrib=true&wt=xml ---- This command will ping all replicas of the given collection name for a response diff --git a/solr/solr-ref-guide/src/result-clustering.adoc b/solr/solr-ref-guide/src/result-clustering.adoc index c9bdf632b24..fd83d4bb36e 100644 --- a/solr/solr-ref-guide/src/result-clustering.adoc +++ b/solr/solr-ref-guide/src/result-clustering.adoc @@ -55,7 +55,7 @@ bin/solr start -e techproducts -Dsolr.clustering.enabled=true You can now try out the clustering handler by opening the following URL in a browser: -`\http://localhost:8983/solr/techproducts/clustering?q=*:*&rows=100` +`\http://localhost:8983/solr/techproducts/clustering?q=*:*&rows=100&wt=xml` The output XML should include search hits and an array of automatically discovered clusters at the end, resembling the output shown here: diff --git a/solr/solr-ref-guide/src/schemaless-mode.adoc b/solr/solr-ref-guide/src/schemaless-mode.adoc index f351bd63191..a33ba924587 100644 --- a/solr/solr-ref-guide/src/schemaless-mode.adoc +++ b/solr/solr-ref-guide/src/schemaless-mode.adoc @@ -220,7 +220,7 @@ For example, adding a CSV document will cause unknown fields to be added, with f [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update?commit=true" -H "Content-type:application/csv" -d ' +curl "http://localhost:8983/solr/gettingstarted/update?commit=true&wt=xml" -H "Content-type:application/csv" -d ' id,Artist,Album,Released,Rating,FromDistributor,Sold 44C,Old Shews,Mead for Walking,1988-08-13,0.01,14,0' ---- @@ -303,7 +303,7 @@ Once a field has been added to the schema, its field type is fixed. As a consequ [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update?commit=true" -H "Content-type:application/csv" -d ' +curl "http://localhost:8983/solr/gettingstarted/update?commit=true&wt=xml" -H "Content-type:application/csv" -d ' id,Description,Sold 19F,Cassettes by the pound,4.93' ---- diff --git a/solr/solr-ref-guide/src/spell-checking.adoc b/solr/solr-ref-guide/src/spell-checking.adoc index 9d01c33b9d3..c8c4c67d7d1 100644 --- a/solr/solr-ref-guide/src/spell-checking.adoc +++ b/solr/solr-ref-guide/src/spell-checking.adoc @@ -249,7 +249,7 @@ For example, given a dictionary called `foo`, `spellcheck.foo.myKey=myValue` wou Using Solr's `bin/solr -e techproducts` example, this query shows the results of a simple request that defines a query using the `spellcheck.q` parameter, and forces the collations to require all input terms must match: -`\http://localhost:8983/solr/techproducts/spell?df=text&spellcheck.q=delll+ultra+sharp&spellcheck=true&spellcheck.collateParam.q.op=AND` +`\http://localhost:8983/solr/techproducts/spell?df=text&spellcheck.q=delll+ultra+sharp&spellcheck=true&spellcheck.collateParam.q.op=AND&wt=xml` Results: diff --git a/solr/solr-ref-guide/src/the-standard-query-parser.adoc b/solr/solr-ref-guide/src/the-standard-query-parser.adoc index 603651e70d2..360efbcc47a 100644 --- a/solr/solr-ref-guide/src/the-standard-query-parser.adoc +++ b/solr/solr-ref-guide/src/the-standard-query-parser.adoc @@ -50,7 +50,7 @@ This section presents examples of responses from the standard query parser. The URL below submits a simple query and requests the XML Response Writer to use indentation to make the XML response more readable. -`\http://localhost:8983/solr/techproducts/select?q=id:SP2514N` +`\http://localhost:8983/solr/techproducts/select?q=id:SP2514N&wt=xml` Results: @@ -77,7 +77,7 @@ Results: Here's an example of a query with a limited field list. -`\http://localhost:8983/solr/techproducts/select?q=id:SP2514N&fl=id+name` +`\http://localhost:8983/solr/techproducts/select?q=id:SP2514N&fl=id+name&wt=xml` Results: diff --git a/solr/solr-ref-guide/src/the-stats-component.adoc b/solr/solr-ref-guide/src/the-stats-component.adoc index 15fa2bbcbd6..501b1f979d6 100644 --- a/solr/solr-ref-guide/src/the-stats-component.adoc +++ b/solr/solr-ref-guide/src/the-stats-component.adoc @@ -163,7 +163,7 @@ Additional "Expert" local params are supported in some cases for affecting the b Here we compute some statistics for the price field. The min, max, mean, 90th, and 99th percentile price values are computed against all products that are in stock (`q=*:*` and `fq=inStock:true`), and independently all of the default statistics are computed against all products regardless of whether they are in stock or not (by excluding that filter). [source,text] -http://localhost:8983/solr/techproducts/select?q=*:*&fq={!tag=stock_check}inStock:true&stats=true&stats.field={!ex=stock_check+key=instock_prices+min=true+max=true+mean=true+percentiles='90,99'}price&stats.field={!key=all_prices}price&rows=0&indent=true +http://localhost:8983/solr/techproducts/select?q=*:*&fq={!tag=stock_check}inStock:true&stats=true&stats.field={!ex=stock_check+key=instock_prices+min=true+max=true+mean=true+percentiles='90,99'}price&stats.field={!key=all_prices}price&rows=0&indent=true&wt=xml [source,xml] ---- diff --git a/solr/solr-ref-guide/src/transforming-result-documents.adoc b/solr/solr-ref-guide/src/transforming-result-documents.adoc index 7696d862d74..3543d8e517f 100644 --- a/solr/solr-ref-guide/src/transforming-result-documents.adoc +++ b/solr/solr-ref-guide/src/transforming-result-documents.adoc @@ -54,7 +54,7 @@ Modifies every document to include the exact same value, as if it were a stored [source,plain] ---- -q=*:*&fl=id,greeting:[value v='hello'] +q=*:*&fl=id,greeting:[value v='hello']&wt=xml ---- The above query would produce results like the following: diff --git a/solr/solr-ref-guide/src/uploading-data-with-index-handlers.adoc b/solr/solr-ref-guide/src/uploading-data-with-index-handlers.adoc index 4adf4b9d701..ed62c75e2ae 100644 --- a/solr/solr-ref-guide/src/uploading-data-with-index-handlers.adoc +++ b/solr/solr-ref-guide/src/uploading-data-with-index-handlers.adoc @@ -164,7 +164,7 @@ Short requests can also be sent using a HTTP GET command, if enabled in <