Gravatar for klutz@absolute.com

Question by krislutz, Oct 28, 2015 7:34 PM

Using an alias for sort (Coveo for Sitecore)

a while back I posted a question about using an alias for facets within sitecore

https://answers.coveo.com/questions/2153/creating-an-alias-for-a-facet

I was able to eventually get this working by setting the uniqueID field within the sitecore facet. I am now trying to do the same thing with sorting. Set up an alias in Coveo, and then use that alias in the query string to sort the results, so instead of something like sort=%40fsortz32xdate96918%20descending, I could use sort=myAlias%20descending

I cannot get this to work with sort like I could with facets. Is there a trick to setting this up or is it just not supported?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Nov 3, 2015 4:11 PM

Hi Kris,

Unfortunately, the Coveo JavaScript Search Framework sorting components are not built to store their id in the state instead of their field name. You won't be able to get rid of the field names for the sort state attribute.

Ask a question