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
Catalog/Search: ordering is broken #615
Comments
BTW I first found this issue in a custom product based DataDocument where pseudoId is a Sortable field. I checked that the keyword subfield is actually generated and the ordering doesn't work. After posting this issue, I realized that, in MantleProduct, pseudoId is not sortable. And a workaround I found is to populate the mappings of the index with a field of keyword type ( |
The following URL gives a 400 error when trying to search the catalog:
https://demo.moqui.org/qapps/PopcAdmin/Catalog/Search?orderByField=-pseudoId&pageSize=20&queryString=*
Apparently, the service
org.moqui.search.SearchServices.search#DataDocuments
does not take into account fields thathave a keyword subfield to allow ordering.
The only place where
.keyword
is appended is here, in moqui-framework, but it seems it's not used by the search service.The text was updated successfully, but these errors were encountered: