Commit Graph

271 Commits

Author SHA1 Message Date
Oliver Gierke
5ddb46c435 DATAES-462 - Polishing.
SimpleElasticsearchPersistentProperty now already checks for the correct type of score properties. Added unit tests for that. Also added unit tests for SimpleElasticsearchPersistentEntity rejecting more than one score property being present.

Additional non-null assertions on components that are required so that we can remove superfluous null checks.

A bit o formatting, Javadoc, missing @since tags and license headers.

Original pull request: #207.
2018-06-13 19:00:36 +02:00
xhaggi
d996406113 DATAES-462 - Add support for mapping max score and document scores.
Original pull request: #207.
2018-06-13 18:58:13 +02:00
Oliver Gierke
62a03a8fb7 DATAES-464 - DefaultEntityWriter now considers read-only and transient properties.
We now register a custom Jackson module that filters read-only and transient properties for serialization.
2018-06-13 18:21:37 +02:00
Ted Liang
e8e407f93b DATAES-312 - Fix NullHandling.NULLS_LAST in query.sort
Original pull request: #163
2018-05-17 09:31:59 +02:00
Nordine Bittich
1b0006f9f7 DATAES-420 - Analyzer of main field ignored when using @MultiField annotation 2018-05-15 17:16:29 +02:00
xhaggi
ace5a21b05 DATAES-285 - Polishing
* drop superfluous class FieldIndex
* change FieldType text and keyword starting with capital letters

Original commit: 089d7746be
2018-05-07 13:19:37 +02:00
xhaggi
9c235cd53c DATAES-412 - only the last highlight field is added to SearchRequest 2018-05-07 11:39:58 +02:00
Chris White
ef1dca31e4 DATAES-198 - Fixed @Version annotation on fields. 2018-04-23 17:33:54 +02:00
Alen Turkovic
de1afe8bb0 DATAES-422 - Add support for IndicesOptions in search queries.
See also: DATAES-191..
2018-04-20 14:32:01 +02:00
Oliver Gierke
92c3bbebed DATAES-363 - Polishing.
Original pull request: #183.
2018-04-18 12:36:27 +02:00
Michael Wirth
512e9eacad DATAES-363 - Fixed CrudRepository.existsById(…) implementation.
Properly use Optional.isPresent() over a null check.

Original pull request: #183.
2018-04-18 12:36:10 +02:00
Remco Zigterman
4856974c1a DATAES-402 - fixing paging information 2018-03-15 09:57:19 +00:00
Artur Konczak
51f9485700 DATAES-421 updated to latest version of ES 6.2.2 2018-03-15 09:14:43 +00:00
rivergod
e7b93bee90 DATAES-421 - Update ES to 6.1.0 2018-03-15 09:14:43 +00:00
Mark Paluch
9bfc6f23b9 DATAES-424 - Fix line endings to LF. 2018-01-24 13:06:40 +01:00
Oliver Gierke
51d0f95f65 DATAES-410 - Adapt API changes in Property in test cases. 2017-10-27 11:24:34 +02:00
Mark Paluch
a30a13dced DATAES-395 - Downgrade to CDI 1.0. 2017-09-21 14:39:22 +02:00
Mark Paluch
960263837b DATAES-395 - Polishing.
Fix line endings.
2017-09-18 15:36:39 +02:00
Mark Paluch
6dd4d28067 DATAES-395 - Upgrade to OpenWebBeans 2.0.1. 2017-09-18 15:36:20 +02:00
Artur Konczak
8dfee0a437 DATAES-373 - bump elasticsearch version to 5.5.0 2017-07-21 15:34:39 +01:00
Mohsin Husen
a085c064d5 DATAES-274 - prevent NPE in FacetedPageImpl 2017-07-21 10:40:11 +01:00
Mohsin Husen
a343bf7109 DATAES-353 - Polishing 2017-07-21 10:39:03 +01:00
Mark Paluch
b5bab6b85e DATAES-369 - Adapt to API changes in mapping subsystem. 2017-07-04 14:36:13 +02:00
Mohsin Husen
f1eb8a5eca DATAES-285 - bump elasticsearch version to 5.4.0 2017-05-31 19:49:26 +01:00
Artur Konczak
089d7746be DATAES-285 - upgrade to elasticsearch 5.x 2017-05-31 19:49:11 +01:00
Christoph Strobl
416a3f2baf DATAES-352 - Adapt to API changes in repository interfaces.
We now follow a more consistent naming scheme for the methods in repository that are driven by the following guidelines:

* Methods referring to an identifier now all end on …ById(…).
* Methods taking or returning a collection are named …All(…)

Please see DATACMNS-944 for details.
2017-05-05 00:03:25 +02:00
Mark Paluch
312df33c31 DATAES-350 - Adapt to SimpleTypeHolder changes in Spring Data Commons.
Replace constructor usage with singleton instance.

