Skip to content

Implement faceting in search #94

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

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Conversation

curquiza
Copy link
Member

@curquiza curquiza commented Jun 4, 2020

About pylint rule:
I disable the dangerous-default-value in search method because I think this is useless to refuse parameter default value as opt_params={} and then write as the first line of code in the method:

if opt_params is None:
    opt_params = {}

What do you think?

Found out it's a really bad practice, it does not work as expected.

@curquiza curquiza force-pushed the facets-in-search branch 2 times, most recently from 9f277a0 to 0af4f23 Compare June 4, 2020 17:05
@curquiza curquiza requested review from eskombro and bidoubiwa June 4, 2020 17:05
@curquiza curquiza force-pushed the facets-in-search branch from 0af4f23 to 1c5fd80 Compare June 6, 2020 09:20
@curquiza curquiza requested a review from eskombro June 6, 2020 09:22
Copy link
Member

@eskombro eskombro left a comment

Choose a reason for hiding this comment

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

Great! :)

@curquiza curquiza force-pushed the facets-in-search branch from 8d7ce4c to 74b94d2 Compare June 8, 2020 12:15
@curquiza curquiza merged commit 55d01ac into bump-meilisearch-v0.11 Jun 8, 2020
@curquiza curquiza deleted the facets-in-search branch June 8, 2020 12:37
curquiza added a commit that referenced this pull request Jun 9, 2020
* Implement faceting in search

* Upd test
curquiza added a commit that referenced this pull request Jun 15, 2020
* Upd version

* Add method to use faceting sub routes (#90)

* Remane apikey into api_key (#93)

* Implement faceting in search (#94)

* Implement faceting in search

* Upd test

* Clear all indexes before starting tests in a certain context (#95)

* Clear all indexes before starting tests in a certain context

* Update meilisearch/tests/__init__.py

Co-authored-by: Samuel Jimenez <[email protected]>

Co-authored-by: Samuel Jimenez <[email protected]>

* Upd version

* Add method to use faceting sub routes (#90)

* Remane apikey into api_key (#93)

* Implement faceting in search (#94)

* Implement faceting in search

* Upd test

* Fix parameter default value (#97)

* Add test with multiple facetFilters (#98)

* Change create_index prototype (#99)

* Change create_index prototype

* Update meilisearch/client.py

Co-authored-by: cvermand <[email protected]>

* Update meilisearch/index.py

Co-authored-by: cvermand <[email protected]>

Co-authored-by: cvermand <[email protected]>

Co-authored-by: Samuel Jimenez <[email protected]>
Co-authored-by: cvermand <[email protected]>
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.

3 participants