As with Lucene.net count how many times the phrase is met (not the word "something", namely the phrase "Hi how are you") in the text?
I sorry for my English.
As with Lucene.net count how many times the phrase is met (not the word "something", namely the phrase "Hi how are you") in the text?
I sorry for my English.
One way to do it is to use TermPositionVectors.
You basically get the positions for each of your query terms, and count the number of times they occur in the same order in your Document as they were in your Query.