If the stop word is the last word in your query i.e. "hello world" and world is set as a stop word, the reason is likely because the queryType value in your config is prefixLast. Note the usage notes here with regard to queryType. You can change the queryType to prefixNone so that no query words are interpreted as prefixes.