lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gofio Code <>
Subject get ranking of facets in which documents have been inserted more recently
Date Tue, 17 Dec 2013 19:42:47 GMT
Hi all,

I have an schema where documents have an category. Using faceting, I can
get the different categories and the number of documents for each one.
Besides, I need to know a ranking of the categories in which documents have
been inserted more recently.

For example, supposse I have an schema with this field:

*<field name="category" type="string" indexed="true" stored="true" />*

then, I insert these documents, the last inserted is doc4:

insert doc1{category=CAT_C}
insert doc2{category=CAT_A}
insert doc3{category=CAT_A}
insert doc4{category=CAT_B}

I need to know the different facets and the number of elements, and I can
get it with something like this:

BUT, How Can get in which categories have been added documents more
recently and get something like this: CAT_B, CAT_A, CAT_C????

Thanks in advance!!

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