Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-4173 Separate the test profiles for Elasticsearch 6.7 and 6.8
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
- Loading branch information
Showing
7 changed files
with
102 additions
and
48 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
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
53 changes: 53 additions & 0 deletions
53
...h/util/impl/integrationtest/backend/elasticsearch/dialect/Elasticsearch68TestDialect.java
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.util.impl.integrationtest.backend.elasticsearch.dialect; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
import org.hibernate.search.backend.elasticsearch.client.impl.Paths; | ||
import org.hibernate.search.backend.elasticsearch.util.spi.URLEncodedString; | ||
|
||
@SuppressWarnings("deprecation") // We use Paths.DOC on purpose | ||
public class Elasticsearch68TestDialect extends Elasticsearch70TestDialect { | ||
|
||
@Override | ||
public boolean isEmptyMappingPossible() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public URLEncodedString getTypeKeywordForNonMappingApi() { | ||
return Paths.DOC; | ||
} | ||
|
||
@Override | ||
public Optional<URLEncodedString> getTypeNameForMappingAndBulkApi() { | ||
return Optional.of( Paths.DOC ); | ||
} | ||
|
||
@Override | ||
public Boolean getIncludeTypeNameParameterForMappingApi() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public List<String> getAllLocalDateDefaultMappingFormats() { | ||
return Arrays.asList( "yyyy-MM-dd", "yyyyyyyyy-MM-dd" ); | ||
} | ||
|
||
@Override | ||
public boolean zonedDateTimeDocValueHasUTCZoneId() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean supportsSkipOrLimitingTotalHitCount() { | ||
return false; | ||
} | ||
} |