I would need to index text fields in this way:
given a string "what's the weather like today?" I would like to index a document with all the word bigrams and their counts (also for single words) as fields:
"what's" with count 1
"the" with count 1
"what's the" with count 1
"the weather" with count 1
Then, I need to be able to query for a word (or a bigram) and get its count over all documents.
How should I do?