Hacker News new | ask | show | jobs
by joking 618 days ago
in reality, terms are stored with the position, so if you use stopwords

to be or not to be should be indexed as 2-be 6-be and a phrase match should match exactly. the problem would be that it would match also "be not to or be", as the distance between the 2 "be" is also 3.

Long time ago it was necessary, but nowadays you loose more that what you gain using stopwords.