Announcement

Collapse
No announcement yet.

Changing facet from Text Field to Mult-Text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing facet from Text Field to Mult-Text

    I need to change a facet fillter from Text Field to Multi-Text. That filter is used by every product on our site.
    Claude seemed to think it is possible but there is a warning in Miva saying I will loose all the data in that field.
    Assuming the Miva warning is correct but just wanted to check, in case something has changed that makes this now possible.

    Claude answer
    Here's what you need to know about making that switch:
    What changes (and what doesn't)
    Changing the custom field type from Single Text to Multi Text in Miva does not delete or alter your existing data. The current single brand values on all your products stay intact — they just become the first (and only, for now) entry in what is now a multi-value field.
    How Multi Text works for facets
    With Multi Text, each product's field holds multiple lines, and Miva treats each line as a separate facet value. So a product with both "Nike" and "Jordan" in its brand field will show up when a shopper filters by either brand. Both values generate independent facet options in the filter panel.
    What you'll need to do after switching
    For the products that have two brands, you'll need to go in and add the second brand as an additional line in the field. The existing single-brand products need no changes.
    Things to watch out for
    The data is case- and space-sensitive. "Nike" and "nike" would create two separate facet entries, so keep the same formatting you've already been using when adding second brand values.
    Also, if you're using any third-party search like SearchSpring or Klevu, the multi-value data may need to be re-indexed or re-mapped on their side — worth a quick check with that vendor.
    Otherwise this is a pretty safe change for your use case. The switch is essentially additive — you're unlocking the ability to store more values per product without touching what's already there.

    Miva warning
    Warning: Changing field types between multitext and non-multitext will delete all existing product values for this custom field.
    pat
    http://lockitt.com

    #2
    Patd265 The warning is correct. Your data will be lost. My suggestion would be to export the catalog with the text custom field. Then you can update the custom field to be multi-text and reimport the data mapped to the multi-text custom field.
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Nick That's what I thought. There was some common sense hope that perhaps it worked from single to multi, since there is only one value, but not from multi to single. Which is also what the warning actually states (multi to single).
      Anyway, good example for not blindly trusting AI.
      pat
      http://lockitt.com

      Comment

      Working...
      X