lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <>
Subject Re: Top 10 Terms in Index (by date)
Date Mon, 01 Apr 2013 22:31:19 GMT
So you have one document per user comment? Why not use faceting plus
filtering on the "dateCreated" field? That would count "number of
documents" for each term (so, in your case, if a term is used twice in one
comment it would only count once). Is that what you are looking for?


On Mon, Apr 1, 2013 at 6:32 PM, Andy Pickler <> wrote:

> 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

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