Kentaro Hayashi
null+****@clear*****
Wed Mar 15 10:43:53 JST 2017
Kentaro Hayashi 2017-03-15 10:43:53 +0900 (Wed, 15 Mar 2017) New Revision: ae341e04a045670223680a70e7981c3dc47c3841 https://github.com/groonga/groonga/commit/ae341e04a045670223680a70e7981c3dc47c3841 Message: doc: use vector column because it is recommended way Reported by Gurunavi, Inc. Thanks!!! Modified files: doc/source/tutorial/query_expansion.rst Modified: doc/source/tutorial/query_expansion.rst (+3 -3) =================================================================== --- doc/source/tutorial/query_expansion.rst 2017-03-10 15:00:36 +0900 (927b574) +++ doc/source/tutorial/query_expansion.rst 2017-03-15 10:43:53 +0900 (066be82) @@ -32,7 +32,7 @@ Let's create document table and synonym table. .. table_create Term TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto .. column_create Term Doc_body COLUMN_INDEX|WITH_POSITION Doc body .. table_create Synonym TABLE_PAT_KEY ShortText -.. column_create Synonym body COLUMN_SCALAR ShortText +.. column_create Synonym body COLUMN_VECTOR ShortText .. load --table Doc .. [ .. {"_key": "001", "body": "Play all night in this theater."}, @@ -40,8 +40,8 @@ Let's create document table and synonym table. .. ] .. load --table Synonym .. [ -.. {"_key": "theater", "body": "(theater OR theatre)"}, -.. {"_key": "theatre", "body": "(theater OR theatre)"}, +.. {"_key": "theater", "body": ["theater", "theatre"]}, +.. {"_key": "theatre", "body": ["theater", "theatre"]}, .. ] In this case, it doesn't occur search leakage because it creates synonym table which accepts "theatre" and "theater" as query string. -------------- next part -------------- HTML����������������������������...Download