Our company has an application that is "Facebook-like" for usage by
enterprise customers.  We'd like to do a report of "top 10 terms entered by
users over (some time period)".  With that in mind I'm using the
DataImportHandler to put all the relevant data from our database into a
Solr 'content' field:

<field name="content" type="text_general" indexed="true" stored="false"
multiValued="false" required="true" termVectors="true"/>

Along with the content is the 'dateCreated' for that content:

<field name="dateCreated" type="tdate" indexed="true" stored="false"
multiValued="false" required="true"/>

I'm struggling with the TermVectorComponent documentation to understand how
I can put together a query that answers the 'report' mentioned above.  For
each document I need each term counted however many times it is entered
(content of "I think what I think" would report 'think' as used twice).
 Does anyone have any insight as to whether I'm headed in the right
direction and then what my query would be?

Thanks,
Andy Pickler

Reply via email to