Hi,
I have not been able to correctly set up dates for items.

I am using the following approach:

*specifying date range in query and comparing to date attached to
items.(http://actionml.com/docs/ur_advanced_tuning
<http://actionml.com/docs/ur_advanced_tuning>)*

engine.json:

*"algorithms": [*
*    {*
*      "comment": "simplest setup where all values are default, popularity
based backfill, must add eventsNames",*
*      "name": "ur",*
*      "params": {*
*        "appName": "MyApp1",*
*        "indexName": "urindex",*
*        "typeName": "items",*
*        "comment": "must have data for the first event or the model will
not build, other events are optional",*
*        "eventNames": ["purchase","preview", "view" ],*
*        "dateName":"releaseDate"   // our datefield*
*      }*
*    }*
*  ]*


I am sending event as

*{*
*    "event" : "$set",*
*    "entityType" : "item",*
*    "entityId" : "some-item-id",*
*    "properties" : {*
*        "releaseDate": "2016-04-15T03:34:05Z"*
*    },*
*    "eventTime" : "2016-04-15T03:34:05Z"*
*}*


When I check ES, the releaseDate field is mapped as string instead of
DateTime:

ES Mapping:
*"releaseDate" : {*
*            "type" : "string",*
*            "index" : "not_analyzed"*
*          },*
*          "release_date" : {*
*            "type" : "string",*
*            "index" : "not_analyzed"*
*          },*



*Misconfigured date information, either your engine.json date settings or
your query's dateRange is incorrect.*

This error keeps getting printed in the logs.

Any help appreciated. Thanks a lot in advance.

Regards
Harsh Mathur
[email protected]

*“Perseverance is the hard work you do after you get tired of doing the
hard work you already did."*

Reply via email to