Issue in sorting the searachle components.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue in sorting the searachle components.

Praveen Kumar
Hi ,

I have requirement where i need display the search results in specific order that means  you  are giving priority to the some properties in parent domain and associated  domain.  Here is the problem explained ..

Race {  
 name
 place
 state
 
}

Registration {
 userName
 userState
}  

So if the user searches for word,  If it matches with any one of  Race.name,Race.Place,Race.state, Registration.userName and Registration.userState.

Then this is the order i want  :

Row with Race.name matches
Row with Registration.userState matches
Row with Registration .userName matches
rows with Race.Place matches
rows with Race.state. matches

Please help me on thisn.


Thanks
Praveen
Reply | Threaded
Open this post in threaded view
|

Re: Issue in sorting the searachle components.

pledbrook
Administrator
> Then this is the order i want  :
>
> Row with Race.name matches
> Row with Registration.userState matches
> Row with Registration .userName matches
> rows with Race.Place matches
> rows with Race.state. matches
>
> Please help me on thisn.

You probably want to use the 'boost' option (documented in the plugin
pages) to give Race.name a higher priority than
Registration.userState, and so on.

Peter

--
Peter Ledbrook
Grails Advocate
SpringSource - A Division of VMware