> For the complete documentation index, see [llms.txt](https://couchbase.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://couchbase.shujuwajue.com/suo-yin.md).

# 索引

索引操作：

[ALTER INDEX](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/alterindex.html)

[BUILD INDEX](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/build-index.html)

[CREATE INDEX](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/createindex.html)

[CREATE PRIMARY INDEX](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/createprimaryindex.html)

[DELETE](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/delete.html)

[DROP INDEX](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/dropindex.html)

[DROP PRIMARY INDEX](https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/dropprimaryindex.html)

参考资料：

[Indexing](https://developer.couchbase.com/documentation/server/5.5/indexes/indexing-overview.html)

[CREATE INDEX](https://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/createindex.html)

[Views and indexes](https://developer.couchbase.com/documentation/server/3.x/admin/Views/views-intro.html)

```
CREATE PRIMARY INDEX catalog_primary ON catalog
CREATE INDEX table_type ON catalog(table_type)
CREATE INDEX offer_ean ON catalog(ean) WHERE (table_type = "offer")
CREATE INDEX offer_shop_id ON catalog(shop_id) WHERE (table_type = "offer")
CREATE INDEX content_ean ON catalog(ean) WHERE (table_type = "content")
CREATE INDEX offer_ean_country ON catalog(ean,country) WHERE (table_type = "offer")
```
