Skip to content

Commit

Permalink
Fix wrong position of IndexOptions in doc (MorphiaOrg#1191)
Browse files Browse the repository at this point in the history
* Fix wrong position of IndexOptions in doc
* Fix Field annotation declaration in doc
  • Loading branch information
polo2ro authored and jyemin committed Oct 20, 2017
1 parent 292f964 commit cb56f27
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/reference/content/guides/indexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ has two primary components to cover here: `fields` and `options`. An index def
```java
@Entity
@Indexes({
@Index(fields = @Field("field2", type = DESC)),
@Index(fields = @Field("field3", options = @IndexOptions(name = "indexing_test")))
@Index(fields = @Field(value = "field2", type = DESC)),
@Index(
fields = @Field("field3"),
options = @IndexOptions(name = "indexing_test")
)
})
public class IndexExample {
@Id
Expand Down Expand Up @@ -190,4 +193,4 @@ A wild card text index declaration would look like this:

{{% note class="important" %}}
A collection can have at most one text index.
{{% /note %}}
{{% /note %}}

0 comments on commit cb56f27

Please sign in to comment.