I want my dynamic field names to be able to include hash characters. Is this possible when Solr is in schemaless mode?
Asked
Active
Viewed 799 times
1 Answers
3
Found it. In the file solrconfig.xml I changed the following block of code
<processor class="solr.FieldNameMutatingUpdateProcessorFactory">
<str name="pattern">[^\w-\.]</str>
<str name="replacement">_</str>
</processor>
to
<processor class="solr.FieldNameMutatingUpdateProcessorFactory">
<str name="pattern">[^\w-\.\#]</str>
<str name="replacement">_</str>
</processor>

Joe Walsh
- 210
- 1
- 11
-
The above change will affect any other fields which uses this factory. May be you can create your own and then use it for your case. – Ramzy Jul 31 '15 at 13:03