Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-2387 Add dynamic mapping index property
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
elasticsearch/src/main/java/org/hibernate/search/elasticsearch/cfg/DynamicType.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,35 @@ | ||
/* | ||
* 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.elasticsearch.cfg; | ||
|
||
/** | ||
* Configuration values for Elasticsearch "dynamic" attribute values. | ||
* <p> | ||
* Defines the behaviour when a document contains an unrecognized field. | ||
* | ||
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html">Elasticsearch mapping: | ||
* dynamic</a> | ||
* | ||
* @author Davide D'Alto | ||
*/ | ||
public enum DynamicType { | ||
|
||
/** | ||
* Add unrecognized fields to the schema | ||
*/ | ||
TRUE, | ||
|
||
/** | ||
* Ignore unrecognized field | ||
*/ | ||
FALSE, | ||
|
||
/** | ||
* Throw exception when the field is unrecognized | ||
*/ | ||
STRICT; | ||
} |
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