1073 Commits

Author SHA1 Message Date
Mohsin Husen
6b6f3beabe DATAES-85 - Add support to get elasticsearch mappings 2014-04-24 15:19:00 +01:00
Mohsin Husen
5ca0ed7ff1 DATAES-84 - Add field criteria with searchQuery not supported in scan and scroll
- added support for fields in scan and scroll
- fixed build failure, separated aliasTests
2014-04-23 12:29:32 +01:00
Mohsin Husen
55219c947e DATAES-77 - Search across different indices
applied Spring Data coding/formatting rules
2014-04-21 17:26:08 +01:00
abdul
d24a92547f DATAES-77 - Search across different indices
Add test to demonstrate searching into heterogeneous indexes and building entities of different types. In a nutshall, the responsiblity lies with the client, spring data elasticsearch cannot and should not try to discover entity types, as that would leading building an object composition logic which is not the core area of this library.

With this test, we demonstrate the usage of SearchResultMapper to compose an aggregator object that holds properties from two dfferent entities, The Aggregator is declared as a document but is not indexes (This is not ideal) and we don't recommend to declare @Documents that are not indexed. Please use this as just a pointer to implement SearchResultMapper, this demostartion is not meant to be duplicated in your production systems. There are better ways to compose hetro objects from multi index searches.
2014-04-17 09:26:11 +01:00
abdul
09e3e94b3b DATAES-77 - Search across different indices
Add a test to demonstrate searching across multiple indices.
2014-04-16 13:24:56 +01:00
Mohsin Husen
0eb230cb1f DATAES-66 - Add Ip support to FieldType
renamed from DynamicMappingAndSettingTests to LogEntityTests
2014-04-09 16:00:39 +01:00
Mohsin Husen
0307803316 DATAES-66 - Add Ip support to FieldType
added test cases for FieldType.Ip
2014-04-09 15:56:35 +01:00
Aggelos Karalias
cbe549694e DATAES-66 - Add Ip support to FieldType
This is as trivial as adding a value to the FieldType enum. It doesn't have any
extra properties following the IP type so the
MappingBuilder.addSingleFieldMapping will do the job.
2014-04-09 10:42:21 +01:00
Mohsin Husen
9e97dec225 DATAES-70 - Alias creation with routing not supported
added routing parameters
2014-04-03 16:49:50 +01:00
Oliver Gierke
004e758e0b DATAES-78 - Prepare 1.0 M2. 2014-03-31 17:39:48 +02:00
Mohsin Husen
fee9273cb8 DATAES-78 - Release 1.0 M2
updated changelog
2014-03-27 11:20:46 +00:00
Mohsin Husen
1a62161bbc DATAES-78 - Release 1.0 M2
added changelog for 1.0 M2
2014-03-27 10:17:26 +00:00
Mohsin Husen
1e3ec3eaf0 DATAES-64 - Add dynamic settings using @Setting annotation 2014-03-26 20:19:42 +00:00
Szabó Bálint
403930d448 DATAES-74 NPE in MappingElasticsearchEntityInformation 2014-03-24 12:06:01 +01:00
Mohsin Husen
5a78ba31f4 DATAES-73 - NullPointerException while persist a Map as part of persistent entity 2014-03-23 19:06:47 +00:00
Mohsin Husen
07f5fab022 DATAES-71 - Enhance Create Index in ElasticsearchTemplate
added

createIndex(indexName, settings)
getSetting(indexName)
getSetting(class)

methods
2014-03-22 19:27:38 +00:00
Mohsin Husen
6a99d355c0 DATAES-71 - Enhance Create Index in ElasticsearchTemplate
added createIndex(String indexName) method
2014-03-19 21:49:44 +00:00
Mohsin Husen
00eef9cb6c DATAES-72 - Enhance Delete Index in ElasticsearchTemplate
added deleteIndex(String indexName) and indexExist(String  indexName) methods
2014-03-19 21:35:10 +00:00
Mohsin Husen
d75dbbba94 DATAES-67 - count request in ElasticsearchTemplate does not respect specified index 2014-03-19 20:29:07 +00:00
Mohsin Husen
47d3277bd5 DATAES-67 - count request in ElasticsearchTemplate does not respect specified index 2014-03-18 19:46:56 +00:00
Mohsin Husen
d4f2001b46 DATAES-14 - Dynamic Search Type Support
added searchType parameter to NativeSearchQueryBuilder
2014-03-15 09:11:51 +00:00
Artur Konczak
08cdcc5c4c DATAES-14 - added option to choose different search types per query 2014-03-12 16:02:50 +00:00
Mohsin Husen
b6628385d9 DATAES-55 - polish test cases and remove unwanted files 2014-03-04 19:22:49 +00:00
Mohsin Husen
ea45aba8be DATAES-55 - polish test cases and remove unwanted files 2014-03-02 17:43:38 +00:00
Mohsin Husen
19105dcb70 DATAES-55 - polish test cases and remove unwanted files
Test cases were scanning entire package for repositories, created dedicated package for individual repository.
2014-03-02 11:56:47 +00:00
Piotr Betkier
c5da12bdfd DATAES-60 - Java config support - default values in TransportClientFactoryBean 2014-02-23 16:20:33 +00:00
Mohsin Husen
b1edd72205 DATAES-52 - Support Get & Multi Get 2014-02-23 15:25:30 +00:00
Mohsin Husen
38bbb0fd8e DATAES-52 - Support Get & Multi Get
Added support for MultiGetResultMapper for custom fields
2014-02-23 14:59:45 +00:00
Mohsin Husen
c2a53715d8 DATAES-52 - Support Get & Multi Get
Removed getObject() as it was already implemented using queryForObject()

