Navigation Menu

Skip to content

Commit

Permalink
doc: stop to use deprecated things
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 1, 2015
1 parent 9b00d80 commit 3267354
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions doc/locale/ja/LC_MESSAGES/reference.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.2.1\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2015-09-28 14:26+0900\n"
"PO-Revision-Date: 2015-10-01 19:39+0900\n"
"Last-Translator: Masafumi Yokoyama <yokoyama@clear-code.com>\n"
"Language-Team: Japanese\n"
"Language: ja\n"
Expand Down Expand Up @@ -8057,7 +8057,7 @@ msgstr ""
"``match_escalation_threshold`` (-1)より大きいので、検索方法をエスカレーショ"
"ンしません。そして、1つもレコードがマッチしません。"

msgid "``query_expansion``"
msgid "``query_expander``"
msgstr ""

msgid "Deprecated. Use :ref:`select-query-expander` instead."
Expand Down Expand Up @@ -17416,10 +17416,10 @@ msgstr ""
"録します::"

msgid ""
"You just add ``--query_expansion QueryExpanderTSV`` parameter to ``select`` "
"You just add ``--query_expander QueryExpanderTSV`` parameter to ``select`` "
"command::"
msgstr ""
"``select`` コマンドに ``--query_expansion QueryExpanderTSV`` パラメーターを追"
"``select`` コマンドに ``--query_expander QueryExpanderTSV`` パラメーターを追"
"加します::"

msgid ""
Expand Down
18 changes: 9 additions & 9 deletions doc/source/reference/query_expanders/tsv.rst
Expand Up @@ -22,15 +22,15 @@ Install
You need to register ``query_expanders/tsv`` as a plugin before you
use ``QueryExpanderTSV``::

register query_expanders/tsv
plugin_register query_expanders/tsv

Usage
-----

You just add ``--query_expansion QueryExpanderTSV`` parameter to
You just add ``--query_expander QueryExpanderTSV`` parameter to
``select`` command::

select --query "QUERY" --query_expansion QueryExpanderTSV
select --query "QUERY" --query_expander QueryExpanderTSV

If ``QUERY`` has registered synonyms, they are expanded. For example,
there are the following synonyms.
Expand All @@ -50,20 +50,20 @@ The table means that ``synonym 1`` and ``synonym 2`` are synonyms of

Here is an example of query expnasion that uses ``groonga`` as query::

select --query "groonga" --query_expansion QueryExpanderTSV
select --query "groonga" --query_expander QueryExpanderTSV

The above command equals to the following command::

select --query "groonga OR Senna" --query_expansion QueryExpanderTSV
select --query "groonga OR Senna" --query_expander QueryExpanderTSV

Here is another example of query expnasion that uses ``mroonga
search`` as query::

select --query "mroonga search" --query_expansion QueryExpanderTSV
select --query "mroonga search" --query_expander QueryExpanderTSV

The above command equals to the following command::

select --query "(mroonga OR (groonga MySQL)) search" --query_expansion QueryExpanderTSV
select --query "(mroonga OR (groonga MySQL)) search" --query_expander QueryExpanderTSV

It is important that registered words (``groonga`` and ``mroonga``)
are only expanded to synonyms and not registered words (``search``)
Expand All @@ -89,11 +89,11 @@ synonyms.

Here is an example of using query expnasion as spelling correction::

select --query "gronga" --query_expansion QueryExpanderTSV
select --query "gronga" --query_expander QueryExpanderTSV

The above command equals to the following command::

select --query "groonga" --query_expansion QueryExpanderTSV
select --query "groonga" --query_expander QueryExpanderTSV

The former command has a typo in ``--query`` value but the latter
command doesn't have any typos.
Expand Down

0 comments on commit 3267354

Please sign in to comment.