To enable a field for search, go to the form and click the Fields tab. There you will see the list of available fields. You can use the filter to find them faster; the filter appears on the left side of the screen.
Then, select the field you want to enable for search. In the field information, locate the Searchable or Available for search button and activate it. With this, the field will be available in the search bar, both in advanced search and from the Documents tab of the form.
If you also need the field to be displayed as a fixed column in the Documents tab of the form, enable the Show as a column option.
Finally, go back to the Documents page and search for the field from the search bar.