-
Notifications
You must be signed in to change notification settings - Fork 57
feat: [FC-86] implement multivalue faceted search using Meilisearch and Elasticsearch #213
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
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
1b9b515
feat: add multivalue faceted search logic
Serj-N bece993
test: add unit tests
Serj-N fa68434
test: add integration tests
Serj-N d0f2b0e
refactor: add make command to run test in container
Serj-N 718b223
fix: add whitespace around operator
Serj-N 2c721ff
fix: run make quality
Serj-N 82c5cad
test: run meilisearch service in github CI
Serj-N b315d5c
fix: add allowed hosts, edit ci.yml
Serj-N d273949
fix: change meilisearch url to localhost
Serj-N 27ef1a3
feat: implement multivalue search for elastic
Serj-N a90b9d4
chore: change get_filter_rules after rebase
NiedielnitsevIvan b93e1e5
style: remove extra indents
NiedielnitsevIvan 5ebcdeb
chore: add conftest, test_network, create network in makefile
Serj-N f4f698b
fix: adjust exclude logic, fix/add test
Serj-N 5cf92ce
fix: remove unused import, fix import issue
Serj-N 592d1b9
test: add test-all command, adjust test-elastic
Serj-N 517e237
chore: add manage.py migrate to make commands
Serj-N e2c6dbc
chore: configure github ci to run tests
Serj-N f3760a7
chore: remove migrate from github ci
Serj-N 7514511
test: use manage.py test instead of pytest, remove conftest.py
Serj-N e6f6246
test: run tests selectively using tox
Serj-N 1503955
chore: fix indentation in ci.yml
Serj-N e19eb6e
fix: fix linter errors
Serj-N 97149af
fix: fix lint error in a test
Serj-N 580f0e0
test: restore base version of integration tests
Serj-N 18a40b1
chore: make ci run all tests
Serj-N 244a8b6
test: remove unused code
Serj-N b3680b3
test: cover nonfacet rules logic
Serj-N 6c1ca11
test: adjust makefile to run tests
Serj-N fb406bc
fix: remove unused parameter
Serj-N 44dbee7
test: move ES tests to test_elasticsearch.py
Serj-N f92d732
test: test global_aggs in multivalue aggregation
Serj-N 08cd07a
test: remove tests asserting calls for aggregation processors
Serj-N d74f8dd
test: use assertGreaterEqual to compare dicts
Serj-N cfafa9e
chore: move version to top in docker-compose.yml
Serj-N 4c09f37
docs: add comment for is_multivalue
Serj-N 487419f
chore: change meilisearch image version
Serj-N 79864c6
build: remove MEILISEARCH_URL from docker-compose, Makefile
Serj-N 5e6653e
docs: edit docstring for _process_multivalue_aggregations
Serj-N 4594bef
docs: add type annotations to new functions
Serj-N c84c7f1
style: rename rule_dict items to field_name, field_value
Serj-N 8697093
test: run all tests via makefile
Serj-N 6d516c5
fix: assert not optional in OR branch
Serj-N 704c520
style: remove extra blank line
Serj-N 0187b5a
refactor: pass or_fields to get_filter_rules
Serj-N File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it's easier to see the difference between this part of the
ifand theelse:clause below if you structure these similar lines in exactly the same way.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean here: the two dict comprehensions seem to be structrured in the same way - the only difference being the object after "in"
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, don't worry about this one, which was really a nitpick. I got a bit confused reading this code because these two parts look exactly the same (but they're not):
I think it's slightly more clear if you write it this way, which makes it more obvious that they're different:
I realize now my suggestion above in my first comment had a bug/error, so yeah don't worry about it.