Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 03663abacfb5829946c324cb3e985338 > files > 417

groonga-doc-1.2.7-1.fc14.x86_64.rpm




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>7.1.4. groonga HTTPサービス &mdash; groonga v1.2.6ドキュメント</title>
    
    <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.2.6',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/translations.js"></script>
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
    <link rel="top" title="groonga v1.2.6ドキュメント" href="../index.html" />
    <link rel="up" title="7.1. 実行ファイル" href="../executables.html" />
    <link rel="next" title="7.1.5. groonga-suggest-create-dataset" href="groonga-suggest-create-dataset.html" />
    <link rel="prev" title="7.1.3. groonga実行ファイル" href="groonga.html" /> 
  </head>
  <body>
<div class="header">
  <h1 class="title">
    <a id="top-link" href="../index.html">
      <span class="project">groonga</span>
      <span class="separator">-</span>
      <span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
    </a>
  </h1>

  <div class="other-language-links">
    <ul>
      <li><a href="../../../en/html/executables/groonga-http.html"><img src="../_static/us.png" alt="English"></a></li>
    </ul>
  </div>
</div>
  

    <div class="related">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="総合索引"
             accesskey="I">索引</a></li>
        <li class="right" >
          <a href="groonga-suggest-create-dataset.html" title="7.1.5. groonga-suggest-create-dataset"
             accesskey="N">次へ</a> |</li>
        <li class="right" >
          <a href="groonga.html" title="7.1.3. groonga実行ファイル"
             accesskey="P">前へ</a> |</li>
        <li><a href="../index.html">groonga v1.2.6ドキュメント</a> &raquo;</li>
          <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
          <li><a href="../executables.html" accesskey="U">7.1. 実行ファイル</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="groonga-http">
<h1>7.1.4. groonga HTTPサービス<a class="headerlink" href="#groonga-http" title="このヘッドラインへのパーマリンク">¶</a></h1>
<div class="section" id="id1">
<h2>7.1.4.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>groonga HTTPサービス</p>
</div>
<div class="section" id="id2">
<h2>7.1.4.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="highlight-none"><div class="highlight"><pre>groonga -d --protocol http DB_PATH
</pre></div>
</div>
</div>
<div class="section" id="id3">
<h2>7.1.4.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>groongaサーバを起動する時に--protocolオプションにhttpを指定すると、httpで通信可能になります。また、--document-root によって静的ページのパスを指定すると、httpリクエストに指定されたURIに対応する、パス配下に置かれたファイルを出力します。</p>
<p>groongaにはHTML + JavaScriptで実装された管理ツールが標準で付属しています。--document-rootを指定しない場合は管理ツールがインストールされているパスが指定されたとみなされますので、ウェブブラウザでhttp://hostname:port/にアクセスすると、管理ツールを利用できます。</p>
</div>
<div class="section" id="id4">
<h2>7.1.4.4. コマンド<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>httpを指定して起動したgroongaサーバに対しても、他のモードで起動したgroongaと同じコマンドが使用できます。</p>
<p>コマンドは、複数の引数をとります。引数にはそれぞれ名前があります。また、特殊な引数である「output_type」と「command_version」があります。</p>
<p>スタンドアロンやクライアントモードでは、コマンドは以下のような形式で指定します。</p>
<blockquote>
<div><p>形式1: コマンド名 値1 値2,..</p>
<p>形式2: コマンド名 --引数名1 値1 --引数名2 値2,..</p>
</div></blockquote>
<p>形式1と形式2は混在させることができます。これらの形式では、output_typeという引数名を用いてoutput_typeを指定します。</p>
<p>httpでgroongaサーバと通信する際には、以下のような形式でコマンドを指定します。:</p>
<div class="highlight-none"><div class="highlight"><pre>形式: /d/コマンド名.output_type?引数名1=値1&amp;引数名2=値2&amp;...
</pre></div>
</div>
<p>ただし、コマンド名、引数名、値はURLエンコードが必要です。</p>
<p>GETメソッドのみが使用可能です。</p>
<p>output_typeにはjson, tsv, xmlが指定可能です。</p>
<p>command_versionはコマンドの仕様の互換性を指定します。詳細は <a class="reference internal" href="../command_version.html"><em>コマンドバージョン</em></a> を参照してください。</p>
</div>
<div class="section" id="id5">
<h2>7.1.4.5. 返値<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>output_typeの指定に従って、コマンドの実行結果を出力します。</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">目次</a></h3>
  <ul>
<li><a class="reference internal" href="#">7.1.4. groonga HTTPサービス</a><ul>
<li><a class="reference internal" href="#id1">7.1.4.1. 名前</a></li>
<li><a class="reference internal" href="#id2">7.1.4.2. 書式</a></li>
<li><a class="reference internal" href="#id3">7.1.4.3. 説明</a></li>
<li><a class="reference internal" href="#id4">7.1.4.4. コマンド</a></li>
<li><a class="reference internal" href="#id5">7.1.4.5. 返値</a></li>
</ul>
</li>
</ul>

  <h4>前のトピックへ</h4>
  <p class="topless"><a href="groonga.html"
                        title="前の章へ">7.1.3. groonga実行ファイル</a></p>
  <h4>次のトピックへ</h4>
  <p class="topless"><a href="groonga-suggest-create-dataset.html"
                        title="次の章へ">7.1.5. groonga-suggest-create-dataset</a></p>
  <h3>このページ</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/executables/groonga-http.txt"
           rel="nofollow">ソースコードを表示</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>クイック検索</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="検索" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    モジュール、クラス、または関数名を入力してください
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="総合索引"
             >索引</a></li>
        <li class="right" >
          <a href="groonga-suggest-create-dataset.html" title="7.1.5. groonga-suggest-create-dataset"
             >次へ</a> |</li>
        <li class="right" >
          <a href="groonga.html" title="7.1.3. groonga実行ファイル"
             >前へ</a> |</li>
        <li><a href="../index.html">groonga v1.2.6ドキュメント</a> &raquo;</li>
          <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
          <li><a href="../executables.html" >7.1. 実行ファイル</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2011, Brazil, Inc.
    </div>
  </body>
</html>