To use the get_list
service with an ignore case condition, you typically need to normalize the case of the values being compared. Here’s a general approach:
- Lowercase both sides: Convert both the input and the list elements to lowercase before comparison.
- Custom filtering: Apply a filter or query logic that explicitly handles case insensitivity.
If you're working with a specific API or library, it might look something like this (e.g., Python with a get_list
function):
# Assuming get_list takes a filtering function filtered_list = get_list(lambda item: item['field'].lower() == search_value.lower())
In SQL-like queries, use case-insensitive operators, such as ILIKE
in PostgreSQL:
SELECT * FROM table WHERE LOWER(field) = LOWER('value');
If get_list
has built-in options for case-insensitivity, consult the documentation or look for parameters like ignore_case=True
.