Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jan
    @funkdoobiest
    we need real urls for SEO
    Mantas Marcinkevičius
    @einorler
    that way you wouldnt need to use the trait in the variant at all
    it is a real url to a product
    Jan
    @funkdoobiest
    yes, but not the same as before
    and I need this specific urls for seo
    Mantas Marcinkevičius
    @einorler
    difficult to say whats wrong in your situation, but it may be that if you insist on having the urls generated for variants and the problem is deeper, it may be that you will need to create a custom router
    the shrot description on how to do it is in the docs right now, a lot more in depth one will be accessible in the docs shortly
    you coud try to debug the generate method in ONGR\RouterBundle\Routing to see whats going wrong
    Mantas Marcinkevičius
    @einorler
    i ment ONGR\RouterBundle\Routing\DocumentUrlGenerator :)
    Mantas Marcinkevičius
    @einorler
    I've just taken a quick look at the ONGR url generator
    you should check if its so, but it seems, that it will not return a correct type because the variant is not a ES document, but a nested object
    this may be the problem in your case
    Mantas Marcinkevičius
    @einorler
    This message was deleted
    This message was deleted
    Jan
    @funkdoobiest
    thanks, I will have a look
    Jan
    @funkdoobiest
    problem is routing is just for „Document“ type not for „nested"
    Jan
    @funkdoobiest
    Hi
    I want to sort search result
    i found "$search->addSort()“, but I don’t find the right use statement
    andy docs for this?
    Mantas Marcinkevičius
    @einorler
    yes, this is a way to do it but if you are working with lists here you really could be using FilterManager Bundle
    Tautrimas Pajarskas
    @tautrimas
    Hello (: I see that ElasticsearchDSL does not support https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-aggregations-bucket-datehistogram-aggregation.html date_histogram aggregation. It does not differ a lot from histogram, but has some usefull datetime related features. Is there a reason why it's not implemented in ONGR?
    Simonas Šerlinskas
    @saimaz
    it’s on this ongr-io/ElasticsearchDSL#97
    Tautrimas Pajarskas
    @tautrimas
    So I am the first to complain (: I'll implement one against 0.x branch
    Simonas Šerlinskas
    @saimaz
    sure, if you need something implement it in 0.x and I’ll merge
    Jan
    @funkdoobiest
    Hi
    Array
    (
        [took] => 11
        [errors] => 1
        [items] => Array
            (
                [0] => Array
                    (
                        [update] => Array
                            (
                                [_index] => ongr_app
                                [_type] => product
                                [_id] => 1950
                                [status] => 400
                                [error] => Array
                                    (
                                        [type] => mapper_parsing_exception
                                        [reason] => failed to parse
                                        [caused_by] => Array
                                            (
                                                [type] => illegal_state_exception
                                                [reason] => Mixing up field types: class org.elasticsearch.index.mapper.core.LongFieldMapper$LongFieldType != class org.elasticsearch.index.mapper.internal.IdFieldMapper$IdFieldType on field _id
                                            )
    
                                    )
    
                            )
    
                    )
    
            )
    
    )
    I get this error when updating a document via api
    and I don’t understand why
        /**
         * @var string
         *
         * @ES\Id()
         */
        private $id;
    If i omit the „_id“ field on request it’s working
    Jan
    @funkdoobiest
    I am sure it worked before. Did something change?
    Simonas Šerlinskas
    @saimaz
    no, nothing was change for a while
    Tautrimas Pajarskas
    @tautrimas
    Hello, did you have a discussion, on wether to throw an exception or a PHP warning during $manager->commit()? This is a source of silent errors, especially when mapping is violated
    Jan
    @funkdoobiest
    I have the same problem
    Simonas Šerlinskas
    @saimaz
    I believe there was an issue in elasticsearch-php client about that to introduce exceptions. So at the begining we thought to leave handling of query error for them.
    So instead of throwing some exception we returning what we get from elasticsearch
    and in the response array there is error:true or false
    daibbcvl
    @daibbcvl
    Hi Simonas, I find a problem in ongr-io/ElasticsearchDSL#119, how can i make Pull request?
    Andreas Kleiber
    @akleiber
    hey there - when I have a document with a property that is an array of integers, do I have to use @ES\Embeddedor can I use @ES\Property somehow?
    Andreas Kleiber
    @akleiber
    nvm - forgot to add the field in _source
    Tautrimas Pajarskas
    @tautrimas
    Hey, guys. I remember long time ago having an error "Failed to execute phase [query_fetch], all shards failed" in TravisCI. We are getting this randomly from time to time. What is the fix for this? @saimaz
    Tautrimas Pajarskas
    @tautrimas
    Tautrimas Pajarskas
    @tautrimas
    @saimaz @einorler and to all. Above solution fixed our problem with obscure 503 Service Unavailable errors for Elasticsearch tests. No problems for 2 days, whereas every second buld failed previously.
    Simonas Šerlinskas
    @saimaz

    Hi @tautrimas if I remember correctly we upgraded elasticsearch version.

    Btw your provided way to wait when clustter will be yellow is a great solution.

    Tautrimas Pajarskas
    @tautrimas
    A lot of applications use this for testing on various github repositories even on different languages
    joaoluiznaufel
    @joaoluiznaufel_twitter
    hey guys, I'm having some problems to mapping data fields. the options is not been mapping