epugh commented on code in PR #4142:
URL: https://github.com/apache/solr/pull/4142#discussion_r2818155438


##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -403,85 +404,89 @@ protected void runExample(CommandLine cli, String 
exampleName) throws Exception
         SolrCLI.postJsonToSolr(
             solrClient,
             "/" + collectionName + "/schema",
-            "{\n"
-                + "        \"add-field-type\" : {\n"
-                + "          \"name\":\"knn_vector_10\",\n"
-                + "          \"class\":\"solr.DenseVectorField\",\n"
-                + "          \"vectorDimension\":10,\n"
-                + "          \"similarityFunction\":cosine\n"
-                + "          \"knnAlgorithm\":hnsw\n"
-                + "        }\n"
-                + "      }");
+            """
+                {
+                        "add-field-type" : {
+                          "name":"knn_vector_10",
+                          "class":"solr.DenseVectorField",
+                          "vectorDimension":10,
+                          "similarityFunction":cosine
+                          "knnAlgorithm":hnsw

Review Comment:
   i think this was allowed thorugh our sloppy awesome Noggit feature!  But 
going to tighten up.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to