-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from VianneyMI/38-new-round-of-stages
38-new-round-of-stages
- Loading branch information
Showing
42 changed files
with
3,472 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,4 @@ class OperatorEnum(StrEnum): | |
WEEK = "$week" | ||
YEAR = "$year" | ||
ZIP = "$zip" | ||
|
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Search Package""" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Subpackage gathering interfaces for Atlas Search collectors. | ||
Collectors return a document representing the metadata results, typically an aggregation over the matching search results. | ||
The Atlas Search aggregation pipeline stage has the following collector: | ||
Collector Description | ||
facet Groups query results by values or ranges in specified, faceted fields and returns the count for each of those groups. | ||
""" | ||
|
||
from monggregate.search.collectors.facet import ( | ||
# Operator | ||
Facet, | ||
# Results | ||
FacetBucket, | ||
FacetBuckets, | ||
FacetResult, | ||
# Query | ||
StringFacet, | ||
NumericFacet, | ||
DateFacet, | ||
Facets, | ||
# String | ||
FacetName, | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Collector Module""" | ||
|
||
# Standard Library imports | ||
#---------------------------- | ||
from abc import ABC | ||
|
||
# Package imports | ||
# --------------------------- | ||
from monggregate.base import BaseModel | ||
|
||
class SearchCollector(BaseModel, ABC): | ||
"""MongoDB operator abstract base class""" |
Oops, something went wrong.