Can Someone Please help me out? I am stucked at wildcard search with special characters using StandardTokenizerFactory

The main problem is that wildcard queries ignore analysis completely. It is probably what brought you here: when a user searches for foo.* , the wildcard query will not apply analysis and thus will not drop the traling dot ( . ). It will then look for documents containing foo. (with a trailing dot), and won’t find anything since your analyzer dropped all the dots at indexing time.

1 Like