Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali 32 posts 125 karma points
    Dec 14, 2023 @ 12:07
    Ali
    0

    Customization of Backoffice Search works locally but not in prod

    Hi,

    What have I forgotten to set or configure in order for my customization of backoffice search to work in production? I have implemented it using the guide on https://docs.umbraco.com/umbraco-cms/extending/backoffice-search by adding my custom fields:

      //Adding custom field to search in document types
      public new IEnumerable<string> GetBackOfficeDocumentFields()
      {
          return new List<string>(base.GetBackOfficeDocumentFields())
          { "sku", "price", "productName", "productInformation", "ingress" };
      }
    

    Backoffice search not working in the production: enter image description here

    In production, the ExternalIndex is working and returning results using the same search word: enter image description here

    King regards

    Ali

  • Ali 32 posts 125 karma points
    Dec 14, 2023 @ 13:20
    Ali
    0

    Hi,

    Because of multilang site, custom fileds with vary by culture ge culture code at the end in index field name.

    Changing to this I was able to search in those fields in the particular culture:

     { "sku_nb-no", "price_nb-no", "productName_nb-no", "productInformation_nb-no", "ingress_nb-no"}
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies