Skip to content

Commit

Permalink
Add fields to test index that used to be default
Browse files Browse the repository at this point in the history
  • Loading branch information
vanatteveldt committed May 28, 2024
1 parent f6f9025 commit b2c3664
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion amcat4/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ def upload_test_data() -> str:
)
for row in csvfile
]
fields: dict[str, FieldType] = {"president": "keyword", "party": "keyword", "year": "integer"}
fields: dict[str, FieldType] = {
"text": "text",
"title": "text",
"date": "date",
"president": "keyword",
"party": "keyword",
"year": "integer",
}
upload_documents(SOTU_INDEX, docs, fields)
return SOTU_INDEX

Expand Down

0 comments on commit b2c3664

Please sign in to comment.