Please, send an example of your record (from [1]) and attach your schema [2]
[1] http://localhost:8080/solr/search/select?indent=on&q=*:* [2] http://localhost:8080/solr/search/admin/file?file=schema.xml&contentType=text/xml;charset=utf-8 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette On Tue, Aug 14, 2018 at 11:42 AM euler <[email protected]> wrote: > > Dear All, > > I would like to ask for help regarding my solr query. As I've stated in my > previous post below, running the query > http://localhost:8080/solr/search/select?indent=on&rows=0&facet=true&facet.date=dc.date.accessioned_dt&facet.date.start=2018-01-01T00:00:00Z&facet.date.end=2019-01-01T00:00:00Z&facet.date.gap=%2B1MONTH&q=search.resourcetype:2 > gave me zero values. I've found out that when I run > http://localhost:8080/solr/search/select?indent=on&q=*:* in our production > server, I don't have the field dc.date.accessioned_dt thus the zero values. > In my local server, after doing a site restore and running the above solr > query, it gave me the correct values. Is there a way to fix the solr in my > production server such that it will have the appropriate fields? Other > examples found in > https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Examples also gave me the > incorrect values because of my corrupt data or missing fields in my solr core. > > Thanks in advance and best regards, > euler > > On Wednesday, December 13, 2017 at 10:02:28 AM UTC+8, euler wrote: >> >> Hi ~~helix84, >> >> When I tried to run the example in Breakdown of submitted items per month, >> the values returned are all zeroes. Am I missing something (ie cron or >> scheduled tasks to run)? Other examples in the >> https://wiki.duraspace.org/display/DSPACE/Solr page worked for me, except >> the breakdown of submitted items per month and the example on Date of last >> deposited item which gave me an incorrect date. >> >> Thanks in advance, >> euler >> >> On Thursday, April 6, 2017 at 3:28:31 PM UTC+8, helix84 wrote: >>> >>> On Thu, Apr 6, 2017 at 5:23 AM, Gary Browne <[email protected]> wrote: >>> > Is there a way I can query Solr to give me information about submitted >>> > items. eg. how many items submitted in a given period. I'm imagining >>> > something using date.accessioned but I've been unable to get any queries >>> > to >>> > work. >>> >>> You can start from the example on the statistics index: >>> >>> https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Statistics:breakdownofdownloadspermonth >>> >>> Change the core to search (where dc.date.accessioned is stored), change the >>> query to ask for items and the facet field to query dc.date.accessioned_dt >>> (*_dt fields are the date types which can be faceted like dates; if in >>> doubt, check the Schema Browser for a particular core in the Solr Admin UI >>> or its schema.xml file). >>> >>> I added the new example here: >>> >>> https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Breakdownofsubmitteditemspermonth >>> >>> >>> > are there any other documents with more Solr query examples - I'm finding >>> > there isn't enough explanation of parameters for me to work out how to use >>> > what and when? >>> >>> Description of Solr parameters are not specific to DSpace, so I'm referring >>> to Solr documentation. Please, check it out: >>> >>> "Using the knowledge of particular fields from Solr Admin and Solr syntax >>> (SolrQuerySyntax, CommonQueryParameters) you can make your own search >>> requests. You can also read a brief tutorial to learn the query syntax >>> quickly." >>> >>> >>> Regards, >>> ~~helix84 >>> >>> Compulsory reading: DSpace Mailing List Etiquette >>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette >>> > -- > All messages to this mailing list should adhere to the DuraSpace Code of > Conduct: https://duraspace.org/about/policies/code-of-conduct/ > --- > 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. -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- 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.
