Copied to clipboard

Flag this post as spam?

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


  • Damon 217 posts 288 karma points
    Jan 11, 2018 @ 11:30
    Damon
    0

    Examine search and creation date

    Hi,

    I want to use the create date to order pages returned from Examine search, but that field does not seem to be there. I have added but only update appears in the results. Does anyone know how to use create date?

    <IndexAttributeFields>
      <add Name="id" />
      <add Name="nodeName" />
      <add Name="updateDate" EnableSorting="true" Type="DateTime" />
      <add Name="writerName" />
      <add Name="nodeTypeAlias" />
    
      <add Name="date" />
      <add Name="Last-Modified" />
      <add Name="Last-Save-Date" />
      <add Name="modified" />
      <add Name="creation-date" />
      <add Name="created" />
      <add Name="Creation-Date" />
    
    </IndexAttributeFields>
    

    Umbraco 7.6.1

    Thanks,

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Jan 11, 2018 @ 11:35
    Bjarne Fyrstenborg
    0

    Hi Damon

    Have you tried with "CreatedDate" or "CreateDate"?

    <add Name="createdDate" EnableSorting="true" Type="DateTime" />
    

    /Bjarne

  • Damon 217 posts 288 karma points
    Jan 11, 2018 @ 12:14
    Damon
    0

    Hi Bjarne,

    added those thank, but

    its still not appearing in the search results.

    Tried re compiling and reindexing too.

    Any ideas?

    Is there only a submit of fields available to Examine search?

    Thanks,

  • Damon 217 posts 288 karma points
    Jan 11, 2018 @ 13:24
    Damon
    0

    Hi,

    to get this working you need to follow this:

    https://our.umbraco.org/forum/developers/extending-umbraco/25975-Examine-range-createDate

    Kind Regards,

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Jan 11, 2018 @ 13:33
    Bjarne Fyrstenborg
    0

    Okay, I sounds strange if create date not is available as update. Does it work without EnableSorting and Type attributes.

    <IndexAttributeFields>
        <add Name="createDate" />
    </IndexAttributeFields>
    

    Otherwise I guess the createDate kan be added using GatheringContentData event:

    http://staheri.com/my-blog/2015/march/custom-examine-indexing-using-umbraco-cache/

    /Bjarne

Please Sign in or register to post replies

Write your reply to:

Draft