Navigation Menu

Skip to content

Commit

Permalink
doc html_untag: remove unused columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 28, 2013
1 parent dd8db8a commit 51a17e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Expand Up @@ -2,7 +2,7 @@ Execution example::

load --table WebClips
[
{"url": "http://groonga.org", "tag": ["groonga"], "content": "groonga is <span class='emphasize'>fast</span>"},
{"url": "http://mroonga.org", "tag": ["mroonga"], "content": "mroonga is <span class=\"emphasize\">fast</span>"},
{"_key": "http://groonga.org", "content": "groonga is <span class='emphasize'>fast</span>"},
{"_key": "http://mroonga.org", "content": "mroonga is <span class=\"emphasize\">fast</span>"},
]
# [[0, 1337566253.89858, 0.000355720520019531], 2]
@@ -1,10 +1,6 @@
Execution example::

table_create WebClips TABLE_NO_KEY
# [[0, 1337566253.89858, 0.000355720520019531], true]
column_create WebClips url COLUMN_SCALAR ShortText
table_create WebClips TABLE_HASH_KEY ShortText
# [[0, 1337566253.89858, 0.000355720520019531], true]
column_create WebClips content COLUMN_SCALAR ShortText
# [[0, 1337566253.89858, 0.000355720520019531], true]
column_create WebClips tag COLUMN_VECTOR ShortText
# [[0, 1337566253.89858, 0.000355720520019531], true]
8 changes: 3 additions & 5 deletions doc/source/reference/functions/html_untag.txt
Expand Up @@ -41,19 +41,17 @@ Sample schema:

.. groonga-command
.. include:: ../../example/reference/functions/html_untag/usage_setup_schema.log
.. table_create WebClips TABLE_NO_KEY
.. column_create WebClips url COLUMN_SCALAR ShortText
.. table_create WebClips TABLE_HASH_KEY ShortText
.. column_create WebClips content COLUMN_SCALAR ShortText
.. column_create WebClips tag COLUMN_VECTOR ShortText
Sample data:

.. groonga-command
.. include:: ../../example/reference/functions/html_untag/usage_setup_data.log
.. load --table WebClips
.. [
.. {"url": "http://groonga.org", "tag": ["groonga"], "content": "groonga is <span class='emphasize'>fast</span>"},
.. {"url": "http://mroonga.org", "tag": ["mroonga"], "content": "mroonga is <span class=\"emphasize\">fast</span>"},
.. {"_key": "http://groonga.org", "content": "groonga is <span class='emphasize'>fast</span>"},
.. {"_key": "http://mroonga.org", "content": "mroonga is <span class=\"emphasize\">fast</span>"},
.. ]
Here is the simple usage of ``html_untag`` function which strips HTML tags from content of column.
Expand Down

0 comments on commit 51a17e7

Please sign in to comment.