Related Ticket: DATAES-350.
2017-04-24 10:33:45 +02:00
Oliver Gierke
ff18271917 DATAES-328 - Adapt to API cchanges after Mockito 2.7 upgrade. 2017-03-24 09:44:49 +01:00
Mark Paluch
519a2a11a4 DATAES-328 - Adapt to API changes in Spring Data Commons. 2017-03-24 09:44:49 +01:00
Mark Paluch
4c7dd4939a DATAES-328 - Replace explicit generics with diamond operator. 2017-03-24 09:44:49 +01:00
Mark Paluch
0cada7f374 DATAES-328 - Integrate Data Commons Java 8 upgrade branch. 2017-03-24 09:44:49 +01:00
Artur Konczak
db3174dbbe DATAES-289 - added groovy plugin for ES2.4 2016-09-01 12:42:01 +01:00
Oliver Gierke
896fbbebc8 DATAES-289 - Upgraded to Elasticsearch 2.4.
Upgraded to Elasticsearch 2.4 as version before that are not compatiblewith Jackson 2.8 [0].

Removed the now unsupported Groovy plugin registration way and added groovy-lang as test scope dependency but had to disable the only Groovy related test as it seems to be unclear how to activate the Groovy plugin in an embedded Elasticsearch server [1].

[0] https://github.com/elastic/elasticsearch/issues/20089
[1] https://discuss.elastic.co/t/after-upgrade-from-es-2-1-1-to-es-2-2-0-groovy-scripting-is-broken/40977
2016-09-01 13:26:03 +02:00
Artur Konczak
7a95cb64a8 DATAES-260 added missing test 2016-08-22 00:31:40 +01:00
Artur Konczak
53b587101d DATAES-163 - Modified tests to work with new version of spring-data-elasticsearch base on ES2.x 2016-08-20 23:50:16 +01:00
Gad Akuka
063d8ed983 DATAES-163 - Add support for UUID as primary key
Add support for UUID as primary key

Add tests for support of UUID as primary key
2016-08-20 23:50:16 +01:00
Oliver Gierke
7113c7ac66 DATAES-281 - Polishing.
Added unit test for change in DefaultResultMapperTests. Tweaked and simplified integration tests.

Make use of IdentifierAccessor in ElasticsearcTemplate.getPersistentEntityId(…). Added missing generics in DefaultResultMapper.

Removed unused imports, fixed copyright ranges, authors.

Original pull request: #156.
2016-08-20 10:08:21 +02:00
Young Gu
7e736a6271 DATAES-281 - Setting identifier values now uses PersistentPropertyAccessor API.
DefaultResultMapper and ElasticsearchTemplate now use the PersistentPropertyAccessor API to set identifier values on objects instead of using reflection.

Original pull request: #156.
2016-08-20 09:59:08 +02:00
Artur Konczak
392a87ab0a DATAES-180 - added faceted page back powered by aggregation 2016-06-24 11:56:38 +01:00
Artur Konczak
6ffac62b3e DATAES-180 - clean up 2016-06-24 11:56:38 +01:00
Petar Tahchiev
fd06f8efd7 Created AggregatedPage to hold the Aggregations
Create AggregatedPage and populate it in the DefaultResultMapper.
2016-06-24 11:56:37 +01:00
Mark Paluch
023214a344 DATAES-234 - Use Set to store qualifiers in CDI extension.
Qualifiers are now stored in their original set instead of using the toString representation.
2016-03-17 14:52:39 +00:00
Markus Ackermann
8bb4ac3653 DATAES-238 - Fix ElasticsearchTemplate.prepareUpdate(): preserve routing
* need to specify Locale.ENGLISH in String.format()
  to make tests succeed on non-english locales

* that's because the String.format involves floating
  point numbers which are formatted differently in
  some locales

* ElasticsearchTemplate.prepareUpdate() properly copies routing
  from given UpdateRequest

* add unit tests to ElasticsearchTemplateParentChildTests
  for update of a child document
2016-03-15 11:16:57 +00:00
Mohsin Husen
a8d915f830 DATAES-241 - Remove commons-collections dependency and use CollectionUtils from Spring Utils 2016-03-08 15:24:51 +00:00
Mohsin Husen
c4b4a8c45d DATAES-188 - Source filtering feature Implementation 2016-03-03 14:53:18 +00:00
Mohsin Husen
6535caff8a DATAES-236 - fix test for build failure 2016-02-26 15:00:36 +00:00
Mohsin Husen
2aa7ed1c23 DATAES-236 - Clear the search contexts associated with specified scroll id 2016-02-26 14:54:51 +00:00
Mohsin Husen
e9576adb1a DATAES-211 - build fix, ignore test 2016-02-24 13:42:07 +00:00
Mohsin Husen
c5c9956bc0 DATAES-211 - clean up
remove waitForOperation from refresh()
enhance GeoPoint and Point feature
code clean up
2016-02-24 12:45:37 +00:00
Mohsin Husen
4930415302 DATAES-211 - Fix tests for CDI (jar hell) 2016-02-24 12:45:36 +00:00