* Adds the Root terms for negation scenarios into the entries. */
| 2107 | * Adds the Root terms for negation scenarios into the entries. |
| 2108 | */ |
| 2109 | static void |
| 2110 | GenerateNegationTerms(Datum *entries, int nextIndex, |
| 2111 | bool *partialMatch, |
| 2112 | IndexTermCreateMetadata *termMetadata) |
| 2113 | { |
| 2114 | /* non exists term. */ |
| 2115 | entries[nextIndex] = GenerateRootNonExistsTerm(termMetadata); |
| 2116 | partialMatch[nextIndex] = false; |
| 2117 | nextIndex++; |
| 2118 | |
| 2119 | /* the next term generated is the root exists term */ |
| 2120 | entries[nextIndex] = GenerateRootExistsTerm(termMetadata); |
| 2121 | partialMatch[nextIndex] = false; |
| 2122 | nextIndex++; |
| 2123 | |
| 2124 | /* the next term generated is the root term for back-compatibility */ |
| 2125 | entries[nextIndex] = GenerateRootTerm(termMetadata); |
| 2126 | partialMatch[nextIndex] = false; |
| 2127 | } |
| 2128 | |
| 2129 | |
| 2130 | /* |
no test coverage detected