Thanks,
Yes this is the work around I am currently doing.
Still wondering is the sort method can be used alone.
On 29 June 2011 18:34, Michael Ryan wrote:
> You could try adding a new int field (like "typeSort") that has the desired
> sort values. So when adding a document with type:car, als
You could try adding a new int field (like "typeSort") that has the desired
sort values. So when adding a document with type:car, also add typeSort:1; when
adding type:van, also add typeSort:2; etc. Then you could do "sort=typeSort
asc" to get them in your desired order.
I think this is also po
Hi
Say I have a field type in multiple documents which can be either
type:bike
type:boat
type:car
type:van
and I want to order a search to give me documents in the following order
type:car
type:van
type:boat
type:bike
Is there a way I can do this just using the &sort method?
Thanks