Debian Codegraph @

doc/source/reference/suggest/introduction.rst

raw
1 .. -*- rst -*-
2
3 Introduction
4 ============
5
6 The suggest feature in Groonga provides the following features:
7
8 * Completion
9 * Correction
10 * Suggestion
11
12 Completion
13 ----------
14
15 Completion helps user input. If user inputs a partial word,
16 Groonga can return complete words from registered
17 words.
18
19 For example, there are registered words:
20
21 * "groonga"
22 * "complete"
23 * "correction"
24 * "suggest"
25
26 An user inputs "co" and groonga returns "complete" and
27 "correction" because they starts with "co".
28
29 An user inputs "sug" and groonga returns "suggest" because
30 "suggest" starts with "sug".
31
32 An user inputs "ab" and groonga returns nothing because no
33 word starts with "ab".
34
35 Correction
36 ----------
37
38 Correction also helps user input. If user inputs a wrong
39 word, groonga can return correct words from registered
40 correction pairs.
41
42 For example, there are registered correction pairs:
43
44 +------------+--------------+
45 | wrong word | correct word |
46 +============+==============+
47 | grroonga | groonga |
48 +------------+--------------+
49 | gronga | groonga |
50 +------------+--------------+
51 | gronnga | groonga |
52 +------------+--------------+
53
54 An user inputs "gronga" and groonga returns "groonga" because
55 "gronga" is in wrong word and corresponding correct word is
56 "groonga".
57
58 An user inputs "roonga" and groonga returns nothing because
59 "roonga" isn't in wrong word.
60
61 Suggestion
62 ----------
63
64 Suggestion helps that user filters many found documents. If
65 user inputs a query, groonga can return new queries that has
66 more additional keywords from registered related query
67 pairs.
68
69 For example, there are registered related query pairs:
70
71 +----------------------------+--------------------------+
72 | keyword | related query |
73 +============================+==========================+
74 | groonga | groonga search engine |
75 +----------------------------+--------------------------+
76 | search | Google search |
77 +----------------------------+--------------------------+
78 | speed | groonga speed |
79 +----------------------------+--------------------------+
80
81 An user inputs "groonga" and groonga returns "groonga search
82 engine" because "groonga" is in keyword column and related
83 query column is "groonga search engine".
84
85 An user inputs "MySQL" and groonga returns nothing because
86 "MySQL" isn't in keyword column values.
87
88 Learning
89 --------
90
91 The suggest feature requires registered data before using
92 the feature. Those data can be registered from user inputs.
93 Groonga-suggest-httpd and groonga-suggest-learner commands
94 are provided for the propose.