Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    patilvikram
    @patilvikram
    hey albert
    are you there?
    Alberto Paro
    @aparo
    Perhaps I did not implemented it.
    I'm in car
    patilvikram
    @patilvikram
    sorry will ping you later
    Alberto Paro
    @aparo
    give me 15 minutes
    patilvikram
    @patilvikram
    sure
    Alberto Paro
    @aparo
    ok
    The boot query is missing
    to implement a new query, its quite simple
    if you look to query.py
    you need the property of the new query and write a serialize method for the query
    for example look at :
    class FuzzyQuery(Query):
        """
        A fuzzy based query that uses similarity based on Levenshtein (edit distance) algorithm.
        Note
            Warning: this query is not very scalable with its default prefix
            length of 0 - in this case, every term will be enumerated and cause an
            edit score calculation. Here is a simple example:
        """
    
        _internal_name = "fuzzy"
    
        def __init__(self, field, value, boost=None, min_similarity=0.5,
                     prefix_length=0, **kwargs):
            super(FuzzyQuery, self).__init__(**kwargs)
            self.field = field
            self.value = value
            self.boost = boost
            self.min_similarity = min_similarity
            self.prefix_length = prefix_length
    
        def _serialize(self):
            data = {
                'value': self.value,
                'min_similarity': self.min_similarity,
                'prefix_length': self.prefix_length,
                }
            if self.boost:
                data['boost'] = self.boost
            return {self.field: data}
    patilvikram
    @patilvikram
    cool thanks
    I was looking for booting query but I will try to implement in next few days
    boosting*
    Alberto Paro
    @aparo
    I'll implement for you in 15 minutes
    let me finish updating macosx
    Alberto Paro
    @aparo
    ok pushed boostingquery in master
    patilvikram
    @patilvikram
    thanks
    judyyanluo
    @judyyanluo
    hi, i'd like to use min_doc_count in TermsAgg. It is not available in 0.99.5 but available in latest repo
    would like to know when the next release will be available or is there any work around? thanks
    Alberto Paro
    @aparo
    I'll publish the current head this weekend.
    You can pip for git if you want use it now without publication
    pip install https://github.com/aparo/pyes/archive/master.zip
    judyyanluo
    @judyyanluo
    thanks. i am not suppose to use non-public package in our product. do you have any plan to release the next version? thanks
    Alberto Paro
    @aparo
    I'll do this weekend
    judyyanluo
    @judyyanluo
    thanks a million!
    judyyanluo
    @judyyanluo
    hi Alberto, I did not see any new release. did i miss any thing? thanks!
    Alberto Paro
    @aparo
    judyyanluo
    @judyyanluo
    awesome. thanks a lot!
    judyyanluo
    @judyyanluo
    hi Alberto, I just tried the latest version.
    there is NotImplementedError in aggs.py
    judyyanluo
    @judyyanluo
    hi, Alberto, seem the _serialize method in TermsAgg has been removed. thus, when i call TermsAgg.serialize, it will go to the default Agg._serialize. it throws NotImplementedError. thanks
    Alberto Paro
    @aparo
    I'll fix when I go back from work.
    judyyanluo
    @judyyanluo
    u rock!
    patilvikram
    @patilvikram
    Hi
    Prasanna Gautam
    @prasincs
    hey, I'm trying to use this project https://github.com/crashdump/logstash-elasticsearch-scripts which seems to be using a very old version of pyes (and perhaps targets older ElasticSearch too).. any straightforward updates anyone can notice so I can use it against latest ElasticSearch?
    if there's a better version, that's fine too
    Alberto Paro
    @aparo
    I'll work to port to version 2.x in spare time
    Prasanna Gautam
    @prasincs
    ah ok.. I'll just use the REST APIs in the time being
    @aparo so pyes itself doesn't support 2.x yet right?
    Alberto Paro
    @aparo
    It should
    Alberto Paro
    @aparo
    We need to
    German Rosales
    @gerosalesc
    mm Hi everyone
    I am more or less in the same situation as @prasincs because of https://github.com/knockrentals/scrapy-elasticsearch but I don't want to stay back in elastic search 1.X
    German Rosales
    @gerosalesc
    Will pyes resurrect ?
    Dalei
    @daleione
    @aparo hi, I just find 0.99.6 TermsAgg have not serialize, there is a pull request, but you didn't approve.