<commit_before>---
layout: default
description: Indexes
---
# Indexes

## Annotation @\<IndexType\>Indexed

With the `@<IndexType>Indexed` annotations user defined indexes can be created at a collection level by annotating single fields of a class.<commit_msg>Added indexing limitations to Spring data documentation (#501)<commit_after>---
layout: default
description: Indexes
---
# Indexes

Indexes can be ensured using the following annotations. For reference see the
[indexing](../indexing.html) documentation and specific aspects that apply to
[indexes on shards](../architecture-deployment-modes-cluster-sharding.html#indexes-on-shards).

## Annotation @\<IndexType\>Indexed

With the `@<IndexType>Indexed` annotations user defined indexes can be created at a collection level by annotating single fields of a class.
{'fraction_non_alphanumeric': 0.09500609013398295, 'fraction_numerical': 0.0036540803897685747, 'mean_word_length': 5.2272727272727275, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2008156', 'n_tokens_mistral': 231, 'n_tokens_neox': 211, 'n_words': 87}