Demo implementation of inverted index.
var docs = []string{
"new home sales top forecasts.",
"home sales rise in july!",
"increase in home sales in july...",
"july new home sales rise,",
}
when we search for home sales
we get the following results: