Skip to content

Commit 6838aa2

Browse files
committed
Update README. Add information about array ops.
1 parent 508dcfb commit 6838aa2

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Diff for: README.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Typical installation procedure may look like this:
5959
| timestamp <=| timestamp | float8 | Returns distance only for left timestamps.
6060
| timestamp |=> timestamp | float8 | Returns distance only for right timestamps.
6161

62-
Last three operations also works for types int2, int4, int8, float4, float8,
62+
Last three operations also works for types timestamptz, int2, int4, int8, float4, float8,
6363
money and oid.
6464

6565
## Operator classes
@@ -142,7 +142,7 @@ Supported operations: `<`, `<=`, `=`, `>=`, `>` for all types and
142142
timestamp and timestamptz types.
143143

144144
Supports ordering by `<=>`, `<=|` and `|=>` operators. Can be used with
145-
`rum_tsvector_addon_ops` operator class.
145+
`rum_tsvector_addon_ops`, `rum_tsvector_hash_addon_ops' and `rum_anyarray_addon_ops` operator classes.
146146

147147
### rum_tsvector_addon_ops
148148

@@ -221,10 +221,23 @@ SELECT * FROM query
221221
(2 rows)
222222
```
223223

224+
### rum_anyarray_ops
225+
226+
For type: `anyarray`
227+
228+
This operator class stores `anyarrray` elements with length of the array.
229+
Supports operators `&&`, `@>`, `<@`, `=`, `%` operators. Supports ordering by `<=>` operator.
230+
231+
### rum_anyarray_addon_ops
232+
233+
For type: `anyarray`
234+
235+
This operator class stores `anyarrray` elements with any supported by module
236+
field.
237+
224238
## Todo
225239

226240
- Allow multiple additional information (lexemes positions + timestamp).
227-
- Add support for arrays.
228241
- Improve ranking function to support TF/IDF.
229242
- Improve insert time.
230243
- Improve GENERIC WAL to support shift (PostgreSQL core changes).

0 commit comments

Comments
 (0)