Error when specifying sort parameter in MeiliSearch Angular integration
Karman40 opened this issue · comments
Hello there,
I am currently working on an Angular application that utilizes MeiliSearch for handling reservation data. The application allows users to search through active or archived reservation data. However, I'm encountering difficulties with implementing custom sorting logic when users are looking at archived data.
Here's a brief outline of the feature in question:
- The user can toggle between viewing
current
andarchive
data. - When viewing
archive
data, the requirement is to sort the results differently from the default setting.
It is important that the user does not have to switch, but that this happens automatically.
I have set up search parameters within my Angular component like so:
export class ReservationsAllComponent {
// ... (other properties)
// Set up for 'archive' data
this.searchParameters = {
filters: `timestamps.dateFrom <= ${moment().startOf('day').unix() * 1000}`,
// sort: ['timestamps.dateFrom:desc'],
};
// ... (other setup)
// Set up for 'current' data
this.searchParameters = {
filters: `timestamps.dateFrom > ${moment().startOf('day').unix() * 1000}`,
// sort: ['timestamps.dateFrom:asc'],
};
// ... (other setup)
}
Hello @Karman40
Looks like your issue is more related to a support need and not a request for a feature or a bug fix. But most of all, you need quick support to help you play with Meilisearch 😁
We are a small team, so we can’t spend much time doing support this specific repo 😢
You might have noticed when opening the issue we don't do support in this repo anymore.
![Capture d’écran 2023-10-11 à 16 56 38](https://private-user-images.githubusercontent.com/20380692/274319577-d32e8d6f-9bb3-4bdb-89fd-85ebb4572f0f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxNTM0MTAsIm5iZiI6MTcxODE1MzExMCwicGF0aCI6Ii8yMDM4MDY5Mi8yNzQzMTk1NzctZDMyZThkNmYtOWJiMy00YmRiLTg5ZmQtODVlYmI0NTcyZjBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEyVDAwNDUxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5N2E5NzliYTU3MmNkOTY5NjYyODM3ZjlkZjc1OTA3YTc4MDYzNjNmNzM1OGI1N2EzZmIxMmU4Yjc3YWFkYzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YdzgfGBPQrPKtX0aYyg3355Q_a4XLlAY_ozhjgiybe0)
So, if you want immediate help, we would recommend going to our Discord instead. The community will be able to help you, no matter your question.
Sorry if I miss-understood your use-case. If that's the case, let me know.
Thanks for using Meilisearch!