I am using searchable plugin in my project. And i have a simple domain, which given below
Class User {
String title
String Description
int vote
Date date
}
static searchable = {
only: ['description','title','vote','date']
date name: 'sortableTitle1', index: 'not_analyzed'
vote name: 'sortableTitle2', index: 'not_analyzed'
}
My need is to make vote and date as a sortable element. and it should not regarded while searching
Also i know, it can done by using below code
date name: 'sortableTitle1', index: 'not_analyzed' store:'no'
But in this case the result list of object will not contain date property, so it can't be displayed in gsp for display.
So how i can make 'date' element for displaying, sorting and not for searching in my gsp.