|
|
|
|
|
by enf
5192 days ago
|
|
The reason you can only search for whole words is that it's straightforward to build an inverted index for whole words, but it takes dramatically more storage to make an index to search for arbitrary substrings, since there are exponentially many substrings of each string, most of which you would never want to search for. |
|
Russ Cox has even indexed regexp searches this way.