Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Vitaly Babiy
    @vbabiy
    The docs suggest I should be able to use a Q object
    Alberto Paro
    @aparo
    you can pass an OrFilyer
    Vitaly Babiy
    @vbabiy
    @aparo okay so don't use Q objects?
    Should the OrFilter just be a list of TermFilters?
    Alberto Paro
    @aparo
    OrFilter takes a list of Filter.
    you can put every kind of filters *Filter classes
    Julian Hille
    @julianhille
    alberto have you looked at the issues (max retries, load balancing).
    Alberto Paro
    @aparo
    I’m sorry. I’ll be at work today and I cannot debug until tonight
    the trick will be to take a random server from the connection list of servers
    I’ll try to check if I’ve time during lunch
    Julian Hille
    @julianhille
    i think only line 106 need to be deleted
    Julian Hille
    @julianhille
    good day. alberto did you manage to have a look? :)
    Alberto Paro
    @aparo
    I’ve no time, but looking for develop branch I migrate to use native ElasticSearch driver, that should manage automatically the balancer
    Farhan Syed
    @Nearhan
    does this support percolator?
    Alberto Paro
    @aparo
    since several years
    patilvikram
    @patilvikram
    hi
    Alberto Paro
    @aparo
    hi
    patilvikram
    @patilvikram
    I have just started using pyes for Elasticsearch
    Alberto Paro
    @aparo
    do you need some help?
    patilvikram
    @patilvikram
    I would like to contribute as well
    yes I do
    I am looking for BoostingQuery implementation but I could not find one
    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