Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The $delete event does not work #78

Open
vking34 opened this issue Jan 27, 2021 · 0 comments
Open

The $delete event does not work #78

vking34 opened this issue Jan 27, 2021 · 0 comments

Comments

@vking34
Copy link

vking34 commented Jan 27, 2021

Here is my engine configuration:

{
    "engineId": "2",
    "engineFactory": "com.actionml.engines.ur.UREngine",
    "sparkConf": {
        "master": "local",
        "spark.serializer": "org.apache.spark.serializer.KryoSerializer",
        "spark.kryo.registrator": "org.apache.mahout.sparkbindings.io.MahoutKryoRegistrator",
        "spark.kryo.referenceTracking": "false",
        "spark.kryoserializer.buffer": "300m",
        "spark.executor.memory": "4g",
        "spark.driver.memory": "3g",
        "spark.es.index.auto.create": "true",
        "spark.es.nodes": "elasticsearch",
        "spark.es.nodes.wan.only": "true"
    },
    "algorithm": {
        "indicators": [{
                "name": "view"
            },
            {
                "name": "buy"
            },
            {
                "name": "add-to-cart"
            },
            {
                "name": "rating"
            }
        ]
    }
}

According to the Universal Recommender document, to delete item, we use $delete event.
https://actionml.com/docs/h_ur_input#delete-items
However, I tried to use the $delete event:

{
    "event": "$delete",
    "entityType": "item",
    "entityId": "3453",
    "eventTime": "2021-01-14T00:39:45.618Z"
}

However, when I query, the item still remains in the result. It seems not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant