Thanks a lot Steve. It worked out. Regards, Jeniba Johnson
-----Original Message----- From: Steve Rowe [mailto:sar...@gmail.com] Sent: Monday, July 18, 2016 7:57 PM To: solr-user@lucene.apache.org Subject: Re: How to Add New Fields and Fields Types Programmatically Using Solrj Hi Jeniba, You can add fields and field types using Solrj with SchemaRequest.Update subclasses - see here for a list: <http://lucene.apache.org/solr/6_1_0/solr-solrj/org/apache/solr/client/solrj/request/schema/SchemaRequest.Update.html> There are quite a few examples of doing both in the tests: <https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=blob;f=solr/solrj/src/test/org/apache/solr/client/solrj/request/SchemaTest.java;h=72051b123aadb2df57f4bf19abfedb0ac0deb6cd;hb=refs/heads/branch_6_1> -- Steve www.lucidworks.com > On Jul 18, 2016, at 1:59 AM, Jeniba Johnson <jeniba.john...@lntinfotech.com> > wrote: > > > Hi, > > I have configured solr5.3.1 and started Solr in schema less mode. Using > SolrInputDocument, Iam able to add new fields in solrconfig.xml using Solrj. > How to specify the field type of a field using Solrj. > > Eg <field name="id" type="string" indexed="true" stored="true" > required="true" multivalued="false" /> > > How can I add field type properties using SolrInputDocument programmatically > using Solrj? Can anyone help with it? > > > > Regards, > Jeniba Johnson > > > ________________________________ > > The contents of this e-mail and any attachment(s) may contain confidential or > privileged information for the intended recipient(s). Unintended recipients > are prohibited from taking action on the basis of information in this e-mail > and using or disseminating the information, and must notify the sender and > delete it from their system. L&T Infotech will not accept responsibility or > liability for the accuracy or completeness of, or the presence of any virus > or disabling code in this e-mail"