--
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
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
schema.xml, click here
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro
from add new Fields with SolrJ without changing
schema.xml, click here
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4142515code=YW5hc3MuYm5qQGdtYWlsLmNvbXw0MTQyNTE1fC0xMDQyNjMzMDgx
.
NAML
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp
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, nomdocument);
the id and Titre
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 to match the pattern
though
Hello,
i'm using this configuration on solrconfig.xml:
schemaFactory class=ManagedIndexSchemaFactory
bool name=mutabletrue/bool
str name=managedSchemaResourceNamemanaged-schema/str
/schemaFactory
Can you please give me an exemple on SolrJ for adding a new field.
thanks,
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){
.
.
Why can't you change schema.xml? --wunder
On Jun 18, 2014, at 8:56 AM, benjelloun anass@gmail.com wrote:
Hello,
this is what i want to do:
public static void addNewField(Boolean uniqueId,String type, Boolean
indexed,Boolean stored,Boolean multivalued,Boolean