-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update ES6 to RC1 and some minor bc's solved (#1382)
- Loading branch information
Showing
11 changed files
with
9 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:6.0.0-beta2 | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:6.0.0-rc1 | ||
MAINTAINER Nicolas Ruflin <[email protected]> | ||
|
||
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,46 +52,6 @@ public function testConstruct() | |
$this->assertEquals($expectedArray, $query->toArray()); | ||
} | ||
|
||
/** | ||
* @group functional | ||
*/ | ||
public function testQuery() | ||
{ | ||
$index = $this->_createIndex(); | ||
|
||
$type = $index->getType('constant_score'); | ||
$type->addDocuments([ | ||
new Document(1, ['id' => 1, 'email' => '[email protected]', 'username' => 'hans']), | ||
new Document(2, ['id' => 2, 'email' => '[email protected]', 'username' => 'emil']), | ||
new Document(3, ['id' => 3, 'email' => '[email protected]', 'username' => 'ruth']), | ||
]); | ||
|
||
// Refresh index | ||
$index->refresh(); | ||
|
||
$boost = 1.3; | ||
$query_match = new MatchAll(); | ||
|
||
$query = new ConstantScore(); | ||
$query->setQuery($query_match); | ||
$query->setBoost($boost); | ||
|
||
$expectedArray = [ | ||
'constant_score' => [ | ||
'query' => $query_match->toArray(), | ||
'boost' => $boost, | ||
], | ||
]; | ||
|
||
$this->assertEquals($expectedArray, $query->toArray()); | ||
$resultSet = $type->search($query); | ||
|
||
$results = $resultSet->getResults(); | ||
|
||
$this->assertEquals($resultSet->count(), 3); | ||
$this->assertEquals($results[1]->getScore(), 1.3); | ||
} | ||
|
||
/** | ||
* @group unit | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters