I'd like to use the search service to count the number founds of a specific word. For example, I'd like to do a query to count the number of word 'amount' in a document (full text search). The result should be 0 to n items.
Do you know a Lucene query or sample of code to do that?
This is really easy, BUT only possible, when Term Vectors are stored during indexing. And here is my problem: I don't know if Alfresco does this per default (1). And, if Alfresco does not, if and how it is possible to enable it without touching the source code (2).
I suppose you can prove (1) with Luke, the Lucene Index Toolbox from http://www.getopt.org/luke, by examing one the indices, that Alfresco creates…