Hi Andy,
thanks for your answer.
<blockquote>What version of Alfresco are we talking about?</blockquote>
I'm using Alfresco Community 4.2.c (I thought it would be shown somewhere as I've selected it from the dropdown box on creating the topic).
<blockquote>You can escape "-" using \ in query expressions. …</blockquote>
Escaping the hyphens does not work, nor does quoting, but the = prefix did the trick.
<blockquote>You can also decide to use a separator that does not mean anything in the query language. …</blockquote>
Unfortunately I have to stick to the naming scheme as it is defined by the project guidelines. Meta data gets lost when the file is passed around. And yes, "*.pdf" or simply "pdf" finds all pdfs in the directory, but I really need to look for the mentioned pattern (there are other pdfs in the directory and sometimes I need to find a subset, for example the second report of all groups).
However, you helped me a lot with that, thanks again. Maybe I should spend some time learning lucene basics. The problem is that our project members definitely won't be willing to do so. They keep complaining to me about the search function. Like me they don't ever need the full power of the engine, they only need it for finding file names in the document lib and thus expect it to work like windows file explorer. It would be really nice to have some simple document-lib-only search in future releases that provides exactly that.
Alex