Skip to main content

Can I use my own field for a custom date, and use it for sorting and display in regular search results?

Comments

2 comments

  • Robert Dennis

    I found that using the format:

    <meta name="published" content="20140315T01:50:58"/>

    kept the page from being indexed.

    While using the format

    <meta name="published" content="2014-03-15T01:50:58"/>

    worked as expected.

    This article seems to state that both formats are acceptable. Is this a bug, or a mistake in this article? 

    0
  • David Hoernig

    In reply to Robert Dennis:

    I had the same experience using version 8.5.1 but found that treating the published value as a string in the mapping.json resolved the issue.

     "published": {
    "type": "string",
    "store": "yes",
    "analyzer": "alpha_analyzer",
    "include_in_all": "false"
    },

     

    0

Please sign in to leave a comment.