Hide Forgot
Title: The Query Module Example Describe the issue: in "6.4.1. The Query Module Example" remove the annotation @ProvidedId. Also the formatting of the code examples is odd, would be nice to polish that. Suggestions for improvement: ############### @Indexed public class Person implements Serializable { @Field(store = Store.YES) private String name; @Field private String description; @Field(store = Store.YES) private int age; } ############### SearchManager manager = Search.getSearchManager(cache); QueryBuilder builder = sm.buildQueryBuilderForClass(Person.class).get(); Query luceneQuery = builder.keyword() .onField("name") .matching("FirstName") .createQuery(); ###############
WIP
Looks good except that one of the @Field annotations has a different color than the others. Is this expected?
That is automatic color markup. Red indicates that a tag is not closed or a line is not terminated correctly or such so I think as long as the code is correct, we can ignore the minor color discrepancy unless it is distracting for the user.
The fix for this bug is now generally released and available here: https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_Data_Grid/6.2/index.html