In DokuWiki pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. This is the most common and recommended way. It ensures all your pages are linked together correctly and you don't create orphans anywhere.
There are some alternative ways as well:
Create this page on the results page. The new page will be named after your query..txt file to the directory (namespace) wherein you want it to reside.Make sure you properly link your newly created page from other pages, when using one of the alternative methods.