Skip to content

Commit

Permalink
Remove unneeded facet_query
Browse files Browse the repository at this point in the history
  • Loading branch information
reebalazs committed Feb 29, 2024
1 parent 0b7c160 commit ec5caf4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/kitconcept/solr/services/solr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ def select_condition(self, group_select: int) -> str:
condition = filters[group_select]
return f"{base_query}{condition}"

@property
def facet_query(self) -> List[str]: # XXX
return list(map(lambda item: "{!ex=typefilter}" + item, self.filters))

@property
def field_list(self) -> List[str]:
raw_value = self.config.get("fieldList", [])
Expand Down
10 changes: 0 additions & 10 deletions tests/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,6 @@ def test_select_condition(self):
)


class TestUtilsFacetQuery(TestUtils):
def test_facet_query(self):
assert self.solr_config.facet_query == [
"{!ex=typefilter}Type(*)",
"{!ex=typefilter}Type:(Page)",
'{!ex=typefilter}Type:("News Item")',
'{!ex=typefilter}Type:(Page OR "News Item")',
]


class TestUtilsFieldList(TestUtils):
def test_field_list(self):
assert (
Expand Down

0 comments on commit ec5caf4

Please sign in to comment.