I found the code in the ItemCountDAOSolr.java
DiscoverQuery query = new DiscoverQuery();
query.setFacetMinCount(1);
query.addFacetField(new DiscoverFacetField("location.comm",
DiscoveryConfigurationParameters.TYPE_STANDARD,
-1,
DiscoveryConfigurationParameters.SORT.COUNT,
false));
query.addFacetField(new DiscoverFacetField("location.coll",
DiscoveryConfigurationParameters.TYPE_STANDARD,
-1,
DiscoveryConfigurationParameters.SORT.COUNT,
false));
query.addFilterQueries("search.resourcetype:2"); // count only
items
query.addFilterQueries("NOT(discoverable:false)"); // only
discoverable
query.setMaxResults(0);
How do I write the code to count the item without bitstream?
<https://lh3.googleusercontent.com/-4rTgfX8SnHM/WrsSBFdzYiI/AAAAAAAABHE/uS188i-TToYt4Cm9TQISzaffZsVqqWfxQCLcBGAs/s1600/pic.png>
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.