fix: brain search — Meilisearch settings use PATCH not PUT
Settings were failing with 405 (PUT not supported in Meilisearch v1.12). Changed to PATCH. Filterable/searchable attributes now applied. Keyword search working: wedding, yusuf, insurance, airport all return results. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -920,10 +920,10 @@
|
||||
|
||||
.viewer-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 300px;
|
||||
width: 90vw;
|
||||
max-width: 1100px;
|
||||
height: 80vh;
|
||||
grid-template-columns: 1fr 440px;
|
||||
width: 94vw;
|
||||
max-width: 1300px;
|
||||
height: 85vh;
|
||||
border-radius: 24px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 32px 80px rgba(18,13,10,0.3);
|
||||
@@ -961,11 +961,11 @@
|
||||
.viewer-sidebar {
|
||||
background: linear-gradient(180deg, #f8f1e8 0%, #f3eadc 100%);
|
||||
border-left: 1px solid rgba(35,26,17,0.08);
|
||||
padding: 22px;
|
||||
padding: 28px;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.viewer-sidebar-header {
|
||||
|
||||
@@ -37,8 +37,8 @@ async def _meili_request(method: str, path: str, json_data: dict = None) -> dict
|
||||
async def ensure_meili_index():
|
||||
"""Create the Meilisearch index if it doesn't exist."""
|
||||
await _meili_request("POST", "indexes", {"uid": MEILI_INDEX, "primaryKey": "id"})
|
||||
# Set filterable attributes
|
||||
await _meili_request("PUT", f"indexes/{MEILI_INDEX}/settings", {
|
||||
# Set filterable attributes (PATCH for Meilisearch v1.x)
|
||||
await _meili_request("PATCH", f"indexes/{MEILI_INDEX}/settings", {
|
||||
"filterableAttributes": ["user_id", "folder", "tags", "type", "processing_status"],
|
||||
"searchableAttributes": ["title", "extracted_text", "summary", "url"],
|
||||
"sortableAttributes": ["created_at"],
|
||||
|
||||
Reference in New Issue
Block a user