Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dist-ssr
.windsurf/
.claude/

data.ms/

functions/wrangler.toml
functions/.wrangler
Expand All @@ -40,4 +41,4 @@ contractor_fetch_log.csv
wrangler.toml

# Dev
.cursor/*
.cursor/*
43 changes: 16 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions scripts/update_meilisearch_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ async function updateSettings() {
try {
console.log(`Setting maxTotalHits to 10000 for index ${INDEX_NAME}...`);

// Update the settings
// update only the pagination setting to ensure it gets applied
const paginationResult = await client.index(INDEX_NAME).updatePagination({
maxTotalHits: 10000,
});
console.log('Pagination update result:', paginationResult);

// wait bit for the task to process
await new Promise(resolve => setTimeout(resolve, 2000));
console.log('Pagination settings applied successfully');

// Update the other settings
await client.index(INDEX_NAME).updateSettings({
pagination: {
maxTotalHits: 10000,
},
searchableAttributes: [
'ProjectDescription',
'Municipality',
Expand Down