[hibernate/hibernate-search] 79ae9d: HSEARCH-2071 Use correct defaults for fields provi...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-search
Commit: 79ae9d2e22fe6b73694e3f69b79434277a50523b
https://github.com/hibernate/hibernate-search/commit/79ae9d2e22fe6b73694e...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
M elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/ElasticsearchIndexManager.java
M elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/FieldHelper.java
M engine/src/main/java/org/hibernate/search/engine/metadata/impl/AnnotationMetadataProvider.java
M engine/src/main/java/org/hibernate/search/engine/metadata/impl/BridgeDefinedField.java
M engine/src/main/java/org/hibernate/search/engine/metadata/impl/FieldMetadataBuilderImpl.java
Log Message:
-----------
HSEARCH-2071 Use correct defaults for fields provided by field bridges
For example, if the field bridge is called for an id, the custom fields won't be analyzed; when
used as a normal field they are going to be analyzed.
Elasticsearch should stick to the same behaviour.
Commit: 956e447fe1654aa143e10c24d61e9402b3569246
https://github.com/hibernate/hibernate-search/commit/956e447fe1654aa143e1...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
M elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/ElasticsearchHSQueryImpl.java
M elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/logging/impl/Log.java
Log Message:
-----------
HSEARCH-2071 When getting the id, extract the custom fields as well
If the field bridge applied to the embedded id generates some custom fields, we should
retrieve those fields as well before trying to convert the JSON value into the embedded
id object.
Commit: c974a8778eae6416f17364ea0eb3ff0014d4df3a
https://github.com/hibernate/hibernate-search/commit/c974a8778eae6416f173...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
A orm/src/test/java/org/hibernate/search/test/id/withmeta/EmbeddedIdWithMetadataProvidingBridgeTest.java
A orm/src/test/java/org/hibernate/search/test/id/withmeta/Person.java
A orm/src/test/java/org/hibernate/search/test/id/withmeta/PersonPK.java
A orm/src/test/java/org/hibernate/search/test/id/withmeta/PersonPKMetadataProviderBridge.java
A orm/src/test/java/org/hibernate/search/test/id/withmeta/PlainPerson.java
A orm/src/test/java/org/hibernate/search/test/id/withmeta/ProgrammaticEmbeddedItWithMetadataProvidingBridgeTest.java
Log Message:
-----------
HSEARCH-2071 Test embedded id can be stored with Elasticsearch using a FieldBridge
This commit will add some new tests because Elasticsearch still has some limitations:
* if the bridge creates new fields, it must be a `MetadataProvidingFieldBridge` (Elasticsearch is in strict mode);
* the existing test tries to add fields with a `.` in the name (Elasticsearch does not allow that).
Commit: 7abf7af7e61583ad33783f7e8209ff24cd366524
https://github.com/hibernate/hibernate-search/commit/7abf7af7e61583ad3378...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
M elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/ElasticsearchIndexManager.java
Log Message:
-----------
HSEARCH-2071 Convert the string "not_analyzed" to a constant in the ElasticsearchIndexManager
Commit: ca2de94154da622f8b8428098d8bc2cf5ee3e2a9
https://github.com/hibernate/hibernate-search/commit/ca2de94154da622f8b84...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
M orm/src/test/java/org/hibernate/search/test/id/EmbeddedIdTest.java
Log Message:
-----------
HSEARCH-2071 Fix typo in EmbeddedIdTest javadoc
Commit: 5b4dcf6fe47bd4ed84f224f4f46b43d40e3c71ac
https://github.com/hibernate/hibernate-search/commit/5b4dcf6fe47bd4ed84f2...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
M elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/ElasticsearchIndexManager.java
Log Message:
-----------
HSEARCH-2071 Remove @SuppressWarnings(...)
Commit: 915dc34d54eeb1fc5d56cfbabebd118030a8a264
https://github.com/hibernate/hibernate-search/commit/915dc34d54eeb1fc5d56...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
A orm/src/test/java/org/hibernate/search/test/bridge/CheckCustomFieldDefaultAnalyzer.java
A orm/src/test/java/org/hibernate/search/test/bridge/CheckCustomFieldDefaultsTest.java
Log Message:
-----------
HSEARCH-2071 Test default analyzers used for custom fields on Lucene
Commit: ee1aa9151537943772ddb636986a2f60c9002c58
https://github.com/hibernate/hibernate-search/commit/ee1aa9151537943772dd...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2016-05-12 (Thu, 12 May 2016)
Changed paths:
A elasticsearch/src/test/java/org/hibernate/search/backend/elasticsearch/test/CheckCustomFieldDefaultsIT.java
Log Message:
-----------
HSEARCH-2071 Test default analyzers used for custom fields with Elasticsearch
Compare: https://github.com/hibernate/hibernate-search/compare/847f6bd01c59...ee1a...
8 years, 7 months