Skip to content

Commit a620964

Browse files
committed
Index example
1 parent 7816639 commit a620964

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/index.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Create a single field index
2+
result = client[:restaurants].indexes.create(cuisine: 1)
3+
4+
# Create a compound index
5+
result = client[:restaurants].indexes.create(cuisine: 1, zipcode: -1)

0 commit comments

Comments
 (0)