We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3a214ab commit72a3582Copy full SHA for 72a3582
contrib/tsearch2/tsvector.h
@@ -47,6 +47,20 @@ typedef uint16 WordEntryPos;
47
#defineMAXNUMPOS256
48
#defineLIMITPOS(x) ( ( (x) >= MAXENTRYPOS ) ? (MAXENTRYPOS-1) : (x) )
49
50
+/*
51
+ * Structure of tsvector datatype:
52
+ * 1) int4 len - varlena's length
53
+ * 2) int4size - number of lexemes or WordEntry array, which is the same
54
+ * 3) Array of WordEntry - sorted array, comparison based on word's length
55
+ *and strncmp(). WordEntry->pos points number of
56
+ *bytes from end of WordEntry array to start of
57
+ *corresponding lexeme.
58
+ * 4) Lexeme's storage:
59
+ * SHORTALIGNED(lexeme) and position information if it exists
60
+ * Position information: first int2 - is a number of positions and it
61
+ * follows array of WordEntryPos
62
+ */
63
+
64
typedefstruct
65
{
66
int4len;