Yes Andrea, I have already tried that, I have value associated with field. This issue is coming when I set 'required="true"' . If i remove this then everything works fine. I am not getting why this issue occurs when I set required="true".
Can you please provide me some pointers to look see what may be the reason. Thanks, Rushikesh Garadade On Sat, Jun 9, 2018 at 2:56 PM Andrea Gazzarini <a.gazzar...@sease.io> wrote: > Hi Rushikesh, > I bet your client is not doing what you think. The error is clear, the > incoming document doesn't have that field. > > I would investigate more on the client side. Without entering in > interesting fields like unit testing, I guess the old and good > System.out.println, just before sending the document to Solr, could help > you a lot here. > > Best, > Andrea > > On Sat, 9 Jun 2018, 10:08 Rushikesh Garadade, <rushikeshgarad...@gmail.com > > > wrote: > > > Hi, > > I am using solr 7.3 with java spring boot. I schema of my collection I > have > > set schema as > > <field name="mailReceiveDate" type="pdate" docValues="true" > indexed="true" > > required="true" stored="true"/> > > I have done all other necessary settings required for projects to run. > > > > When I run a application and trying to insert document via CODE. I am > > getting error "*missing required field : mailReceiveDate *". Although I > > have provided the field value. > > Following details code error of the same > > > > > > Caused by: > > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: > Error > > from server at http://<HOTNAME>:8983/solr: > > [doc=8ac2bcf6-7a56-4fed-b83e-7ccc00454088] missing required field: > > mailReceiveDate > > at > > > > > org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:612) > > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b - > > sarowe - 2018-03-02 15:09:35] > > at > > > > > org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279) > > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b - > > sarowe - 2018-03-02 15:09:35] > > at > > > > > org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268) > > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b - > > sarowe - 2018-03-02 15:09:35] > > at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160) > > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b - > > sarowe - 2018-03-02 15:09:35] > > at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173) > > ~[solr-solrj-6.6.3.jar:6.6.3 d1e9bbd333ea55cfa0c75d324424606e857a775b - > > sarowe - 2018-03-02 15:09:35] > > at > > > > > org.springframework.data.solr.core.SolrTemplate.lambda$saveBean$2(SolrTemplate.java:219) > > ~[spring-data-solr-3.0.7.RELEASE.jar:3.0.7.RELEASE] > > at > > > > > org.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:166) > > ~[spring-data-solr-3.0.7.RELEASE.jar:3.0.7.RELEASE] > > ... 58 common frames omitted > > > > > > Please let me know what can be the issue? > > > > Thanks, > > Rushikesh Garadade > > >