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

Tracking opt-out nodetype defines 'height' as string, breaking Elasticsearch indexing #22

Open
kdambekalns opened this issue May 9, 2018 · 5 comments
Labels

Comments

@kdambekalns
Copy link
Member

Including the Matomo pakage broke Elasticsearh indexing for me, since I have a nodetype that has a height property defined as integer.

The Flowpack.Neos.Matomo:TrackingOptOut type defines height as string, which breaks mapping setup:

Elasticsearch request failed.
[PUT http://localhost:9200/acmecom-1525879415/Acme-AcmeCom:Video/_mapping]:
Array
(
    [root_cause] => Array
        (
            [0] => Array
                (
                    [type] => illegal_argument_exception
                    [reason] => mapper [height] cannot be changed from type [string] to [int]
                )

        )

    [type] => illegal_argument_exception
    [reason] => mapper [height] cannot be changed from type [string] to [int]
)
@kdambekalns kdambekalns self-assigned this May 9, 2018
@kdambekalns
Copy link
Member Author

Of course this can be seen as "my problem", but I'd assume that height being an integer is more common… so maybe this can be changed to an integer and the unit can be set in the template? Argh, I don't know. :/

@kdambekalns kdambekalns removed their assignment May 9, 2018
@Sebobo
Copy link
Member

Sebobo commented May 9, 2018

I think we could just exclude it from being indexed at all by default.
The problem is that for width it can be percent or pixels therefore I made it a string.
We can also add a dropdown to select the unit but that's also not soooo pretty.

@Sebobo
Copy link
Member

Sebobo commented Oct 24, 2018

@kdambekalns I still don't fully understand why this causes an error.
The chance that several node types have a same named property with a different type is not so uncommon. Then that should cause an issue every time?

@Sebobo Sebobo added the bug label Oct 24, 2018
@kdambekalns
Copy link
Member Author

Not uncommon but with 1.x and 2.x it wasn't an error. With 5.x and later it is. I guess that's why this is seen rarely so far.

@kdambekalns
Copy link
Member Author

Still an issue…

I think we could just exclude it from being indexed at all by default.

Probably the best solution.

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

No branches or pull requests

2 participants