Kouhei Sutou
null+****@clear*****
Wed Dec 23 18:12:23 JST 2015
Kouhei Sutou 2015-12-23 18:12:23 +0900 (Wed, 23 Dec 2015) New Revision: 40b7fe7cda9bd2a393aaccb4f1afdd2dda03a7e4 https://github.com/pgroonga/pgroonga/commit/40b7fe7cda9bd2a393aaccb4f1afdd2dda03a7e4 Message: Don't use range search with lexicon for full text search Modified files: pgroonga.c Modified: pgroonga.c (+16 -0) =================================================================== --- pgroonga.c 2015-12-23 17:07:35 +0900 (236623a) +++ pgroonga.c 2015-12-23 18:12:23 +0900 (f93f19f) @@ -4272,6 +4272,22 @@ PGrnIsRangeSearchable(IndexScanDesc scan) int i; AttrNumber previousAttrNumber = InvalidAttrNumber; + if (scan->numberOfKeys == 0) + { + grn_obj *indexColumn; + grn_obj *lexicon; + grn_obj *tokenizer; + + indexColumn = PGrnLookupIndexColumn(scan->indexRelation, 0, ERROR); + lexicon = grn_column_table(ctx, indexColumn); + tokenizer = grn_obj_get_info(ctx, lexicon, GRN_INFO_DEFAULT_TOKENIZER, + NULL); + if (tokenizer) + { + return false; + } + } + for (i = 0; i < scan->numberOfKeys; i++) { ScanKey key = &(scan->keyData[i]); -------------- next part -------------- HTML����������������������������... 다운로드