almost functional phrase search