Thx for your help. I will try it. Paul於 2018年3月28日星期三 UTC+8上午11時54分59秒寫道: > > 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 dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.