Did I find the right examples for you? yes no

All Samples(28)  |  Call(18)  |  Derive(0)  |  Import(10)

src/s/o/solar-0.3.0/solar/facets.py   solar(Download)
from __future__ import unicode_literals
 
from copy import deepcopy
 
from .util import LocalParams, X, make_fq, _pop_from_kwargs
    def get_params(self):
        params = {}
        params['facet'] = True
        params['facet.field'] = [make_fq(X(self.field), self.local_params)]
        for p, v in self.facet_params.items():
    def get_params(self):
        params = {}
        params['facet'] = True
        params['facet.range'] = [make_fq(X(self.field), self.local_params)]
        params['f.{}.facet.range.start'.format(self.field)] = self.orig_start
    def __init__(self, fq, local_params=None):
        self.fq = fq
        self.local_params = LocalParams(local_params)
        self.key = self.local_params.get('key',
                                         make_fq(self.fq, self.local_params))
    def get_params(self):
        params = {}
        params['facet'] = True
        params['facet.query'] = [make_fq(self.fq, self.local_params)]
        return params

src/s/o/solar-HEAD/solar/facets.py   solar(Download)
from itertools import chain
 
from .util import LocalParams, X, make_fq, _pop_from_kwargs
from .types import instantiate, get_to_python
from .pysolr import Solr
    def get_params(self):
        params = {}
        params['facet'] = True
        params['facet.field'] = [make_fq(X(self.field), self.local_params)]
        for p, v in self.facet_params.items():
    def get_params(self):
        params = {}
        params['facet'] = True
        params['facet.range'] = [make_fq(X(self.field), self.local_params)]
        params['f.{}.facet.range.start'.format(self.field)] = self.orig_start
    def __init__(self, fq, local_params=None):
        self.fq = fq
        self.local_params = LocalParams(local_params)
        self.key = self.local_params.get('key',
                                         make_fq(self.fq, self.local_params))
    def get_params(self):
        params = {}
        params['facet'] = True
        params['facet.query'] = [make_fq(self.fq, self.local_params)]
        return params

src/s/o/solar-0.3.0/solar/result.py   solar(Download)
from itertools import chain
 
from .util import LocalParams, X, make_fq
from .compat import force_unicode
 
    def get_grouped(self, key):
        if isinstance(key, X):
            key = make_fq(key)
        key = force_unicode(key)
        for grouped in self.groupeds:
    def get_facet_query(self, key_or_x, local_params=None):
        if isinstance(key_or_x, X):
            key = make_fq(key_or_x, LocalParams(local_params))
        else:
            key = key_or_x

src/s/o/solar-HEAD/solar/result.py   solar(Download)
from itertools import chain
 
from .util import LocalParams, X, make_fq
from .compat import force_unicode
 
    def get_grouped(self, key):
        if isinstance(key, X):
            key = make_fq(key)
        key = force_unicode(key)
        for grouped in self.groupeds:
    def get_facet_query(self, key_or_x, local_params=None):
        if isinstance(key_or_x, X):
            key = make_fq(key_or_x, LocalParams(local_params))
        else:
            key = key_or_x

src/s/o/solar-0.3.0/solar/query.py   solar(Download)
from .facets import FacetField, FacetRange, FacetQuery, FacetPivot
from .grouped import GroupedField, GroupedQuery, GroupedFunc
from .util import SafeUnicode, safe_solr_input, X, LocalParams, make_fq, make_q
from .util import _pop_from_kwargs
 
            params['rows'] = 0
        if self._fq:
            params['fq'] = [make_fq(x, local_params)
                            for x, local_params in self._fq]
        if 'qf' in params:

src/s/o/solar-HEAD/solar/query.py   solar(Download)
from .facets import FacetField, FacetRange, FacetQuery, FacetPivot
from .grouped import GroupedField, GroupedQuery, GroupedFunc
from .util import SafeUnicode, safe_solr_input, X, LocalParams, make_fq, make_q
from .util import _pop_from_kwargs
 
            params['rows'] = 0
        if self._fq:
            params['fq'] = [make_fq(x, local_params)
                            for x, local_params in self._fq]
        if 'qf' in params:

src/s/o/solar-0.3.0/solar/grouped.py   solar(Download)
from __future__ import unicode_literals
 
from copy import deepcopy
 
from .util import X, make_fq
    def __init__(self, fq, group_cls, document_cls, **kwargs):
        self.fq = fq
        super(GroupedQuery, self).__init__(
            make_fq(fq), group_cls, document_cls, **kwargs)
 

src/s/o/solar-HEAD/solar/grouped.py   solar(Download)
from __future__ import unicode_literals
 
from copy import deepcopy
 
from .util import X, make_fq
    def __init__(self, fq, group_cls, document_cls, **kwargs):
        self.fq = fq
        super(GroupedQuery, self).__init__(
            make_fq(fq), group_cls, document_cls, **kwargs)
 

src/s/o/solar-HEAD/solar/queryfilter.py   solar(Download)
from collections import defaultdict
 
from .util import X, LocalParams, make_fq, process_value, wrap_list, _pop_from_kwargs
from .types import instantiate, Integer, Long, Float 
from .facets import FacetValue

src/s/o/solar-0.3.0/solar/queryfilter.py   solar(Download)
from __future__ import unicode_literals
 
from copy import deepcopy
 
from .util import X, LocalParams, make_fq, process_value, _pop_from_kwargs