indexing - Solr won't add my fields : schema.xml -
i working solr 5.2.1 , got working fine can't add field index. here schema.xml
<schema name="example" version="1.5"> <fields> <field name="cotid" type="string" indexed="true" stored="true" required="true"/> <field name="cotref" type="string" indexed="true" stored="true" required="true" multivalued="false"/> <field name="cottyperef" type="string" indexed="true" stored="true" required="true" multivalued="false"/> <field name="cottype" type="string" indexed="true" stored="true" required="true" multivalued="false"/> <field name="cottexte" type="string" indexed="true" stored="true" required="false" multivalued="true"/> </fields> <uniquekey>cotid</uniquekey> <types> <fieldtype name="string" class="solr.strfield" sortmissinglast="true"/> <fieldtype name="date" class="solr.triedatefield" precisionstep="0" positionincrementgap="0"/> <fieldtype name="long" class="solr.trielongfield" precisionstep="0" positionincrementgap="0"/> <fieldtype name="text_en" class="solr.textfield" positionincrementgap="100"> <!-- lots of details --> </fieldtype> <fieldtype name="currency" class="solr.currencyfield" precisionstep="8" defaultcurrency="usd" currencyconfig="currency.xml"/> </types> </schema>
can please ?
if modify of solr configuration files need restart solr starts according configuration setting. should restart solr or reload core , check error getting.
(refer below url, change url names according you) reload core
http://127.0.0.1:8080/solr/admin/cores?action=reload&core=core1
Comments
Post a Comment