Hello, I would like to use Apache *Lucene 4*.x and count words in the string, for example: "I loved cats, but now I really love dogs" - count "love" word in the String - result should be 2. I would like to count how many times there was: "give up" in the String as well.
I spend a lot of time to resolve that problem, but I really cannot find any solution. Do you know how to resolve this problem ? Thanks for help