The PostgreSQL source
distribution includes several examples of index operator classes
for SP-GiST, as described in
src/backend/utils/adt/ to see the code.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.