Skip to content

Commit

Permalink
doc logical_range_filter: add a explanation for "order" parameter (#961)
Browse files Browse the repository at this point in the history
* doc logical_range_filter: add a explanation for "order" parameter

* doc logical_range_filter: fix a expression in English for easy to read
  • Loading branch information
komainu8 committed May 17, 2019
1 parent 36d01fe commit 5798dbc
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/files.am
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ absolute_source_files = \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/logical_table_existent.log \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/logical_table_nonexistent.log \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/offset.log \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/order_existent.log \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/output_columns.log \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/post_filter.log \
$(top_srcdir)/doc/source/example/reference/commands/logical_range_filter/sort_keys_on_shared_key.log \
Expand Down Expand Up @@ -1219,6 +1220,7 @@ source_files_relative_from_doc_dir = \
source/example/reference/commands/logical_range_filter/logical_table_existent.log \
source/example/reference/commands/logical_range_filter/logical_table_nonexistent.log \
source/example/reference/commands/logical_range_filter/offset.log \
source/example/reference/commands/logical_range_filter/order_existent.log \
source/example/reference/commands/logical_range_filter/output_columns.log \
source/example/reference/commands/logical_range_filter/post_filter.log \
source/example/reference/commands/logical_range_filter/sort_keys_on_shared_key.log \
Expand Down
17 changes: 17 additions & 0 deletions doc/locale/ja/LC_MESSAGES/reference.po
Original file line number Diff line number Diff line change
Expand Up @@ -8494,6 +8494,23 @@ msgstr ""
msgid "``order``"
msgstr ""

msgid ""
"Specifies order of search result. Specify ``ascending`` or ``descending`` as "
"the value of this parameter."
msgstr ""
"検索結果の順序を指定します。``ascending`` もしくは ``descending`` を指定しま"
"す。"

msgid ""
"If we set ``ascending`` in this parameter, search results are sorted by "
"ascending order based on ``shared_key``. If we set ``descending`` in this "
"parameter, search results are sorted by descending order based on "
"``shared_key``."
msgstr ""
"``ascending`` を設定した場合は、 ``shard_key`` を基準に検索結果は昇順に並べら"
"れます。``descending`` を設定した場合は、 ``shard_key`` を基準に検索結果は降"
"順に並べられます。"

msgid ""
"Specifies the filter text that is processed after ``filtered`` stage dynamic "
"columns are generated. You can use ``post_filter`` to filter by ``filtered`` "
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Execution example::

logical_range_filter --logical_table Entries --shard_key created_at --order "descending"
# [
# [
# 0,
# 1557403984.311448,
# 0.0003597736358642578
# ],
# [
# [
# [
# "_key",
# "ShortText"
# ],
# [
# "content",
# "Text"
# ],
# [
# "created_at",
# "Time"
# ],
# [
# "n_likes",
# "UInt32"
# ],
# [
# "tag",
# "ShortText"
# ]
# ],
# [
# "Good-bye Tritonn",
# "I also migrated all Tritonn system!",
# 1436371200,
# 3,
# "Senna"
# ],
# [
# "Good-bye Senna",
# "I migrated all Senna system!",
# 1436367600,
# 3,
# "Senna"
# ],
# [
# "Mroonga",
# "I also started to use Mroonga. It's also very fast! Really fast!",
# 1436288400,
# 15,
# "Groonga"
# ],
# [
# "Groonga",
# "I started to use Groonga. It's very fast!",
# 1436284800,
# 10,
# "Groonga"
# ],
# [
# "The first post!",
# "Welcome! This is my first post!",
# 1436281200,
# 5,
# "Hello"
# ]
# ]
# ]
10 changes: 9 additions & 1 deletion doc/source/reference/commands/logical_range_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,15 @@ TODO: Add examples
``order``
""""""""""

TODO
Specifies order of search result.
Specify ``ascending`` or ``descending`` as the value of this parameter.

If we set ``ascending`` in this parameter, search results are sorted by ascending order based on ``shared_key``.
If we set ``descending`` in this parameter, search results are sorted by descending order based on ``shared_key``.

.. groonga-command
.. include:: ../../example/reference/commands/logical_range_filter/order_existent.log
.. logical_range_filter --logical_table Entries --shard_key created_at --order "descending"
.. _logical-range-filter-search-related-parameters:

Expand Down

0 comments on commit 5798dbc

Please sign in to comment.