File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,17 @@ static bool is_stopword(char *);
95
95
static bool new_tuple = false;
96
96
97
97
98
+ #ifdef USE_STOP_WORDS
99
+
98
100
/* THIS LIST MUST BE IN SORTED ORDER, A BINARY SEARCH IS USED!!!! */
99
101
char * StopWords [] = { /* list of words to skip in indexing */
100
- #ifdef SAMPLE_STOP_WORDS
101
- "no"
102
+ "no" ,
102
103
"the" ,
103
- "yes" ,
104
- #endif
104
+ "yes"
105
105
};
106
106
107
+ #endif /* USE_STOP_WORDS */
108
+
107
109
/* stuff for caching query-plans, stolen from contrib/spi/\*.c */
108
110
typedef struct
109
111
{
@@ -385,6 +387,7 @@ breakup(char *string, char *substring)
385
387
static bool
386
388
is_stopword (char * text )
387
389
{
390
+ #ifdef USE_STOP_WORDS
388
391
char * * StopLow ; /* for list of stop-words */
389
392
char * * StopHigh ;
390
393
char * * StopMiddle ;
@@ -406,6 +409,7 @@ is_stopword(char *text)
406
409
else
407
410
StopHigh = StopMiddle ;
408
411
}
412
+ #endif /* USE_STOP_WORDS */
409
413
410
414
return (false);
411
415
}
You can’t perform that action at this time.
0 commit comments