eXtensibleCatalog / Drupal-Toolkit

The eXtensible Catalog Drupal Toolkit
0 stars 0 forks source link

Add admin UI to set excludable values #287

Open patrickzurek opened 7 years ago

patrickzurek commented 7 years ago

JIRA issue created by: pkiraly Originally opened: 2011-08-24 09:29 AM

Issue body: (nt)

patrickzurek commented 7 years ago

JIRA Comment by user: pkiraly JIRA Timestamp: 2011-08-24 09:29 AM

Comment body:

FogBugz task #505 required to remove the 'Text' value from the subject facet. Now the xc_solr/xc_solr.index.inc xc_solr_get_excludable_values() contains the excludable values as an array in the code. Two other functions (xc_solr_field_with_excludable_values() and xc_solr_exclude_values($field, $values)) govern the exclusions during indexing time. The wired values should be replaced by an admin UI, where the admin can add a list of excludable values for any fields and facets. The UI contains a list of the applicable rules (fields - values pairs), and an edit for with a dropdown list of fields, and a textarea where the admin can enter excludable values separated by new lines. Currently the value is the full value of the field instance.

A possible improvement would be a similar rule for replacements, if a fild contains value A, DT will replace it with value B.