On 10/25/2012 10:52 AM, Billy Newman wrote:
This is OK by me since I don't really want index that field anyways, but I am wondering if I am doing something wrong. Is there a way to mark a column in the Data Config as 'not indexed'. Or should I put a field in my Solr Schema and mark it as indexed=false, stored=false?
For fields that I do not want to have in my index even though they are presented by my database to the dataimport handler, I use the following fieldtype:
<fieldtype name="ignored" class="solr.StrField" stored="false" indexed="false" multiValued="true" omitNorms="true"/>
Then under fields, I can do the following. I probably don't need the indexed/stored parameters on the field because they are specified on the fieldType, but it isn't hurting anything to have them:
<field name="some_field" type="ignored" indexed="false" stored="false"/> Thanks, Shawn