Both simple and advanced query dialogs save recent history, but the amount is limited: old queries will eventually be forgotten. Also, important queries may be difficult to find among others. This is why both types of queries can also be explicitly saved to files, from the GUI menus:
→The default location for saved queries is a subdirectory of the current configuration directory, but saved queries are ordinary files and can be written or moved anywhere.
Some of the saved query parameters are part of the
preferences (e.g. autophrase
or the active
external indexes), and may differ when the query is
loaded from the time it was saved. In this case, Recoll will warn
of the differences, but will not change the user
preferences.