1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Update fti README and stopwords.

This commit is contained in:
Bruce Momjian
1998-07-20 02:45:03 +00:00
parent 39282daa12
commit 0de96f82dc
2 changed files with 8 additions and 0 deletions

View File

@ -70,9 +70,11 @@ bool new_tuple = false;
/* THIS LIST MUST BE IN SORTED ORDER, A BINARY SEARCH IS USED!!!! */
char *StopWords[] = { /* list of words to skip in indexing */
#ifdef SAMPLE_STOP_WORDS
"no"
"the",
"yes",
#endif
};
/* stuff for caching query-plans, stolen from contrib/spi/\*.c */
@ -331,6 +333,9 @@ is_stopword(char *text)
StopLow = &StopWords[0]; /* initialize stuff for binary search */
StopHigh = endof(StopWords);
if (lengthof(StopWords) == 0)
return false;
while (StopLow <= StopHigh)
{
StopMiddle = StopLow + (StopHigh - StopLow) / 2;