Fix dirsearch parser to not get confused by logic terms in values and to ...

...handle quoted single word values

This does change how queries with a quotation mark in the middle of a word is handled (only quotes at the beginning and end of words are counted), which IMHO is more sensible.