1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>7.17.2. Prefix RK search — Groonga v10.1.1-31-g1e46ba6 documentation</title>
<link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/language_data.js"></script>
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="7.18. Configuration" href="../configuration.html" />
<link rel="prev" title="7.17.1. Geolocation search" href="geolocation_search.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">An open-source fulltext search engine and column store.</span>
</a>
</h1>
<div class="other-language-links">
<ul>
<li><a href="../../../../ja/html/reference/operations/prefix_rk_search.html">日本語</a></li>
</ul>
</div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../configuration.html" title="7.18. Configuration"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="geolocation_search.html" title="7.17.1. Geolocation search"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Groonga v10.1.1-31-g1e46ba6 documentation</a> »</li>
<li class="nav-item nav-item-1"><a href="../../reference.html" ><span class="section-number">7. </span>Reference manual</a> »</li>
<li class="nav-item nav-item-2"><a href="../operations.html" accesskey="U"><span class="section-number">7.17. </span>Operations</a> »</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">7.17.2. </span>Prefix RK search</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="prefix-rk-search">
<h1><span class="section-number">7.17.2. </span>Prefix RK search<a class="headerlink" href="#prefix-rk-search" title="Permalink to this headline">¶</a></h1>
<div class="section" id="summary">
<h2><span class="section-number">7.17.2.1. </span>Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
<p>Groonga supports prefix RK search. RK means Romaji and Kana (reading).
Prefix RK search can find registered text in katakana by query in
romaji, hiragana or katakana. Found registered texts are started with
query.</p>
<p>Prefix RK search is useful for completing Japanese text. Because
romaji is widely used to input Japanese on computer. See also
<a class="reference external" href="https://en.wikipedia.org/wiki/Japanese_input_methods">Japanese input methods on Wikipedia</a>.</p>
<p>If users can search Japanese text in romaji, users doesn’t need to
convert romaji to hiragana, katakana or kanji by themselves. For
example, if you register a reading for “日本” as “ニホン”, users can
find “日本” by “ni”, “に” or “二”.</p>
<p>The feature is helpful because it reduces one or more operations of
users.</p>
<p>This feature is used in <a class="reference internal" href="../suggest/completion.html"><span class="doc">Completion</span></a>.</p>
<p>You can use this feature in <a class="reference internal" href="../commands/select.html#select-filter"><span class="std std-ref">filter</span></a> by
<a class="reference internal" href="../functions/prefix_rk_search.html"><span class="doc">prefix_rk_search</span></a>.</p>
</div>
<div class="section" id="usage">
<h2><span class="section-number">7.17.2.2. </span>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
<p>You need <a class="reference internal" href="../tables.html#table-pat-key"><span class="std std-ref">TABLE_PAT_KEY</span></a> table for using prefix RK search.</p>
<p>You need to put reading in katakana to <code class="docutils literal notranslate"><span class="pre">TABLE_PAT_KEY</span></code> as key:</p>
<p>Execution example:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>table_create Readings TABLE_PAT_KEY ShortText --normalizer NormalizerAuto
# [[0, 1337566253.89858, 0.000355720520019531], true]
load --table Readings
[
{"_key": "ニホン"},
{"_key": "ニッポン"},
{"_key": "ローマジ"}
]
# [[0, 1337566253.89858, 0.000355720520019531], 3]
</pre></div>
</div>
<p>You can finds <code class="docutils literal notranslate"><span class="pre">ニホン</span></code> and <code class="docutils literal notranslate"><span class="pre">ニッポン</span></code> by prefix RK search with
<code class="docutils literal notranslate"><span class="pre">ni</span></code> as query from the <code class="docutils literal notranslate"><span class="pre">Readings</span></code> table.</p>
<p>You can finds <code class="docutils literal notranslate"><span class="pre">ローマジ</span></code> by prefix RK search with <code class="docutils literal notranslate"><span class="pre">r</span></code> as query
from the <code class="docutils literal notranslate"><span class="pre">Readings</span></code> table.</p>
</div>
<div class="section" id="how-to-convert-romaji-to-reading">
<h2><span class="section-number">7.17.2.3. </span>How to convert romaji to reading<a class="headerlink" href="#how-to-convert-romaji-to-reading" title="Permalink to this headline">¶</a></h2>
<p>Prefix RK search is based on JIS X 4063:2000 specification.</p>
<p>The specification was obsoleted. See <a class="reference external" href="https://ja.wikipedia.org/wiki/%E3%83%AD%E3%83%BC%E3%83%9E%E5%AD%97%E5%85%A5%E5%8A%9B">ローマ字入力 on Japanese
Wikipedia</a>
for JIS X 4063:2000.</p>
<p>Normally, you can get converted results as expected.</p>
</div>
<div class="section" id="see-also">
<h2><span class="section-number">7.17.2.4. </span>See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference internal" href="../suggest/completion.html"><span class="doc">Completion</span></a></p></li>
<li><p><a class="reference internal" href="../functions/prefix_rk_search.html"><span class="doc">prefix_rk_search</span></a></p></li>
</ul>
</div></blockquote>
</div>
</div>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="../../index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">7.17.2. Prefix RK search</a><ul>
<li><a class="reference internal" href="#summary">7.17.2.1. Summary</a></li>
<li><a class="reference internal" href="#usage">7.17.2.2. Usage</a></li>
<li><a class="reference internal" href="#how-to-convert-romaji-to-reading">7.17.2.3. How to convert romaji to reading</a></li>
<li><a class="reference internal" href="#see-also">7.17.2.4. See also</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="geolocation_search.html"
title="previous chapter"><span class="section-number">7.17.1. </span>Geolocation search</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="../configuration.html"
title="next chapter"><span class="section-number">7.18. </span>Configuration</a></p>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../configuration.html" title="7.18. Configuration"
>next</a> |</li>
<li class="right" >
<a href="geolocation_search.html" title="7.17.1. Geolocation search"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Groonga v10.1.1-31-g1e46ba6 documentation</a> »</li>
<li class="nav-item nav-item-1"><a href="../../reference.html" ><span class="section-number">7. </span>Reference manual</a> »</li>
<li class="nav-item nav-item-2"><a href="../operations.html" ><span class="section-number">7.17. </span>Operations</a> »</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">7.17.2. </span>Prefix RK search</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2009-2021, Brazil, Inc.
</div>
</body>
</html>
|