on 2018 Dec 12 5:44 PM
Like string, text etc, can we add a new field type to be tagged to the indexed property to allow custom processing for a specific field
Request clarification before answering.
Hi you could try adding this in the schema.xml present under /config/solr/
<fieldType name="textsample" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory" />
<filter class="solr.StopFilterFactory" words="lang/stopwords_en.txt" ignoreCase="true" />
<filter class="solr.ManagedStopFilterFactory" managed="en" />
<filter class="solr.SynonymFilterFactory" ignoreCase="true" synonyms="synonyms.txt"/>
<filter class="solr.ManagedSynonymFilterFactory" managed="en" />
<filter class="solr.WordDelimiterFilterFactory" preserveOriginal="1"
generateWordParts="1" generateNumberParts="0" catenateWords="1"
catenateNumbers="0" catenateAll="0" splitOnCaseChange="1" />
<filter class="solr.LowerCaseFilterFactory" />
<filter class="solr.KeywordRepeatFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" protected="protwords.txt" language="English" />
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Yes and getting this Error from server at http://localhost:8983/solr: ERROR: [doc=dtGlobalProductCatalog/Online/12866] unknown field 'dtTireSize_tiresearch'
This is even after I removed the core completely and re-run the index
"tiresearch" is the new fieldType
Hi Niranjan,
https://help.hybris.com/1811/hcd/8c7dea5386691014aceaa6b5ab3e31b9.html
Please go through this link and write value resolver for the custom field and add the property in the solr.impex along with the resolver bean.
I hope this might help you.
Thanks,
G Gopinath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe you are talking about adding a new field. I was saying about field type. If you see currently, there is SolrPropertiesType Enum which has string, text etc. How do we add a new custom field type to this. I was able to add, and assign to fields but the issue was when it interacted with the Solr server
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.