22
33interface ElasticquentInterface
44{
5+
56 /**
67 * Get ElasticSearch Client
78 *
89 * @return Elasticsearch\Client
910 */
1011 public function getElasticSearchClient ();
1112
13+
1214 /**
1315 * New Collection
1416 *
1517 * @param array $models
18+ *
1619 * @return Collection
1720 */
18- public function newCollection (array $ models = array ());
21+ public function newCollection (array $ models = []);
22+
1923
2024 /**
2125 * Get Index Name
@@ -24,32 +28,37 @@ public function newCollection(array $models = array());
2428 */
2529 public function getIndexName ();
2630
31+
2732 /**
2833 * Get Type Name
2934 *
3035 * @return string
3136 */
3237 public function getTypeName ();
3338
39+
3440 /**
3541 * Uses Timestamps In Index.
3642 */
3743 public function usesTimestampsInIndex ();
3844
45+
3946 /**
4047 * Get Mapping Properties
4148 *
4249 * @return array
4350 */
4451 public function getMappingProperties ();
4552
53+
4654 /**
4755 * Set Mapping Properties
4856 *
4957 * @param array $mapping
5058 */
5159 public function setMappingProperties (array $ mapping = null );
5260
61+
5362 /**
5463 * Get Index Document Data
5564 *
@@ -60,6 +69,7 @@ public function setMappingProperties(array $mapping = null);
6069 */
6170 public function getIndexDocumentData ();
6271
72+
6373 /**
6474 * Index Documents
6575 *
@@ -69,10 +79,12 @@ public function getIndexDocumentData();
6979 */
7080 public static function addAllToIndex ();
7181
82+
7283 /**
7384 * Search a Type.
7485 */
75- public static function search ($ query = array ());
86+ public static function search ($ query = []);
87+
7688
7789 /**
7890 * Add to Search Index
@@ -81,13 +93,15 @@ public static function search($query = array());
8193 */
8294 public function addToIndex ();
8395
96+
8497 /**
8598 * Remove From Search Index
8699 *
87100 * @return
88101 */
89102 public function removeFromIndex ();
90103
104+
91105 /**
92106 * Get Search Document
93107 *
@@ -98,6 +112,7 @@ public function removeFromIndex();
98112 */
99113 public function getIndexedDocument ();
100114
115+
101116 /**
102117 * Get Basic Elasticsearch Params
103118 *
@@ -110,6 +125,7 @@ public function getIndexedDocument();
110125 */
111126 public function getBasicEsParams ($ getIdIfPossible = true );
112127
128+
113129 /**
114130 * Is Elasticsearch Document.
115131 *
@@ -120,13 +136,15 @@ public function getBasicEsParams($getIdIfPossible = true);
120136 */
121137 public function isDocument ();
122138
139+
123140 /**
124141 * Get Document Score
125142 *
126143 * @return null|float
127144 */
128145 public function documentScore ();
129146
147+
130148 /**
131149 * Put Mapping.
132150 *
@@ -136,13 +154,15 @@ public function documentScore();
136154 */
137155 public static function putMapping ($ ignoreConflicts = false );
138156
157+
139158 /**
140159 * Delete Mapping
141160 *
142161 * @return
143162 */
144163 public static function deleteMapping ();
145164
165+
146166 /**
147167 * Rebuild Mapping
148168 *
@@ -153,6 +173,7 @@ public static function deleteMapping();
153173 */
154174 public static function rebuildMapping ();
155175
176+
156177 /**
157178 * Get Mapping
158179 *
@@ -163,6 +184,7 @@ public static function rebuildMapping();
163184 */
164185 public static function getMapping ();
165186
187+
166188 /**
167189 * Type Exists
168190 *
0 commit comments