Navigation Menu

Skip to content

Commit

Permalink
ii regexp: enable ".*" search with index by default
Browse files Browse the repository at this point in the history
You can disable it by defining GRN_II_REGEXP_DOT_ASTERISK_ENABLE=no
environment variable.
  • Loading branch information
kou committed Apr 13, 2017
1 parent 9d06ca0 commit 0180cc1
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 24 deletions.
8 changes: 4 additions & 4 deletions lib/ii.c
Expand Up @@ -101,7 +101,7 @@ static grn_bool grn_ii_overlap_token_skip_enable = GRN_FALSE;
static uint32_t grn_ii_builder_block_threshold_force = 0;
static uint32_t grn_ii_max_n_segments_small = MAX_PSEG_SMALL;
static uint32_t grn_ii_max_n_chunks_small = GRN_II_MAX_CHUNK_SMALL;
static grn_bool grn_ii_regexp_dot_asterisk_enable = GRN_FALSE;
static grn_bool grn_ii_regexp_dot_asterisk_enable = GRN_TRUE;

void
grn_ii_init_from_env(void)
Expand Down Expand Up @@ -207,10 +207,10 @@ grn_ii_init_from_env(void)
grn_getenv("GRN_II_REGEXP_DOT_ASTERISK_ENABLE",
grn_ii_regexp_dot_asterisk_enable_env,
GRN_ENV_BUFFER_SIZE);
if (strcmp(grn_ii_regexp_dot_asterisk_enable_env, "yes") == 0) {
grn_ii_regexp_dot_asterisk_enable = GRN_TRUE;
} else {
if (strcmp(grn_ii_regexp_dot_asterisk_enable_env, "no") == 0) {
grn_ii_regexp_dot_asterisk_enable = GRN_FALSE;
} else {
grn_ii_regexp_dot_asterisk_enable = GRN_TRUE;
}
}
}
Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Properties TABLE_NO_KEY
column_create Properties content COLUMN_SCALAR ShortText

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Properties TABLE_NO_KEY
column_create Properties content COLUMN_SCALAR ShortText

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Properties TABLE_NO_KEY
column_create Properties content COLUMN_SCALAR ShortText

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Properties TABLE_NO_KEY
column_create Properties content COLUMN_SCALAR ShortText

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR Text

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR Text

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR Text

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR Text

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR Text

Expand Down
@@ -1,5 +1,3 @@
#$GRN_II_REGEXP_DOT_ASTERISK_ENABLE=yes

table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR Text

Expand Down

0 comments on commit 0180cc1

Please sign in to comment.