I'm looking to extend the search builder to accept a custom value which then can be used to filter the search results. Thanks in advance.
Create custom fields under Administer - Custom Data and Screens - Custom fields.
Make sure you check the box for "is this field searchable".
Then the field should be available for searching in Advanced Search or Search Builder.