I want to do general substring search among billions of strings. The requirement is a little different from general fulltext search because I want a query \"ubst\" also can
Best index structure for this case is suffix tree
Lucene does not implements this type of index so its substring search is slow. But lucene has prefix tree index which mean you can do fast search if you search terms by their prefix.