lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Pickler <>
Subject Top 10 Terms in Index (by date)
Date Mon, 01 Apr 2013 21:32:13 GMT
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?

Andy Pickler

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message