You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous projects I have used hibernate search annotations to add one attribute to multiple fields (for different purposes eg. sorting, searching, projections).
@fields({ @field(index = Index.TOKENIZED, store = Store.YES), @field(name = "simple_search", index = Index.TOKENIZED) })
private String description
When I do that using the plugin it results in the following error
unexpected token: @ @ line 16, column 2
I see no example of the @fields annotation in the documentation. Is it possible?
The text was updated successfully, but these errors were encountered:
l could not find a way to do it with annotations without error (grails 2.1.1) but the following works. List the same field (value) multiple times and specifying the name attribute on all but the default index entry (which is stored in this example for using as a projection)
static search = {
// fields
value (index: 'tokenized', name:'simple_search')
value (index: 'un_tokenized', store : 'yes')
}
In previous projects I have used hibernate search annotations to add one attribute to multiple fields (for different purposes eg. sorting, searching, projections).
@fields({ @field(index = Index.TOKENIZED, store = Store.YES),
@field(name = "simple_search", index = Index.TOKENIZED) })
private String description
When I do that using the plugin it results in the following error
unexpected token: @ @ line 16, column 2
I see no example of the @fields annotation in the documentation. Is it possible?
The text was updated successfully, but these errors were encountered: