StringQuery usage

Hi,

StringQuery's like condition is not working if I had to filter two different names.

I'm using the StringQuery in ModelFinder for fetching the list of models matching the model names.

Say, for ex: I have 4 models with name "abc", "def", "ghi" and "jkl". Now I wanted the models with name "abc" and "def". The below line returns me 0 items:

List models = modelFinder.setName(StringQuery.like("*abc*def*"))

Is the above approach correct? If not, help me to query the models that should match both the criteria.

Regards,

ArunDhaJ

 

Keywords: