Beispiel #1
0
 public function __construct($hashMap = null)
 {
     $this->params['score'] = "max";
     $this->params['factor'] = 5;
     $this->params['incremental_factor'] = 5;
     parent::__construct($hashMap);
 }
Beispiel #2
0
 public function __construct($hashMap = null)
 {
     $this->params['include_lower'] = true;
     $this->params['include_upper'] = true;
     $this->params['boost'] = 1.0;
     parent::__construct($hashMap);
 }
Beispiel #3
0
 /**
  * @param null $hashMap Optional assoc array of values to prefill the Bool
  */
 public function __construct($hashMap = null)
 {
     $this->params['must'] = array();
     $this->params['must_not'] = array();
     $this->params['should'] = array();
     parent::__construct($hashMap);
 }
Beispiel #4
0
 public function __construct($hashMap = null)
 {
     $this->params['include_lower'] = true;
     $this->params['include_upper'] = false;
     $this->params['_cache'] = false;
     parent::__construct($hashMap);
 }
Beispiel #5
0
 public function __construct($hashMap = null)
 {
     $this->params['type'] = "memory";
     $this->params['_cache'] = false;
     $this->params['field'] = 'pin.location';
     parent::__construct($hashMap);
 }
Beispiel #6
0
 /**
  * @param null $hashMap
  */
 public function __construct($hashMap = null)
 {
     $this->params['facetname'] = null;
     $this->params['script'] = null;
     $this->params['params'] = null;
     $this->params['lang'] = null;
     $this->params['facet_filter'] = null;
     parent::__construct($hashMap);
 }
Beispiel #7
0
 public function __construct($hashMap = null)
 {
     $this->params['order'] = null;
     $this->params['sort_mode'] = null;
     $this->params['order'] = null;
     $this->params['missing'] = null;
     $this->params['ignore_unmapped'] = null;
     parent::__construct($hashMap);
 }
Beispiel #8
0
 public function __construct($type = null, $hashMap = null)
 {
     //if $type is set, we need to wrap the mapping property in a type
     //this is used for multi-mappings on index creation
     if (isset($type)) {
         $this->type = $type;
     }
     parent::__construct($hashMap);
 }
Beispiel #9
0
 /**
  * @param null $hashMap
  */
 public function __construct($hashMap = null)
 {
     $this->params['facetname'] = null;
     $this->params['ranges'] = null;
     $this->params['key_field'] = null;
     $this->params['value_field'] = null;
     $this->params['key_script'] = null;
     $this->params['value_script'] = null;
     $this->params['params'] = null;
     $this->params['lang'] = null;
     $this->params['facet_filter'] = null;
     parent::__construct($hashMap);
 }
Beispiel #10
0
 public function __construct($hashMap = null)
 {
     $this->params['min_term_freq'] = 2;
     $this->params['max_query_terms'] = 25;
     $this->params['percent_terms_to_match'] = 0.3;
     $this->params['stop_words'] = array();
     $this->params['min_doc_freq'] = 5;
     $this->params['max_doc_freq'] = 0;
     $this->params['min_word_len'] = 0;
     $this->params['max_word_len'] = 0;
     $this->params['boost_terms'] = 1;
     $this->params['boost'] = 1.0;
     parent::__construct($hashMap);
 }
Beispiel #11
0
 public function __construct($hashMap = null)
 {
     $this->params['boost'] = 1;
     $this->params['operator'] = 'and';
     $this->params['analyzer'] = 'default';
     $this->params['fuzziness'] = null;
     $this->params['fuzzy_rewrite'] = 'constant_score_default';
     $this->params['lenient'] = 1;
     $this->params['max_expansions'] = 100;
     $this->params['minimum_should_match'] = 2;
     $this->params['prefix_length'] = 2;
     $this->params['use_dis_max'] = 1;
     $this->params['tie_breaker'] = 0.7;
     parent::__construct($hashMap);
 }
Beispiel #12
0
 /**
  * @param null $hashMap
  */
 public function __construct($hashMap = null)
 {
     $this->params['order'] = 'count';
     $this->params['all_terms'] = false;
     $this->params['facetname'] = null;
     $this->params['size'] = null;
     $this->params['exclude'] = null;
     $this->params['regex'] = null;
     $this->params['regex_flags'] = null;
     $this->params['script'] = null;
     $this->params['script_field'] = null;
     $this->params['params'] = null;
     $this->params['lang'] = null;
     $this->params['facet_filter'] = null;
     $this->params['nested'] = null;
     parent::__construct($hashMap);
 }
 public function __construct($hashMap = null)
 {
     $this->params['boost'] = 2.0;
     $this->params['enable_position_increments'] = true;
     $this->params['default_operator'] = "OR";
     $this->params['analyzer'] = "default";
     $this->params['allow_leading_wildcard'] = false;
     $this->params['lowercase_expanded_terms'] = 1;
     $this->params['fuzzy_min_sim'] = 0.5;
     $this->params['fuzzy_prefix_length'] = 2;
     $this->params['lenient'] = 1;
     $this->params['phrase_slop'] = 10;
     $this->params['analyze_wildcard'] = true;
     $this->params['auto_generate_phrase_queries'] = false;
     $this->params['rewrite'] = "constant_score_default";
     $this->params['quote_analyzer'] = "standard";
     $this->params['quote_field_suffix'] = ".unstemmed";
     $this->params['use_dis_max'] = true;
     $this->params['tie_breaker'] = 1;
     parent::__construct($hashMap);
 }
Beispiel #14
0
 public function __construct($hashMap = null)
 {
     $this->params['_cache'] = false;
     parent::__construct($hashMap);
 }
Beispiel #15
0
 public function __construct($hashMap = null)
 {
     $this->params['execution'] = "plain";
     $this->params['_cache'] = true;
     parent::__construct($hashMap);
 }
Beispiel #16
0
 public function __construct($hashMap = null)
 {
     parent::__construct($hashMap);
 }
Beispiel #17
0
 public function __construct($hashMap = null)
 {
     $this->params['order'] = 'asc';
     $this->params['unit'] = 'km';
     parent::__construct($hashMap);
 }
Beispiel #18
0
 public function __construct($hashMap = null)
 {
     $this->params['score_mode'] = "avg";
     parent::__construct($hashMap);
 }
Beispiel #19
0
 public function __construct($hashMap = null)
 {
     $this->params['existence'] = true;
     $this->params['null_value'] = false;
     parent::__construct($hashMap);
 }
Beispiel #20
0
 public function __construct($hashMap = null)
 {
     $this->params['boost'] = 1.0;
     parent::__construct($hashMap);
 }