[Groonga-commit] groonga/groonga at 872aa5a [master] query: remove "query_" prefix from option name

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Wed Dec 28 14:49:34 JST 2016


Kouhei Sutou	2016-12-28 14:49:34 +0900 (Wed, 28 Dec 2016)

  New Revision: 872aa5a817abfbf38830c284b130c5264f3bfdd9
  https://github.com/groonga/groonga/commit/872aa5a817abfbf38830c284b130c5264f3bfdd9

  Message:
    query: remove "query_" prefix from option name
    
    Because "query" is obvious in the context.

  Modified files:
    lib/proc.c
  Renamed files:
    test/command/suite/select/function/query/options/expander.expected
      (from test/command/suite/select/function/query/options/query_expander.expected)
    test/command/suite/select/function/query/options/expander.test
      (from test/command/suite/select/function/query/options/query_expander.test)

  Modified: lib/proc.c (+1 -1)
===================================================================
--- lib/proc.c    2016-12-28 14:46:08 +0900 (e770d95)
+++ lib/proc.c    2016-12-28 14:49:34 +0900 (fab7bad)
@@ -1816,7 +1816,7 @@ run_query(grn_ctx *ctx, grn_obj *table,
 
 #define KEY_EQUAL(name)                                                 \
           (key_size == strlen(name) && memcmp(key, name, strlen(name)) == 0)
-          if (KEY_EQUAL("query_expander")) {
+          if (KEY_EQUAL("expander")) {
             query_expander_name = value;
           } else if (KEY_EQUAL("default_mode")) {
             default_mode = parse_mode(ctx, value, "query()");

  Renamed: test/command/suite/select/function/query/options/expander.expected (+1 -1) 96%
===================================================================
--- test/command/suite/select/function/query/options/query_expander.expected    2016-12-28 14:46:08 +0900 (1979cae)
+++ test/command/suite/select/function/query/options/expander.expected    2016-12-28 14:49:34 +0900 (e5a0671)
@@ -18,7 +18,7 @@ load --table Memos
 ["Learning Ruby and Groonga..."]
 ]
 [[0,0.0,0.0],5]
-select   --table Memos   --filter 'query("content", "rroonga", {"query_expander": "QueryExpanderTSV"})'
+select   --table Memos   --filter 'query("content", "rroonga", {"expander": "QueryExpanderTSV"})'
 [
   [
     0,

  Renamed: test/command/suite/select/function/query/options/expander.test (+1 -1) 88%
===================================================================
--- test/command/suite/select/function/query/options/query_expander.test    2016-12-28 14:46:08 +0900 (6af78b8)
+++ test/command/suite/select/function/query/options/expander.test    2016-12-28 14:49:34 +0900 (2662e34)
@@ -22,4 +22,4 @@ load --table Memos
 
 select \
   --table Memos \
-  --filter 'query("content", "rroonga", {"query_expander": "QueryExpanderTSV"})'
+  --filter 'query("content", "rroonga", {"expander": "QueryExpanderTSV"})'
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index