How to set the default Sort Field and Sort Order in App Search Reference UI

Hi Team,

I have created the Search UI using the reference UI from app search, but in this, the default Sort Field is set to Relevance, I need to override this field with one of my fields as I need to see the data in the Result View on the basis of the sort field which I have overridden.
Please advise.

Never mind, I got it. It will be set in the initialState (of SearchProvider config).

    <SearchProvider
        config={
            ...
            initialState: {
                resultsPerPage: 5
            }
        }
    >

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.