[Groonga-commit] groonga/groonga at 342e901 [master] doc: don't use one line JSON style

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 23 21:33:16 JST 2014


Kouhei Sutou	2014-07-23 21:33:16 +0900 (Wed, 23 Jul 2014)

  New Revision: 342e901f74a98b9a97108c9c07b0c0323c240b43
  https://github.com/groonga/groonga/commit/342e901f74a98b9a97108c9c07b0c0323c240b43

  Message:
    doc: don't use one line JSON style

  Modified files:
    doc/source/tutorial/data.rst

  Modified: doc/source/tutorial/data.rst (+3 -1)
===================================================================
--- doc/source/tutorial/data.rst    2014-07-23 21:32:36 +0900 (11634fe)
+++ doc/source/tutorial/data.rst    2014-07-23 21:33:16 +0900 (033e630)
@@ -156,7 +156,9 @@ The previous example used a regular column, so each record could have at most on
 .. include:: ../example/tutorial/data-8.log
 .. column_create --table Site --name links --flags COLUMN_VECTOR --type Site
 .. load --table Site
-.. [{"_key":"http://example.org/","links":["http://example.net/","http://example.org/","http://example.com/"]}]
+.. [
+.. {"_key":"http://example.org/","links":["http://example.net/","http://example.org/","http://example.com/"]},
+.. ]
 .. select --table Site --output_columns _key,title,links._key,links.title --query title:@this
 
 The only difference at the first step is the `flags` parameter that specifies to create a vector column. The `type` parameter of the :doc:`/reference/commands/column_create` command is the same as in the previous example. Then, the :doc:`/reference/commands/load` command registers three links from "http://example.org/" to "http://example.net/", "http://example.org/" and "http://example.com/". After that, the links are confirmed by the :doc:`/reference/commands/select` command. In this case, the primary keys and the titles are output as arrays because links._key and links.title are specified to the `output_columns` parameter.
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index