HAYASHI Kentaro
null+****@clear*****
Fri Oct 26 13:09:27 JST 2012
HAYASHI Kentaro 2012-10-26 13:09:27 +0900 (Fri, 26 Oct 2012) New Revision: 779ba1d89ffa2f37984b28a1bbc6b1f8d1327179 https://github.com/groonga/groonga.github.com/commit/779ba1d89ffa2f37984b28a1bbc6b1f8d1327179 Log: doc en: add 2.0.8 release entry Added files: en/_posts/2012-10-29-release.textile Added: en/_posts/2012-10-29-release.textile (+136 -0) 100644 =================================================================== --- /dev/null +++ en/_posts/2012-10-29-release.textile 2012-10-26 13:09:27 +0900 (be77700) @@ -0,0 +1,136 @@ +--- +layout: post.en +title: Groonga 2.0.8 has been released +description: Groonga 2.0.8 has been released! +published: false +--- + +h2. Groonga fulltext search engine meetup + +We hold a event groonga fulltext search engine session next month! + +* Location: VOYAGE GROUP, Inc. Shibuya First Place Bldg. 8F Seminar room Shinsen-cho 8-16, Shibuya, Tokyo "Google Maps":https://www.google.co.jp/maps?q=35.6553195,139.6937795 +* Date: 2012/11/29 19:00 - 21:00 JST (Open: 18:30, Party starts 21:00) +* Reservation: via "ATND event page":http://atnd.org/events/33070 + +See "ATND event page":http://atnd.org/events/33070 about event details. + +Now, we are looking for the speakers!! Deadline for submission is Nov 04 23:59, 2012 (JST). There is a benefit for the speaker that fee of party is free. + +NOTE: ATND is the web site which support to announce event and keep track of who's attending. + +h2. Groonga 2.0.8 has been released + +"Groonga 2.0.8":/docs/news.html#release-2-0-8 has been released! + +How to install: "Install":/docs/install.html + +There are two topics for this release. + +* Supported custom query expansion by plugin +* Supported Ubuntu 12.10 (Quantal Quetzal) + +h3. Supported custom query expansion by plugin + +This release began to support custom query expansion by plugin. + +Groonga already supports query expansion, but it requires table which stores synonyms beforehand. + +Here is the more concrete example. + +Schema definition: + +<pre> + table_create Memos TABLE_NO_KEY + column_create Memos content COLUMN_SCALAR ShortText + table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram + column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content + table_create Synonyms TABLE_PAT_KEY ShortText + column_create Synonyms words COLUMN_SCALAR ShortText +</pre> + +Sample data: + +<pre> + load --table Memos + [ + ["content"], + ["Start groonga!"], + ["Start mroonga!"], + ["Start rroonga!"], + ["Start Ruby!"], + ["Learning Ruby and groonga..."], + ] + + load --table Synonyms + [ + ["_key", "words"], + ["groonga", "(groonga OR rroonga OR mroonga)"] + ] +</pre> + +If you want to search 'groonga' with expanded query 'rroonga' and 'mroonga', you need to setup synonyms table 'Synonyms' at first. +Then, you can search 'groonga' with automatically expanded keyword 'rroonga' and 'mroonga' from content column of Memos table. + +Here is the query to search 'groonga' with query expansion. + +<pre> + > select --table Memos --query_expansion Synonyms.words --match_columns content --query groonga + + [[0,1350898793.34538,0.00174403190612793], + [ + [[4], + [ + ["_id","UInt32"],["content","ShortText"]], + [1,"Start groonga!"], + [5,"Learning Ruby and groonga..."], + [3,"Start rroonga!"], + [2,"Start mroonga!"] + ] + ] + ] +</pre> + +On the other hand, custom query expansion by plugin has supported. As proof of concept, example plugin @QueryExpanderTSV@ is bundled in this release. + +Here is the more concrete example how to use @QueryExpanderTSV �� . + +Using @QueryExpanderTSV@, you doesn't need to setup table for synonyms anymore. There are two differences between builtin query expansion and @QueryExpanderTSV �� . + +* Describe tab separated text file +* Specify plugin name to @--query_expansion@ + +Here is the example about tab separated file with synonyms. + +<pre> + groonga[TAB]groonga[TAB]rroonga[TAB]mroonga +</pre> + +Here is the query to search 'groonga' with @QueryExpanderTSV �� . + +<pre> + > select --table Memos --query_expansion QueryExpanderTSV --match_columns content --query groonga +</pre> + +This query is equivalent to following: + +<pre> + --query "((groonga) OR (rroonga) OR (mroonga))" +</pre> + +The synonyms template file is installed as @/etc/groonga/synonyms.tsv �� . You can customize this file on your purpose. + +If you want to put somewhere else, set @GRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE@ environment variable. + +h3. Supported Ubuntu 12.10 (Quantal Quetzal) + + +Ubuntu 12.10 Quantal Quetzal had been released Oct 18, 2012. + +This release began to support Ubuntu 12.10 by providing deb packages. + +h3. Conclusion + +See "Release 2.0.8 2012/10/29":/docs/news.html#release-2-0-8 about detailed changes since 2.0.7. + +Let's search by groonga! -------------- next part -------------- HTML����������������������������...下載