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

Update settings code-sample for v0.28.0 #1293

Merged

Conversation

bidoubiwa
Copy link
Contributor

@bidoubiwa bidoubiwa commented Jul 6, 2022

As per this issue

  • Add get_pagination_settings_1 PR
    • for the books index
  • Add update_pagination_settings_1 PR
    • for the books index
    • Update "maxTotalHits": 100
  • Add reset_pagination_settings_1 PR
    • for the books index
  • Update update_settings_1 PR, PR
    • add "pagination": {"maxTotalHits": 5000}
    • add "faceting": { "maxValuesPerFacet": 200}
  • Add get_faceting_settings_1 PR
    • for the books index
  • Add update_faceting_settings_1 PR
    • for the books index
    • Update: "maxValuesPerFacet": 2
  • Add reset_faceting_settings_1 PR
    • for the books index
  • Add settings_guide_faceting_1 PR
    • for the movies index
    • sets "maxValuesPerFacet": 5
  • Add settings_guide_pagination_1 PR
  • for the movies index
  • sets "maxTotalHits": 50

@bidoubiwa bidoubiwa requested review from brunoocasali and mdubus July 6, 2022 15:00
client.index('books').updateSettings({ faceting: { maxValuesPerFacet: 2 }})
reset_faceting_settings_1: |-
settings_guide_faceting_1: |-
client.index('books').updateSettings({ faceting: { maxValuesPerFacet: 5 }})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method will be replaced when we implement those special methods correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes ! Its per our discussion we had privately that i ve added them

@bidoubiwa bidoubiwa merged commit 5752e0d into meili-bot/code-samples-v0-28 Jul 6, 2022
@bidoubiwa bidoubiwa deleted the update_settings_code_samples_v0.28.0 branch July 6, 2022 15:41
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

Successfully merging this pull request may close these issues.

2 participants