Skip to content

Commit

Permalink
Update meilisearch-python version following MeiliSearch bump to v0.11 (
Browse files Browse the repository at this point in the history
…#24)

* Upd version

* Update index creation according to new createIndex prototype (#31)

* Upd version

* Change index creation according to new createIndex prototype
  • Loading branch information
curquiza authored Jun 15, 2020
1 parent 23ca39e commit c47225e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "pypi"
Scrapy = "==1.5.0"
selenium = "==3.141.0"
pytest = "==3.10.0"
meilisearch = "==0.9.0"
meilisearch = "==0.11.0"
requests-iap = "==0.2.0"

[dev-packages]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ Websites that need JavaScript for rendering are passed through ChromeDriver.<br>

This package is compatible with the following MeiliSearch versions:
- `v0.10.X`
- `v0.11.X`

## 👩‍💻 Development Workflow

Expand Down
2 changes: 1 addition & 1 deletion scraper/src/meilisearch_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __delete_and_create_index(self, index_uid):
except Exception:
print("The index " + index_uid + " does not exist. Creating...")

return self.meilisearch_client.create_index(uid=index_uid, primary_key='objectID')
return self.meilisearch_client.create_index(index_uid, {'primaryKey': 'objectID'})

# Algolia's settings:
# {"minWordSizefor1Typo"=>3,
Expand Down

0 comments on commit c47225e

Please sign in to comment.