reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

Que - Which mapping is use for A-Z and Z-A sorting ?

Open ashwini987 opened this issue 8 years ago • 1 comments

Issue Type: I want to sort the products on my "product_name" field for A-Z and Z-A sort, which mapping or something is set for this field ???

Platform: Web

Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

ashwini987 avatar Aug 28 '18 05:08 ashwini987

Hi @ashwini987 you could try the sortBy prop on result components. The dataField should be a non_analyzed field or a keyword. Then you can provide sortyBy="asc" for A->Z and sortBy="desc" for Z->A.

Docs

divyanshu013 avatar Aug 30 '18 10:08 divyanshu013