Changed Method name to multiGet() from getObjects()

Made method to accept searchQuery instead of individual params
2014-02-23 13:02:30 +00:00
Ryan Murfitt
ab7c01b37c DATAES-52 - Allow for mapping single element arrays to get around an inconsistency in elastic search using Multi Get and fields. See https://github.com/elasticsearch/elasticsearch/issues/3418 2014-02-17 21:12:17 +00:00
Ryan Murfitt
dd0ce8a947 DATAES-52 - Implement elastic search get and multi get with routing support 2014-02-17 21:12:01 +00:00
Ryan Murfitt
eafdbed68e DATAES-51 - allowed to pass multiple sort builders for NativeSearchQuery
Can now add multiple sort builders to a NativeSearchQuery
2014-02-16 22:19:29 +00:00
Artur Konczak
1352c9f45b DATAES-54 - upgraded to elasticsearch 1.0 2014-02-16 21:44:36 +00:00
mohsin.husen
ea50046f45 DATAES-55 - polish test cases 2014-02-14 09:29:48 +00:00
mohsin.husen
08a6a9b26f DATAES-56 - while specifying index and type at runtime indexing is failing
(this bug was introduced with DATAES-42)
2014-02-14 07:43:40 +00:00
mohsin.husen
be1d26eae3 DATAES-47 - Spring Application(Context) is not getting started up if elasticsearch nodes are not available 2014-02-13 19:19:55 +00:00
mohsin.husen
d92f4150b7 DATAES-48 - Mapping for multiple level nested document is getting created wrong 2014-02-12 20:59:44 +00:00
Artur Konczak
e9a260235d DATAES-2 - all code reformatted to follow Spring Data code rules 2014-02-11 00:44:03 +00:00
mohsin.husen
f768c1698e DATAES-35 - Investigate why build failed
EnableElasticsearchRepositoriesTests.bootstrapsRepository() was failing due to scanning entire org.springframework.data.elasticsearch.repositories package.

Moved ComplexRepositoryTests to another package due to which test was failing.
2014-02-08 10:57:49 +00:00
mohsin.husen
00ffc4a68e DATAES-46 - Remove unused imports & class 2014-02-07 20:32:50 +00:00
Oliver Gierke
984f3a9812 DATAES-45 - Preparing 1.0 M1 release.
Removed obsolete resources. Adapted changelog, notice and readme.
2014-02-07 16:33:47 +01:00
Oliver Gierke
a33a48a882 DATAES-45 - Prepare 1.0 M1 release.
Upgraded to Spring Data Build 1.3.0 RC1 and Spring Data Commons 1.7.0.RC1. Cleaned up pom accordingly.

Adapted repository setup to accommodate for changed lifecycle behavior of repository factories. Marked repositories explicitly created to check for the detection of misconfiguration as @Lazy to prevent them from being instantiated and causing the tests to fail. Added assertion in ElasticsearchEntityInformationCreatorImpl to eagerly fail in case of misconfiguration.

Marked ElasticsearchCrudRepository as @NoRepositoryBean as it should never be considered to be a repository interface to be instantiated.

Tweaked CDI implementation to benefit from new feature in Spring Data Commons to eagerly instantiate CDI repository beans. Fixed capitalization in CDI integration test sample repositories to let the code compile on case-sensitive file systems.
2014-02-07 10:00:54 +01:00
mohsin.husen
06bfb6778b DATAES-43 : Add Test cases for CDI Repository 2014-02-06 20:37:34 +00:00
mohsin.husen
ddce814d3b DATAES-43 : Add Test cases for CDI Repository 2014-02-06 20:16:05 +00:00
mohsin.husen
5c6557e5b9 DATAES-43 : Add Test cases for CDI Repository 2014-02-06 20:01:41 +00:00
mohsin.husen
7828612f15 DATAES-43 : Add Test cases for CDI Repository 2014-02-06 19:48:45 +00:00
mohsin.husen
fb95bb06bf DATAES-42 : Adding support for letting Elasticsearch generate Id for document 2014-02-01 12:53:07 +00:00
Artur Konczak
bbc46d95df DATAES-13 added support for minimum score 2014-01-29 22:06:45 +00:00
akonczak
6c5e8fee22 Merge pull request #29 from javamachr/master
Added DefaultMapper support to map only partial fields from result instead of whole source field.
2014-01-05 04:28:10 -08:00
mohsin.husen
30bd165b22 DATAES-5 : Add Apache license headers where necessary 2014-01-05 11:11:04 +00:00