Skip to content

Commit

Permalink
doc: create diretroy for groonga-suggest-httpd
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 26, 2016
1 parent b1b1f1a commit 607bfc8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 31 deletions.
18 changes: 8 additions & 10 deletions doc/files.am
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,10 @@ absolute_source_files = \
$(top_srcdir)/doc/source/example/reference/commands/truncate/truncate_column.log \
$(top_srcdir)/doc/source/example/reference/commands/truncate/truncate_table.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-httpd.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd-launch-lerner.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd-launch.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd-learn.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd-request.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd-setup.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd/launch-lerner.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd/launch.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd/learn.log \
$(top_srcdir)/doc/source/example/reference/executables/groonga-suggest-httpd/setup.log \
$(top_srcdir)/doc/source/example/reference/functions/between/usage_age.log \
$(top_srcdir)/doc/source/example/reference/functions/between/usage_setup.log \
$(top_srcdir)/doc/source/example/reference/functions/between/usage_value.log \
Expand Down Expand Up @@ -1111,11 +1110,10 @@ source_files_relative_from_doc_dir = \
source/example/reference/commands/truncate/truncate_column.log \
source/example/reference/commands/truncate/truncate_table.log \
source/example/reference/executables/groonga-httpd.log \
source/example/reference/executables/groonga-suggest-httpd-launch-lerner.log \
source/example/reference/executables/groonga-suggest-httpd-launch.log \
source/example/reference/executables/groonga-suggest-httpd-learn.log \
source/example/reference/executables/groonga-suggest-httpd-request.log \
source/example/reference/executables/groonga-suggest-httpd-setup.log \
source/example/reference/executables/groonga-suggest-httpd/launch-lerner.log \
source/example/reference/executables/groonga-suggest-httpd/launch.log \
source/example/reference/executables/groonga-suggest-httpd/learn.log \
source/example/reference/executables/groonga-suggest-httpd/setup.log \
source/example/reference/functions/between/usage_age.log \
source/example/reference/functions/between/usage_setup.log \
source/example/reference/functions/between/usage_value.log \
Expand Down

This file was deleted.

15 changes: 10 additions & 5 deletions doc/source/reference/executables/groonga-suggest-httpd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

.. groonga-command
.. database: groonga-suggest-httpd
.. % killall lt-groonga-suggest-learner || :
.. % killall lt-groonga-suggest-httpd || :
``groonga-suggest-httpd``
=========================
Expand Down Expand Up @@ -58,7 +60,7 @@ You need to create a dataset by :doc:`groonga-suggest-create-dataset`.
Here is an example that creates ``query`` dataset:

.. groonga-command
.. include:: ../../example/reference/executables/groonga-suggest-httpd-setup.log
.. include:: ../../example/reference/executables/groonga-suggest-httpd/setup.log
.. % groonga-suggest-create-dataset ${DB_PATH} query
:doc:`groonga-suggest-create-dataset` outputs executed commands. You
Expand Down Expand Up @@ -106,7 +108,7 @@ omits the instruction for creating ``query`` dataset:
.. % groonga-suggest-create-dataset ${DB_PATH} query
.. groonga-command
.. include:: ../../example/reference/executables/groonga-suggest-httpd-launch-lerner.log
.. include:: ../../example/reference/executables/groonga-suggest-httpd/launch-lerner.log
.. % groonga-suggest-learner --daemon ${DB_PATH}
The ``groonga-suggest-learner`` process opens two endpoints at
Expand All @@ -132,7 +134,7 @@ communicates :doc:`groonga-suggest-learner`:
.. database: groonga-suggest-httpd
.. groonga-command
.. include:: ../../example/reference/executables/groonga-suggest-httpd-launch.log
.. include:: ../../example/reference/executables/groonga-suggest-httpd/launch.log
.. % groonga-suggest-httpd --send-endpoint 'tcp://127.0.0.1:1234' --receive-endpoint 'tcp://127.0.0.1:1235' --daemon ${DB_PATH}
TODO: httpd and learner communication doesn't work...
Expand All @@ -158,7 +160,7 @@ Here are example requests to learn user input "Groonga" in ``query``
dataset::

.. groonga-command
.. include:: ../../example/reference/executables/groonga-suggest-httpd-learn.log
.. include:: ../../example/reference/executables/groonga-suggest-httpd/learn.log
.. % curl 'http://localhost:8080/?i=127.0.0.1&l=query&s=92619&t=complete&q=G'
.. % curl 'http://localhost:8080/?i=127.0.0.1&l=query&s=93850&t=complete&q=Gr'
.. % curl 'http://localhost:8080/?i=127.0.0.1&l=query&s=94293&t=complete&q=Gro'
Expand Down Expand Up @@ -393,4 +395,7 @@ See also
* :doc:`/reference/commands/suggest`

.. groonga-command
.. % killall lt-groonga-suggest-learner lt-groonga-suggest-httpd
.. % killall lt-groonga-suggest-learner || :
.. % killall lt-groonga-suggest-httpd || :
.. % killall -KILL lt-groonga-suggest-learner || :
.. % killall -KILL lt-groonga-suggest-httpd || :

0 comments on commit 607bfc8

Please sign in to comment.