This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 1164e78085e0045b13c055aafdfe511c1f5dabd5
Author: Tilman Hausherr <[email protected]>
AuthorDate: Mon Jun 30 20:02:34 2025 +0200

    TIKA-4327: make json texts beautiful
---
 .../pipes/solr/tests/TikaPipesSolrTestBase.java    | 28 +++++++++++++++-------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git 
a/tika-integration-tests/tika-pipes-solr-integration-tests/src/test/java/org/apache/tika/pipes/solr/tests/TikaPipesSolrTestBase.java
 
b/tika-integration-tests/tika-pipes-solr-integration-tests/src/test/java/org/apache/tika/pipes/solr/tests/TikaPipesSolrTestBase.java
index b09930ed2..d9d33d6af 100644
--- 
a/tika-integration-tests/tika-pipes-solr-integration-tests/src/test/java/org/apache/tika/pipes/solr/tests/TikaPipesSolrTestBase.java
+++ 
b/tika-integration-tests/tika-pipes-solr-integration-tests/src/test/java/org/apache/tika/pipes/solr/tests/TikaPipesSolrTestBase.java
@@ -168,10 +168,16 @@ public abstract class TikaPipesSolrTestBase {
             HttpPost postAddRoot = new HttpPost(solrUrl + "/schema");
             postAddRoot.setHeader("Content-Type", "application/json");
             postAddRoot.setEntity(new StringEntity(
-                    "{\n" + "  \"add-field\":{\n" + "     
\"name\":\"path\",\n" +
-                            "     \"type\":\"string\",\n" + "     
\"indexed\":true,\n" +
-                            "     \"stored\":true, \n" + "     
\"docValues\":false \n" + "  }\n" +
-                            "}"));
+                    """
+                    {
+                      "add-field":{
+                         "name":"path",
+                         "type":"string",
+                         "indexed":true,
+                         "stored":true, 
+                         "docValues":false 
+                      }
+                    }"""));
             CloseableHttpResponse resp = client.execute(postAddRoot);
             assertEquals(200, resp.getStatusLine().getStatusCode());
         }
@@ -182,10 +188,16 @@ public abstract class TikaPipesSolrTestBase {
             HttpPost postAddRoot = new HttpPost(solrUrl + "/schema");
             postAddRoot.setHeader("Content-Type", "application/json");
             postAddRoot.setEntity(new StringEntity(
-                    "{\n" + "  \"replace-field\":{\n" + "     
\"name\":\"_root_\",\n" +
-                            "     \"type\":\"string\",\n" + "     
\"indexed\":true,\n" +
-                            "     \"stored\":true, \n" + "     
\"docValues\":false \n" + "  }\n" +
-                            "}"));
+                    """
+                    {
+                      "replace-field":{
+                         "name":"_root_",
+                         "type":"string",
+                         "indexed":true,
+                         "stored":true, 
+                         "docValues":false 
+                      }
+                    }"""));
             CloseableHttpResponse resp = client.execute(postAddRoot);
             assertEquals(200, resp.getStatusLine().getStatusCode());
         }

Reply via email to