dcsimg
Ordering of the object as per the ids specified in the query
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ask_question
Posted On:   Monday, March 5, 2012 02:37 AM

Hi, I am having one entity person which is having filed. This entity is indexed. And I have one compass query : +(+alias:person +(resourceId:25 resourceId:13 resourceId:23 resourceId:12)) +(alias:person) I want the ordering of the resulted objects as per specified in the query. Example. resourceId Name 25 Name-4 13 Name-2 23 Name-3 12 Name-1 How can i do it? Thanks in advanced!!    More>>

Hi,


I am having one entity person which is having filed. This entity is indexed. And I have one compass query :



+(+alias:person +(resourceId:25 resourceId:13 resourceId:23 resourceId:12)) +(alias:person)



I want the ordering of the resulted objects as per specified in the query.



Example.

resourceId Name

25 Name-4

13 Name-2

23 Name-3

12 Name-1



How can i do it?
Thanks in advanced!!

   <<Less
About | Sitemap | Contact