"Fossies" - the Fresh Open Source Software Archive

Member "groonga-10.0.8/test/command/suite/select/match_columns/section/by_column/1_item.test" (22 Oct 2020, 618 Bytes) of package /linux/misc/groonga-10.0.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 table_create Memos TABLE_NO_KEY
    2 column_create Memos title COLUMN_SCALAR ShortText
    3 column_create Memos content COLUMN_SCALAR ShortText
    4 
    5 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
    6 column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
    7   Memos title,content
    8 
    9 load --table Memos
   10 [
   11 ["title", "content"],
   12 ["Groonga", "Start Groonga!"],
   13 ["Mroonga", "Start Mroonga!"],
   14 ["Rroonga", "Start Rroonga!"],
   15 ["Ruby", "Start Ruby!"],
   16 ["learn", "Learning Ruby and Groonga..."]
   17 ]
   18 
   19 select Memos \
   20   --match_columns title \
   21   --query Ruby \
   22   --output_columns "title, content, _score"