Customizing Dropdown matching behaviour

Hello everyone.
I'm trying to modify a Multiselect Dropdown component. Among the options are a lot of entries that contain several words. I'd like for it to show only the options that contain all of the words that appear in the searchParam property, in any order. This is the script I've bound to the options property as an expression structure:

	tokens = value['searchText'].strip().split(" ")
	options = []
	
	for param in value["paramList"]:
	    entry = {"label": param['description'], "value": param['id']}
	    
	    if all([token.lower() in entry["label"].lower() for token in tokens]):
	        options.append(entry)
	    
 #this is just to keep showing the lables of the parameters I've already selected instead of their values
	    if value['selected']:
	    	if entry['value'] in value['selected']: options.append(entry) 
###

	return sorted(options, key=lambda o: natural_keys(o['label']))

However, I'm not getting the desired behaviour. Instead, the dropdown keeps selecting the entries that contain the whole string I'm passing to it, whitespaces included. I think this is because of the search.matching property, which can only be set to any or start. Is there any way to override it or to bypass it entirely?

1 Like