I use Hibernate Search in version 5.11.5 together with Apache Lucene 5.5.5. In my example I use the StopFilterFactory with the default stop word set defined in StopAnalyzer.ENGLISH_STOP_WORDS_SET (so e.g. "this", "will", "be", ...).
Now I index three music song titles: "I will survive", "we will rock you", "this will be"
My search query is "Rock will make me survive". So I find "I will survive" and "we will rock you", but not "this will be", because this song consists completely of stop words. If I search for "this will be", then I find nothing.
Now I need a "fallback" search for these songs: If and only if a song title consists completely of stop words, then I would like to find them if all words are contained in my search string. So searching for "I will be a fireman" does not find "this will be", but searching for "I will be like this" finds "this will be".
Do you know how I can achieve this?