Filter recipes by chef

I have some questions about this feature:
  1. Where is chef name. I use "source" field of recept.
  2. What is a priority of this field in results order?
  3. What is the matching rule? I split name to parts by blanks and find complete match.
  4. Current code is hard for maintenance and writings tests. I write same code as in other tests.