i see... that part of the schema was written in another code block in the documentation:
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> will try with that :) thanks Alex On Mon, May 9, 2016 at 8:48 PM, Vitaly <13vitam...@gmail.com> wrote: > You don't have this type under <types>. The failure is about "int" because > it's the first one encountered in the list of fields. > > Regards, > Vitaly > > On Mon, May 9, 2016 at 7:16 PM, Alex De la rosa <alex.rosa....@gmail.com> > wrote: > >> Hi there, >> >> I'm trying to create a custom index as seen at >> http://docs.basho.com/riak/kv/2.1.4/developing/usage/search-schemas and >> I'm getting the following errors in my log: >> >> 2016-05-09 18:08:05.229 [error] <0.588.0>@yz_index:core_create:287 >> Couldn't create index scores: {ok,"400",[{"Content-Type","application/xml; >> charset=UTF-8"},{"Transfer-Encoding","chunked"}],<<"<?xml version=\"1.0\" >> encoding=\"UTF-8\"?>\n<response>\n<lst name=\"responseHeader\"><int >> name=\"status\">400</int><int name=\"QTime\">26</int></lst><lst >> name=\"error\"><str name=\"msg\">Error CREATEing SolrCore 'scores': *Unable >> to create core: scores Caused by: Unknown fieldType 'int' specified on >> field points*</str><int name=\"code\">400</int></lst>\n</response>\n">>} >> >> 2016-05-09 18:08:43.096 [error] <0.9673.1>@yz_index:sync_index:464 Solr >> core error after trying to create index scores: >> <<"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: >> *Unknown fieldType 'int' specified on field points*. Schema file is >> /var/lib/riak/yz/scores/./leaders.xml">> >> >> is saying the type "int" is unknown!! any ideas why? this is the schema >> i'm uploading: >> >> <?xml version="1.0" encoding="UTF-8" ?> >> <schema name="leaders" version="1.5"> >> <fields> >> <dynamicField name="*" type="ignored" /> >> <field name="points" type="int" indexed="true" >> stored="false"/> >> <field name="firstname" type="string" indexed="true" >> stored="true"/> >> <field name="lastname" type="string" indexed="true" >> stored="true"/> >> <field name="location" type="location_rpt" indexed="true" >> stored="true"/> >> <field name="_yz_id" type="_yz_str" indexed="true" >> stored="true" multiValued="false" required="true"/> >> <field name="_yz_ed" type="_yz_str" indexed="true" >> stored="false" multiValued="false"/> >> <field name="_yz_pn" type="_yz_str" indexed="true" >> stored="false" multiValued="false"/> >> <field name="_yz_fpn" type="_yz_str" indexed="true" >> stored="false" multiValued="false"/> >> <field name="_yz_vtag" type="_yz_str" indexed="true" >> stored="false" multiValued="false"/> >> <field name="_yz_rk" type="_yz_str" indexed="true" >> stored="true" multiValued="false"/> >> <field name="_yz_rt" type="_yz_str" indexed="true" >> stored="true" multiValued="false"/> >> <field name="_yz_rb" type="_yz_str" indexed="true" >> stored="true" multiValued="false"/> >> <field name="_yz_err" type="_yz_str" indexed="true" >> stored="false" multiValued="false"/> >> </fields> >> >> <uniqueKey>_yz_id</uniqueKey> >> >> <types> >> <fieldType name="location_rpt" >> class="solr.SpatialRecursivePrefixTreeFieldType" >> spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory" >> distErrPct="0.025" maxDistErr="0.000009" units="degrees" /> >> <fieldtype name="ignored" stored="false" indexed="false" >> multiValued="true" class="solr.StrField" /> >> <!-- YZ String: Used for non-analyzed fields --> >> <fieldType name="_yz_str" class="solr.StrField" >> sortMissingLast="true" /> >> </types> >> </schema> >> >> Thanks, >> Alex >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> >> >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com