Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Default Facet Sorting in OpenSemanticSearch #472

Open
jerrydeasley opened this issue Nov 3, 2023 · 0 comments
Open

Change Default Facet Sorting in OpenSemanticSearch #472

jerrydeasley opened this issue Nov 3, 2023 · 0 comments

Comments

@jerrydeasley
Copy link

I'm running OpenSemanticSearch on a Debian 11 server and I have been able to successfully import, extract, and ocr data, and can access it through the /search webpage.

The facets appear by default to be sorted by the numerical "count".

This appears to be the expected default behavior in Solr.

From the Solr Ref. Guide:

facet.sort
This parameter determines the ordering of the facet field constraints.
There are two options for this parameter.
count
Sort the constraints by count (highest count first).
index
Return the constraints sorted in their index order (lexicographic by indexed term). For terms in the ASCII range, this will be alphabetically sorted.
The default is count if facet.limit is greater than 0, otherwise, the default is index.

I would like to change the "Path(s)" facet to appear of the /search page in Alphabetical Order but have been unable to make any headway.

It appears that the right change to /etc/solr-php-ui/config.facets.php might do the trick but I have not been able to make it work.

Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant