On Fri, Aug 28, 2015, at 11:09 PM, Hari Iyer wrote:
> Hi,
> 
> I am new to Solr and am trying to create dynamic field rules in my
> Schema. 
> 
> I would like to use file name suffix to indicate other properties besides
> the data type and multivalued as provided in the default schema. 
> 
> It appears that specifying this via a pattern leads to duplication as
> there
> are various combinations that need to be specified here. It would help to
> have code where I can build parts of the rule 
> 
> e.g. if suffix has '_s' then set stored=true
> 
> if suffix has '_m' then set multivalued=true
> 
> and so on
> 
>  
> 
> From the documentation and various implementation examples (drupal etc) I
> can only see them specifying all combinations.
> 
> Is there any way (plugin?) to incrementally build the rule?

Nope - you will need to have one for each combination, so _s, _sm, _m,
etc. Each field can only match a single field type, otherwise it'd be
impossible to work out which rules should be considered from the
different field types.

Upayavira

Reply via email to