No mapping found for [['amount']] in order to sort on]] haschild query exception

I am getting this search parse exception all I am doing is haschild filter
and want to sort on a parent field called "amount" which actually exists.

SearchParseException[[index][2]:

query[ConstantScore(child_filter[childelement
/parent](filtered(filtered(filtered(filtered(text:water)->

cache(dates:[1199170800000 TO 1354280400999]))->cache(industry:10168299))->

cache(child_type:childelement
))->cache(_type:childelement)))],from[0],size[10]:

Parse Failure [No mapping found for [['amount']] in order to sort on]]; }]

If anybody faced this exception before. I would appreciate if you share it.

--

Are you searching on all types or only on the parent type?

On Thursday, November 15, 2012 5:21:34 PM UTC-5, Helium wrote:

I am getting this search parse exception all I am doing is haschild filter
and want to sort on a parent field called "amount" which actually exists.

SearchParseException[[index][2]:

query[ConstantScore(child_filter[childelement
/parent](filtered(filtered(filtered(filtered(text:water)->

cache(dates:[1199170800000 TO 1354280400999]))->cache(industry:10168299))->

cache(child_type:childelement
))->cache(_type:childelement)))],from[0],size[10]:

Parse Failure [No mapping found for [['amount']] in order to sort on]]; }]

If anybody faced this exception before. I would appreciate if you share it.

--