Skip to content

Commit

Permalink
change text operator fields to entity name format #260
Browse files Browse the repository at this point in the history
- This change is prompted because the `entity_name` will always be in entity name format, rather than field name format
  • Loading branch information
MRichards99 committed Dec 20, 2021
1 parent cba6482 commit c5f2e74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions datagateway_api/src/search_api/query_filter_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def get_where_filter(where_filter_input, entity_name):
# TODO - we might want to move this to the data
# definitions at a later point
text_operator_fields = {
"datasets": ["title"],
"documents": ["title", "summary"],
"files": ["name"],
"instrument": ["name", "facility"],
"samples": ["name", "description"],
"techniques": ["name"],
"Dataset": ["title"],
"Document": ["title", "summary"],
"File": ["name"],
"Instrument": ["name", "facility"],
"Sample": ["name", "description"],
"Technique": ["name"],
}

try:
Expand Down

0 comments on commit c5f2e74

Please sign in to comment.