How to use custom CQL fields?

Hm… I’ll take another try:

I think I just don’t understand how to use this new cql-searchable field I make with this tutorial (https://developer.atlassian.com/server/confluence/adding-a-field-to-cql/).

I thought I could put information into it for each page I have, to stay in the tutorial context, one page I give the info X for my newly created “status” field, and one gets Y and I could filter for those values in advanced search.

So if I would filter in a CQL search for value Y in “status” field, I would only get pages with “status” field information Y as search result.

But that’s not how it works? Or how could I put those X or Y-information in my “status” fields for each page I have?