Copied to clipboard

Flag this post as spam?

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


  • jivan thapa 194 posts 681 karma points
    Jan 22, 2015 @ 13:01
    jivan thapa
    0

    naming convention for custom examine field

    U7.1.6

    I had to index multinode picker's csv by replacing ',' with white space. And solution is working fine.

    However Umbraco is throwing warming log errors saying "Dropping property "customExamineFieldName" because it does not belong to the content type."

    WARN  Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache - [Thread 63] Dropping property "customExamineFieldName" because it does not belong to the content type.
    

    Here is how data is added to the index.

     var csv1 = csvData.Replace(",", " ");
                e.Document.Add(new Field("customExamineFieldName", csv1, Field.Store.YES,
                    Field.Index.ANALYZED));
    

    When I looked into source code, it says something about "if (i.Key.InvariantStartsWith("__"))"

    https://github.com/umbraco/Umbraco-CMS/blob/76ab09bfc8c79aea8e9d20a58f8d07cf1c42d17a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs#L542

    Does "customExamineFieldName" should be "__customExamineFieldName"?

    Thanks

    /Jivan

Please Sign in or register to post replies

Write your reply to:

Draft