Re: add new Fields with SolrJ without changing schema.xml

2014-06-19 Thread benjelloun
olean > >> > indexed,Boolean stored,Boolean multivalued,Boolean > >> > sortmissinglast,Boolean required){ > >> > > >> > ............. > >> > ..... > >> >

Re: add new Fields with SolrJ without changing schema.xml

2014-06-19 Thread Alexandre Rafalovitch
gt;> > sortmissinglast,Boolean required){ >> > >> > . >> > . >> >} >> > >> > any exemple please, >> > thanks, >> > Best regards, >> > Anass BENJELLOUN >

Re: add new Fields with SolrJ without changing schema.xml

2014-06-19 Thread benjelloun
--- > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/add-new-Fields-with-SolrJ-without-changing-schema-xml-tp4142515p4142571.html > To unsubscribe from add new Fields with SolrJ without changing > sche

Re: add new Fields with SolrJ without changing schema.xml

2014-06-18 Thread Walter Underwood
Why can't you change schema.xml? --wunder On Jun 18, 2014, at 8:56 AM, benjelloun wrote: > Hello, > > this is what i want to do: > > public static void addNewField(Boolean uniqueId,String type, Boolean > indexed,Boolean stored,Boolean multivalued,Boolean > sortmissinglast,Boolean re

Re: add new Fields with SolrJ without changing schema.xml

2014-06-18 Thread benjelloun
Hello, this is what i want to do: public static void addNewField(Boolean uniqueId,String type, Boolean indexed,Boolean stored,Boolean multivalued,Boolean sortmissinglast,Boolean required){ . .

Re: add new Fields with SolrJ without changing schema.xml

2014-06-18 Thread benjelloun
Hello, i'm using this configuration on solrconfig.xml: true managed-schema Can you please give me an exemple on SolrJ for adding a new field. thanks, best regards, Anass BENJELLOUN -- View this message in context: http://lucene.472066.n3.nabble.com/add-new-Fields-w

Re: add new Fields with SolrJ without changing schema.xml

2014-06-18 Thread Erick Erickson
bq: I need to add new Fields with SolrJ without changing schema.xml You have three options: 1> change the schema.xml file. but you say you can't. Why not? 2> use dynamic fields. If you're lucky, you have the stock schema.xml and can use them. They'll require some suffix

add new Fields with SolrJ without changing schema.xml

2014-06-18 Thread benjelloun
Hello, I need to add new Fields with SolrJ without changing schema.xml. this is my code java : HttpSolrServer server = new HttpSolrServer("http://localhost:8080/solr";); SolrInputDocument doc = new SolrInputDocument(); doc.addField("id", id); doc.addField("Titre&qu