Kouhei Sutou
null+****@clear*****
Fri Aug 29 13:02:16 JST 2014
Kouhei Sutou 2014-08-29 13:02:16 +0900 (Fri, 29 Aug 2014) New Revision: 94fa85bdf75f9eed2c53fa1e848b98da2a87d41d https://github.com/groonga/groonga.org/commit/94fa85bdf75f9eed2c53fa1e848b98da2a87d41d Message: Groonga 4.0.5 has been released!!! Added files: en/_posts/2014-08-29-release.md ja/_posts/2014-08-29-release.md Added: en/_posts/2014-08-29-release.md (+59 -0) 100644 =================================================================== --- /dev/null +++ en/_posts/2014-08-29-release.md 2014-08-29 13:02:16 +0900 (4324ba0) @@ -0,0 +1,59 @@ +--- +layout: post.en +title: Groonga 4.0.5 has been released +description: Groonga 4.0.5 has been released! +--- + +## Groonga 4.0.5 has been released + +[Groonga 4.0.5](/docs/news.html#release-4-0-5) has been released! + +How to install: [Install](/docs/install.html) + +### Changes + +[In the previous release](/en/blog/2014/07/29/release.html), small improvements and fixes are main changes. In this release, there are some big improvements like the following: + + * This release supports near search in [query syntax that is used in `--query` in `select`](/docs/reference/grn_expr/query_syntax.html). We describe about it later because there is no document about it. + * This release adds functions that hilight keywords in a text. They are developed by [@naoa_y](https://twitter.com/naoa_y). He also wrote document! + * [hilight_html()](/docs/reference/functions/highlight_html.html): supports keywords in target text with `<span class="keyword">...</span>`. Use CSS how to highlight keywords. Normally, this function satisfies you. + * [hilight_full()](/docs/reference/functions/highlight_full.html): can accepts more options than `hilight_html()`. It is for advanced users. + +This release also has the following fixes. If you're using [groonga-httpd](/docs/reference/executables/groonga-httpd.html) or have a document that has the many same tokens, we recommend you upgrade your Groonga. + + * This release upgrades bundled nginx to 1.7.4. It includes some security fixes. + * This release fixes a infinite loop bug that is caused when a document has the many same tokens. + +#### Near search + +You can use [near search in script syntax that is used in `--filter` in `select`](/docs/reference/grn_expr/script_syntax.html#near-search-operator) with older releases. You can use near search in query syntax that is used in `--query` in `select` since this release. + +Normal full-text search matches a document that has all keywords in the document. + +For example, the following query matches both "Groonga is a full-text search engine." and "Search Groonga and Mroonga". + + --query 'Groonga search' + +Phrase search matches a document that has all keywords in specified order in the document. + +For example, the following query matches "Groonga search engine" but doesn't match "Groonga full-text search engine.". Because "full-text" exists between "Groonga" and "search". + + --query '"Groonga search"' + +Near search, that is available in `--query` since this release, matches a document that has all keywords in specified order in the document but accepts some keywords between specified keywords. + +For example, the following query matches both "Groonga search engine" and "Groonga is a full-text search engine.". Because near search accepts some keywords between "Groonga" and "search". + + --query '*N"Groonga search"' + +You can custom how many keywords are acceptable in near search. Put the number after `N`. The default number of acceptable keywords is 10. + +The following query accepts one keyword between specified keywords. So the query matches "Groonga is search engine" but doesn't match "Groonga is a full-text search engine." + + --query "*N1"Groonga search"' + +### Conclusion + +See [Release 4.0.5 2014/08/29](/docs/news.html#release-4-0-5) about detailed changes since 4.0.4. + +Let's search by Groonga! Added: ja/_posts/2014-08-29-release.md (+76 -0) 100644 =================================================================== --- /dev/null +++ ja/_posts/2014-08-29-release.md 2014-08-29 13:02:16 +0900 (d19a2d3) @@ -0,0 +1,76 @@ +--- +layout: post.ja +title: Groonga 4.0.5リリース +description: Groonga 4.0.5をリリースしました! +--- + +## Groonga 4.0.5リリース + +今日は肉の日ですね をリリースしました! + +それぞれの環境毎のインストール方法: [インストール](/ja/docs/install.html) + +### 変更内容 + +[前回](/ja/blog/2014/07/29/release.html) は細かな改良・修正が主でしたが、今回は次のような大きめの機能拡張が入っています。 + + * [クエリー構文(selectの--queryで指定するときの書式)](/ja/docs/reference/grn_expr/query_syntax.html) で近傍検索できるようになりました。ドキュメントはまだないので詳細を後述します。 + * 実験的ですが、キーワードハイライト用の関数を追加しました。([@naoa_yさん](https://twitter.com/naoa_y) が開発。ドキュメントも書いてくれました!) + * [hilight_html()](/ja/docs/reference/functions/highlight_html.html): 対象テキストの中にあるキーワードを `<span class="keyword">...</span>` で囲みます。どのようにハイライトするかはCSSで指定してください。通常はこの関数で十分です。 + * [hilight_full()](/ja/docs/reference/functions/highlight_full.html): `hilight_html()` よりいろいろオプションを指定できるバージョンです。上級ユーザー向けです。 + +また、次のような問題を修正しています。[groonga-httpd](/ja/docs/reference/executables/groonga-httpd.html) を使っている方、1つの文書に同じトークンが大量に含まれる方はアップグレードをオススメします。 + + * バンドルしているnginxを1.7.4に更新しました。セキュリティー関連の修正を含んでいます。 + * 1つの文書に同じトークンが大量に含まれている場合、インデックス構築時に無限ループが発生する問題を修正しました。 + +#### 近傍検索 + +これまで、 [スクリプト構文(selectの--filterで指定するときの書式)では近傍検索できた](/ja/docs/reference/grn_expr/script_syntax.html#near-search-operator) (スクリプト構文で近傍検索するときのドキュメントはあります)のですが、今回のリリースからクエリー構文( `select` の `--query` で指定するときの書式)でもできるようになりました。 + +通常の検索ではキーワードが文書中のどこかに含まれていればヒットします。 + +例えば、次のクエリーを考えます。 + + --query '渋谷 ラーメン' + +この場合は、「渋谷でラーメンを食べた。」もヒットしますし、「新宿でラーメンを食べた。その後、渋谷に行った。」もヒットします。 + +フレーズ検索ではキーワードが指定した順番に出現していればヒットします。 + +例えば、次のクエリーを考えます。このクエリーは「渋谷」、「で」、「ラーメン」が順番に出現すればヒットします。 + + --query '"渋谷 で ラーメン"' + +この場合は、「渋谷でラーメンを食べた。」はヒットしますが、「渋谷で味噌ラーメンを食べた。」はヒットしません。「で」と「ラーメン」の間に「味噌」が入っているからです。 + +今回から `--query` でも指定できるようになった近傍検索は少し緩いフレーズ検索のような挙動になります。キーワードの出現した順番も大事ですが、キーワードの間にいくつか他のキーワードが入っていてもヒットします。 + +例えば、次のクエリーを考えます。このクエリーは「渋谷」、「ラーメン」が順番に出現すればヒットします。「渋谷」と「ラーメン」の間に10個までなら他のキーワードが入っていてもヒットします。 + + --query '*N"渋谷 ラーメン"' + +この場合は、「渋谷でラーメンを食べた。」もヒットしますし、「渋谷で味噌ラーメンを食べた。」もヒットします。「渋谷でラーメン」は「渋谷」と「ラーメン」の間に「で」が入っていますが、間に入っているキーワードが1個なのでヒットします。「渋谷で味噌ラーメン」も「で」と「味噌」が入っていますが2個なのでヒットします。 + +間に何個別のキーワードを許容するかは `N` の後に指定します。 + +次の例は1個まで間にキーワードを許容します。「渋谷でラーメン」はヒットしますが、「渋谷で味噌ラーメン」はヒットしません。 + + --query "*N1"渋谷 ラーメン"' + +公式ドキュメントには `--query` で使うときの説明はまだありませんが( `--filter` で使うときの説明はあります)、ぜひ試してみて自分のブログやQiitaなどに使い方をまとめてみてください! + +### イベントのお知らせ + +来月は、次のGroonga関連イベントがあります。都合のつくGroongaユーザーのみなさんはぜひ参加してください! + + * [ConoHa presents - Groonga "How-To" Talks](http://groonga.doorkeeper.jp/events/12676) + * この勉強会のテーマは「How-To」です。参加者がGroongaの具体的な使い方を勉強できる会を目指します。MroongaやRroongaなどGroonga関連プロジェクトも扱います。 + * 日時: 2014-09-03(水)19:30 + * 場所: [GMOインターネットグループ シナジーカフェ GMO Yours](http://www.conoha.jp/community/access) + +### さいごに + +4.0.4からの詳細な変更点は [4.0.5リリース 2014/08/29](/ja/docs/news.html#release-4-0-5) を確認してください。 + +それでは、Groongaでガンガン検索してください! -------------- next part -------------- HTML����������������������������...Download