diff --git a/site/apidocs.zip b/site/apidocs.zip new file mode 100644 index 00000000..aa308186 Binary files /dev/null and b/site/apidocs.zip differ diff --git a/site/apidocs/allclasses-frame.html b/site/apidocs/allclasses-frame.html deleted file mode 100644 index 29a0fb6e..00000000 --- a/site/apidocs/allclasses-frame.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - -All Classes (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -All Classes -
- - - - - -
AbstractElasticsearchRepositoryQuery -
-Criteria -
-Criteria.CriteriaEntry -
-Criteria.OperationKey -
-CriteriaQuery -
-DateTimeConverters -
-DateTimeConverters.JavaDateConverter -
-DateTimeConverters.JodaDateTimeConverter -
-DateTimeConverters.JodaLocalDateTimeConverter -
-DeleteQuery -
-Document -
-ElasticsearchConverter -
-ElasticsearchCrudRepository -
-ElasticsearchEntityInformation -
-ElasticsearchEntityInformationCreator -
-ElasticsearchEntityInformationCreatorImpl -
-ElasticsearchException -
-ElasticsearchNamespaceHandler -
-ElasticsearchOperations -
-ElasticsearchPartQuery -
-ElasticsearchPersistentEntity -
-ElasticsearchPersistentProperty -
-ElasticsearchPersistentProperty.PropertyToFieldNameConverter -
-ElasticsearchQueryCreator -
-ElasticsearchQueryMethod -
-ElasticsearchRepository -
-ElasticsearchRepositoryBean -
-ElasticsearchRepositoryConfigExtension -
-ElasticsearchRepositoryExtension -
-ElasticsearchRepositoryFactory -
-ElasticsearchRepositoryFactoryBean -
-ElasticsearchStringQuery -
-ElasticsearchTemplate -
-EnableElasticsearchRepositories -
-Field -
-GetQuery -
-IndexQuery -
-MappingElasticsearchConverter -
-MappingElasticsearchEntityInformation -
-NodeClientBeanDefinitionParser -
-NodeClientFactoryBean -
-Query -
-Query -
-ResultsMapper -
-SearchQuery -
-SimpleElasticsearchMappingContext -
-SimpleElasticsearchPersistentEntity -
-SimpleElasticsearchPersistentProperty -
-SimpleElasticsearchRepository -
-SimpleField -
-StringQuery -
-TransportClientBeanDefinitionParser -
-TransportClientFactoryBean -
-
- - - diff --git a/site/apidocs/allclasses-noframe.html b/site/apidocs/allclasses-noframe.html deleted file mode 100644 index c6fff969..00000000 --- a/site/apidocs/allclasses-noframe.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - -All Classes (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -All Classes -
- - - - - -
AbstractElasticsearchRepositoryQuery -
-Criteria -
-Criteria.CriteriaEntry -
-Criteria.OperationKey -
-CriteriaQuery -
-DateTimeConverters -
-DateTimeConverters.JavaDateConverter -
-DateTimeConverters.JodaDateTimeConverter -
-DateTimeConverters.JodaLocalDateTimeConverter -
-DeleteQuery -
-Document -
-ElasticsearchConverter -
-ElasticsearchCrudRepository -
-ElasticsearchEntityInformation -
-ElasticsearchEntityInformationCreator -
-ElasticsearchEntityInformationCreatorImpl -
-ElasticsearchException -
-ElasticsearchNamespaceHandler -
-ElasticsearchOperations -
-ElasticsearchPartQuery -
-ElasticsearchPersistentEntity -
-ElasticsearchPersistentProperty -
-ElasticsearchPersistentProperty.PropertyToFieldNameConverter -
-ElasticsearchQueryCreator -
-ElasticsearchQueryMethod -
-ElasticsearchRepository -
-ElasticsearchRepositoryBean -
-ElasticsearchRepositoryConfigExtension -
-ElasticsearchRepositoryExtension -
-ElasticsearchRepositoryFactory -
-ElasticsearchRepositoryFactoryBean -
-ElasticsearchStringQuery -
-ElasticsearchTemplate -
-EnableElasticsearchRepositories -
-Field -
-GetQuery -
-IndexQuery -
-MappingElasticsearchConverter -
-MappingElasticsearchEntityInformation -
-NodeClientBeanDefinitionParser -
-NodeClientFactoryBean -
-Query -
-Query -
-ResultsMapper -
-SearchQuery -
-SimpleElasticsearchMappingContext -
-SimpleElasticsearchPersistentEntity -
-SimpleElasticsearchPersistentProperty -
-SimpleElasticsearchRepository -
-SimpleField -
-StringQuery -
-TransportClientBeanDefinitionParser -
-TransportClientFactoryBean -
-
- - - diff --git a/site/apidocs/constant-values.html b/site/apidocs/constant-values.html deleted file mode 100644 index 89615e66..00000000 --- a/site/apidocs/constant-values.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - -Constant Field Values (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Constant Field Values

-
-
-Contents - - - - - - -
-org.springframework.*
- -

- - - - - - - - - - - - - - - - - -
org.springframework.data.elasticsearch.core.query.Criteria
-public static final StringCRITERIA_VALUE_SEPERATOR" "
-public static final StringWILDCARD"*"
- -

- -

- - - - - - - - - - - - -
org.springframework.data.elasticsearch.core.query.Query
-public static final intDEFAULT_PAGE_SIZE10
- -

- -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/deprecated-list.html b/site/apidocs/deprecated-list.html deleted file mode 100644 index c4aaf7c8..00000000 --- a/site/apidocs/deprecated-list.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - -Deprecated List (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Deprecated API

-
-
-Contents - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/help-doc.html b/site/apidocs/help-doc.html deleted file mode 100644 index df932bb0..00000000 --- a/site/apidocs/help-doc.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - -API Help (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-How This API Document Is Organized

-
-This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

-Overview

-
- -

-The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

-

-Package

-
- -

-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

-
-

-Class/Interface

-
- -

-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
- -

-Annotation Type

-
- -

-Each annotation type has its own separate page with the following sections:

-
- -

-Enum

-
- -

-Each enum has its own separate page with the following sections:

-
-

-Use

-
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-

-Tree (Class Hierarchy)

-
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. -
-

-Deprecated API

-
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-

-Index

-
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-

-Prev/Next

-These links take you to the next or previous class, interface, package, or related page.

-Frames/No Frames

-These links show and hide the HTML frames. All pages are available with or without frames. -

-

-Serialized Form

-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. -

-

-Constant Field Values

-The Constant Field Values page lists the static final fields and their values. -

- - -This help file applies to API documentation generated using the standard doclet. - -
-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/index-all.html b/site/apidocs/index-all.html deleted file mode 100644 index 73d515bd..00000000 --- a/site/apidocs/index-all.html +++ /dev/null @@ -1,996 +0,0 @@ - - - - - - - -Index (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -A B C D E F G H I L M N O P Q R S T V W
-

-A

-
-
AbstractElasticsearchRepositoryQuery - Class in org.springframework.data.elasticsearch.repository.query
 
AbstractElasticsearchRepositoryQuery(ElasticsearchQueryMethod, ElasticsearchOperations) - -Constructor for class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery -
  -
addCriteria(Criteria) - -Method in class org.springframework.data.elasticsearch.core.query.CriteriaQuery -
  -
addSort(Sort) - -Method in interface org.springframework.data.elasticsearch.core.query.Query -
Add Sort to query -
afterPropertiesSet() - -Method in class org.springframework.data.elasticsearch.client.NodeClientFactoryBean -
  -
afterPropertiesSet() - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
afterPropertiesSet() - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean -
  -
and(Field) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using AND -
and(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using AND -
and(Criteria) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using AND -
and(Criteria...) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using AND -
and(Part, CriteriaQuery, Iterator<Object>) - -Method in class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -
  -
-
-

-B

-
-
between(Object, Object) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry for RANGE [lowerBound TO upperBound] -
boost(float) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Boost positive hit with given factor. eg. ^2.3 -
buildClient() - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
bulkIndex(List<IndexQuery>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Bulk index all objects. -
bulkIndex(List<IndexQuery>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
-
-

-C

-
-
complete(CriteriaQuery, Sort) - -Method in class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -
  -
contains(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry with leading and trailing wildcards
- NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow. -
convert(Date) - -Method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JavaDateConverter -
  -
convert(ReadableInstant) - -Method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter -
  -
convert(LocalDateTime) - -Method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaLocalDateTimeConverter -
  -
convert(ElasticsearchPersistentProperty) - -Method in enum org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.PropertyToFieldNameConverter -
  -
count(SearchQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
return number of elements found by for given query -
count(SearchQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
count() - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
create(CreationalContext<T>, Class<T>) - -Method in class org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean -
  -
create(Part, Iterator<Object>) - -Method in class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -
  -
createAssociation() - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty -
  -
createIndex(Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Create an index -
createIndex(Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
createIndex() - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
createPersistentEntity(TypeInformation<T>) - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext -
  -
createPersistentProperty(Field, PropertyDescriptor, SimpleElasticsearchPersistentEntity<?>, SimpleTypeHolder) - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext -
  -
createQuery(ParametersParameterAccessor) - -Method in class org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery -
  -
createQuery(ParametersParameterAccessor) - -Method in class org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery -
  -
createRepositoryFactory() - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean -
  -
Criteria - Class in org.springframework.data.elasticsearch.core.query
Criteria is the central class when constructing queries.
Criteria() - -Constructor for class org.springframework.data.elasticsearch.core.query.Criteria -
  -
Criteria(String) - -Constructor for class org.springframework.data.elasticsearch.core.query.Criteria -
Creates a new CriterSimpleFieldia for the Filed with provided name -
Criteria(Field) - -Constructor for class org.springframework.data.elasticsearch.core.query.Criteria -
Creates a new Criteria for the given field -
Criteria(List<Criteria>, String) - -Constructor for class org.springframework.data.elasticsearch.core.query.Criteria -
  -
Criteria(List<Criteria>, Field) - -Constructor for class org.springframework.data.elasticsearch.core.query.Criteria -
  -
Criteria.CriteriaEntry - Class in org.springframework.data.elasticsearch.core.query
 
Criteria.OperationKey - Enum in org.springframework.data.elasticsearch.core.query
 
CRITERIA_VALUE_SEPERATOR - -Static variable in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
CriteriaQuery - Class in org.springframework.data.elasticsearch.core.query
 
CriteriaQuery(Criteria) - -Constructor for class org.springframework.data.elasticsearch.core.query.CriteriaQuery -
  -
CriteriaQuery(Criteria, Pageable) - -Constructor for class org.springframework.data.elasticsearch.core.query.CriteriaQuery -
  -
-
-

-D

-
-
DateTimeConverters - Class in org.springframework.data.elasticsearch.core.convert
 
DateTimeConverters() - -Constructor for class org.springframework.data.elasticsearch.core.convert.DateTimeConverters -
  -
DateTimeConverters.JavaDateConverter - Enum in org.springframework.data.elasticsearch.core.convert
 
DateTimeConverters.JodaDateTimeConverter - Enum in org.springframework.data.elasticsearch.core.convert
 
DateTimeConverters.JodaLocalDateTimeConverter - Enum in org.springframework.data.elasticsearch.core.convert
 
DEFAULT_PAGE_SIZE - -Static variable in interface org.springframework.data.elasticsearch.core.query.Query -
  -
delete(String, String, String) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Delete the one object with provided id -
delete(Class<T>, String) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Delete the one object with provided id -
delete(DeleteQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Delete all records matching the query -
delete(String, String, String) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
delete(Class<T>, String) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
delete(DeleteQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
delete(String) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
delete(T) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
delete(Iterable<? extends T>) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
deleteAll() - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
DeleteQuery - Class in org.springframework.data.elasticsearch.core.query
 
DeleteQuery() - -Constructor for class org.springframework.data.elasticsearch.core.query.DeleteQuery -
  -
destroy() - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
Document - Annotation Type in org.springframework.data.elasticsearch.annotations
 
-
-

-E

-
-
ElasticsearchConverter - Interface in org.springframework.data.elasticsearch.core.convert
 
ElasticsearchCrudRepository<T,ID extends Serializable> - Interface in org.springframework.data.elasticsearch.repository
 
ElasticsearchEntityInformation<T,ID extends Serializable> - Interface in org.springframework.data.elasticsearch.repository.support
 
ElasticsearchEntityInformationCreator - Interface in org.springframework.data.elasticsearch.repository.support
 
ElasticsearchEntityInformationCreatorImpl - Class in org.springframework.data.elasticsearch.repository.support
 
ElasticsearchEntityInformationCreatorImpl(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty>) - -Constructor for class org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreatorImpl -
  -
ElasticsearchException - Exception in org.springframework.data.elasticsearch
 
ElasticsearchException(String) - -Constructor for exception org.springframework.data.elasticsearch.ElasticsearchException -
  -
ElasticsearchException(String, Throwable) - -Constructor for exception org.springframework.data.elasticsearch.ElasticsearchException -
  -
ElasticsearchException(String, Throwable, Map<String, String>) - -Constructor for exception org.springframework.data.elasticsearch.ElasticsearchException -
  -
ElasticsearchException(String, Map<String, String>) - -Constructor for exception org.springframework.data.elasticsearch.ElasticsearchException -
  -
ElasticsearchNamespaceHandler - Class in org.springframework.data.elasticsearch.config
 
ElasticsearchNamespaceHandler() - -Constructor for class org.springframework.data.elasticsearch.config.ElasticsearchNamespaceHandler -
  -
ElasticsearchOperations - Interface in org.springframework.data.elasticsearch.core
 
elasticsearchOperations - -Variable in class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery -
  -
ElasticsearchPartQuery - Class in org.springframework.data.elasticsearch.repository.query
 
ElasticsearchPartQuery(ElasticsearchQueryMethod, ElasticsearchOperations) - -Constructor for class org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery -
  -
ElasticsearchPersistentEntity<T> - Interface in org.springframework.data.elasticsearch.core.mapping
 
ElasticsearchPersistentProperty - Interface in org.springframework.data.elasticsearch.core.mapping
 
ElasticsearchPersistentProperty.PropertyToFieldNameConverter - Enum in org.springframework.data.elasticsearch.core.mapping
 
ElasticsearchQueryCreator - Class in org.springframework.data.elasticsearch.repository.query.parser
 
ElasticsearchQueryCreator(PartTree, ParameterAccessor, MappingContext<?, ElasticsearchPersistentProperty>) - -Constructor for class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -
  -
ElasticsearchQueryCreator(PartTree, MappingContext<?, ElasticsearchPersistentProperty>) - -Constructor for class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -
  -
ElasticsearchQueryMethod - Class in org.springframework.data.elasticsearch.repository.query
 
ElasticsearchQueryMethod(Method, RepositoryMetadata, ElasticsearchEntityInformationCreator) - -Constructor for class org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod -
  -
ElasticsearchRepository<T,ID extends Serializable> - Interface in org.springframework.data.elasticsearch.repository
 
ElasticsearchRepositoryBean<T> - Class in org.springframework.data.elasticsearch.repository.cdi
Uses CdiRepositoryBean to create ElasticsearchRepository instances.
ElasticsearchRepositoryBean(Bean<ElasticsearchOperations>, Set<Annotation>, Class<T>, BeanManager) - -Constructor for class org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean -
  -
ElasticsearchRepositoryConfigExtension - Class in org.springframework.data.elasticsearch.repository.config
RepositoryConfigurationExtension implementation to configure Elasticsearch repository configuration support, - evaluating the EnableElasticsearchRepositories annotation or the equivalent XML element.
ElasticsearchRepositoryConfigExtension() - -Constructor for class org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension -
  -
ElasticsearchRepositoryExtension - Class in org.springframework.data.elasticsearch.repository.cdi
 
ElasticsearchRepositoryExtension() - -Constructor for class org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryExtension -
  -
ElasticsearchRepositoryFactory - Class in org.springframework.data.elasticsearch.repository.support
Factory to create ElasticsearchRepository
ElasticsearchRepositoryFactory(ElasticsearchOperations) - -Constructor for class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory -
  -
ElasticsearchRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable> - Class in org.springframework.data.elasticsearch.repository.support
Spring FactoryBean implementation to ease container based configuration for XML namespace and JavaConfig.
ElasticsearchRepositoryFactoryBean() - -Constructor for class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean -
  -
ElasticsearchStringQuery - Class in org.springframework.data.elasticsearch.repository.query
 
ElasticsearchStringQuery(ElasticsearchQueryMethod, ElasticsearchOperations, String) - -Constructor for class org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery -
  -
ElasticsearchTemplate - Class in org.springframework.data.elasticsearch.core
 
ElasticsearchTemplate(Client) - -Constructor for class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
ElasticsearchTemplate(Client, ElasticsearchConverter) - -Constructor for class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
EnableElasticsearchRepositories - Annotation Type in org.springframework.data.elasticsearch.repository.config
Annotation to enable Elasticsearch repositories.
endsWith(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry with leading wildcard
- NOTE: mind your schema and execution times as leading wildcards may not be supported. -
execute(Object[]) - -Method in class org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery -
  -
execute(Object[]) - -Method in class org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery -
  -
exists(String) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
expression(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry allowing native elasticsearch expressions -
-
-

-F

-
-
Field - Interface in org.springframework.data.elasticsearch.core.query
Defines a Field that can be used within a Criteria.
findAll() - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
findAll(Pageable) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
findAll(Sort) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
findAll(Iterable<String>) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
findOne(String) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
fromQuery(CriteriaQuery) - -Static method in class org.springframework.data.elasticsearch.core.query.CriteriaQuery -
  -
fromQuery(CriteriaQuery, T) - -Static method in class org.springframework.data.elasticsearch.core.query.CriteriaQuery -
  -
fuzzy(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry with trailing ~ -
-
-

-G

-
-
getAnnotatedQuery() - -Method in class org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod -
  -
getBoost() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
getConjunctionOperator() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Conjunction to be used with this criteria (AND | OR) -
getConversionService() - -Method in interface org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter -
Returns the underlying ConversionService used by the converter. -
getConversionService() - -Method in class org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter -
  -
getCriteria() - -Method in class org.springframework.data.elasticsearch.core.query.CriteriaQuery -
  -
getCriteriaChain() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
getCriteriaEntries() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
getElasticsearchConverter() - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
  -
getElasticsearchConverter() - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
getElasticsearchFilter() - -Method in class org.springframework.data.elasticsearch.core.query.SearchQuery -
  -
getElasticsearchQuery() - -Method in class org.springframework.data.elasticsearch.core.query.DeleteQuery -
  -
getElasticsearchQuery() - -Method in class org.springframework.data.elasticsearch.core.query.SearchQuery -
  -
getEntityClass() - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
getEntityInformation(Class<T>) - -Method in interface org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreator -
  -
getEntityInformation(Class<T>) - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreatorImpl -
  -
getEntityInformation(Class<T>) - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory -
  -
getFailedDocuments() - -Method in exception org.springframework.data.elasticsearch.ElasticsearchException -
  -
getField() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Field targeted by this Criteria -
getFieldName() - -Method in interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty -
  -
getFieldName() - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty -
  -
getId() - -Method in class org.springframework.data.elasticsearch.core.query.GetQuery -
  -
getId() - -Method in class org.springframework.data.elasticsearch.core.query.IndexQuery -
  -
getId(T) - -Method in class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
getIdAttribute() - -Method in interface org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformation -
  -
getIdAttribute() - -Method in class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
getIdType() - -Method in class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
getIndexName() - -Method in interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity -
  -
getIndexName() - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity -
  -
getIndexName() - -Method in interface org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformation -
  -
getIndexName() - -Method in class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
getIndexType() - -Method in interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity -
  -
getIndexType() - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity -
  -
getKey() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria.CriteriaEntry -
  -
getMappingContext() - -Method in interface org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter -
Returns the underlying MappingContext used by the converter. -
getMappingContext() - -Method in class org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter -
  -
getModulePrefix() - -Method in class org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension -
  -
getName() - -Method in interface org.springframework.data.elasticsearch.core.query.Field -
Get the name of the field used in schema.xml of elasticsearch server -
getName() - -Method in class org.springframework.data.elasticsearch.core.query.SimpleField -
  -
getObject() - -Method in class org.springframework.data.elasticsearch.client.NodeClientFactoryBean -
  -
getObject() - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
getObject() - -Method in class org.springframework.data.elasticsearch.core.query.IndexQuery -
  -
getObjectType() - -Method in class org.springframework.data.elasticsearch.client.NodeClientFactoryBean -
  -
getObjectType() - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
getPageable() - -Method in interface org.springframework.data.elasticsearch.core.query.Query -
Get page settings if defined -
GetQuery - Class in org.springframework.data.elasticsearch.core.query
 
GetQuery() - -Constructor for class org.springframework.data.elasticsearch.core.query.GetQuery -
  -
getQueryLookupStrategy(QueryLookupStrategy.Key) - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory -
  -
getQueryMethod() - -Method in class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery -
  -
getRepositoryBaseClass(RepositoryMetadata) - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory -
  -
getRepositoryFactoryClassName() - -Method in class org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension -
  -
getScope() - -Method in class org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean -
  -
getSort() - -Method in interface org.springframework.data.elasticsearch.core.query.Query -
  -
getSource() - -Method in class org.springframework.data.elasticsearch.core.query.StringQuery -
  -
getTargetRepository(RepositoryMetadata) - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory -
  -
getType() - -Method in interface org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformation -
  -
getType() - -Method in class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
getValue() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria.CriteriaEntry -
  -
greaterThanEqual(Object) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry for RANGE [lowerBound TO *] -
-
-

-H

-
-
hasAnnotatedQuery() - -Method in class org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod -
  -
-
-

-I

-
-
in(Object...) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...) -
in(Iterable<?>) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...) -
index(IndexQuery) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Index an object. -
index(IndexQuery) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
index(S) - -Method in interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository -
  -
index(S) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
IndexQuery - Class in org.springframework.data.elasticsearch.core.query
 
IndexQuery() - -Constructor for class org.springframework.data.elasticsearch.core.query.IndexQuery -
  -
init() - -Method in class org.springframework.data.elasticsearch.config.ElasticsearchNamespaceHandler -
  -
is(Object) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry without any wildcards -
isAnd() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
isIdProperty() - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty -
  -
isNegating() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
isOr() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
isSingleton() - -Method in class org.springframework.data.elasticsearch.client.NodeClientFactoryBean -
  -
isSingleton() - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
-
-

-L

-
-
lessThanEqual(Object) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry for RANGE [* TO upperBound] -
-
-

-M

-
-
MappingElasticsearchConverter - Class in org.springframework.data.elasticsearch.core.convert
 
MappingElasticsearchConverter(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty>) - -Constructor for class org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter -
  -
MappingElasticsearchEntityInformation<T,ID extends Serializable> - Class in org.springframework.data.elasticsearch.repository.support
Elasticsearch specific implementation of AbstractEntityInformation
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T>) - -Constructor for class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T>, String, String) - -Constructor for class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -
  -
mapResults(SearchResponse) - -Method in interface org.springframework.data.elasticsearch.core.ResultsMapper -
  -
-
-

-N

-
-
NodeClientBeanDefinitionParser - Class in org.springframework.data.elasticsearch.config
 
NodeClientBeanDefinitionParser() - -Constructor for class org.springframework.data.elasticsearch.config.NodeClientBeanDefinitionParser -
  -
NodeClientFactoryBean - Class in org.springframework.data.elasticsearch.client
 
NodeClientFactoryBean(boolean) - -Constructor for class org.springframework.data.elasticsearch.client.NodeClientFactoryBean -
  -
not() - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry with trailing - -
-
-

-O

-
-
or(Field) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using OR -
or(Criteria) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using OR -
or(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Chain using OR -
or(CriteriaQuery, CriteriaQuery) - -Method in class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -
  -
org.springframework.data.elasticsearch - package org.springframework.data.elasticsearch
 
org.springframework.data.elasticsearch.annotations - package org.springframework.data.elasticsearch.annotations
 
org.springframework.data.elasticsearch.client - package org.springframework.data.elasticsearch.client
 
org.springframework.data.elasticsearch.config - package org.springframework.data.elasticsearch.config
 
org.springframework.data.elasticsearch.core - package org.springframework.data.elasticsearch.core
 
org.springframework.data.elasticsearch.core.convert - package org.springframework.data.elasticsearch.core.convert
 
org.springframework.data.elasticsearch.core.mapping - package org.springframework.data.elasticsearch.core.mapping
 
org.springframework.data.elasticsearch.core.query - package org.springframework.data.elasticsearch.core.query
 
org.springframework.data.elasticsearch.repository - package org.springframework.data.elasticsearch.repository
 
org.springframework.data.elasticsearch.repository.cdi - package org.springframework.data.elasticsearch.repository.cdi
 
org.springframework.data.elasticsearch.repository.config - package org.springframework.data.elasticsearch.repository.config
 
org.springframework.data.elasticsearch.repository.query - package org.springframework.data.elasticsearch.repository.query
 
org.springframework.data.elasticsearch.repository.query.parser - package org.springframework.data.elasticsearch.repository.query.parser
 
org.springframework.data.elasticsearch.repository.support - package org.springframework.data.elasticsearch.repository.support
 
-
-

-P

-
-
parseInternal(Element, ParserContext) - -Method in class org.springframework.data.elasticsearch.config.NodeClientBeanDefinitionParser -
  -
parseInternal(Element, ParserContext) - -Method in class org.springframework.data.elasticsearch.config.TransportClientBeanDefinitionParser -
  -
postProcess(BeanDefinitionBuilder, AnnotationRepositoryConfigurationSource) - -Method in class org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension -
  -
postProcess(BeanDefinitionBuilder, XmlRepositoryConfigurationSource) - -Method in class org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension -
  -
-
-

-Q

-
-
Query - Annotation Type in org.springframework.data.elasticsearch.annotations
 
Query - Interface in org.springframework.data.elasticsearch.core.query
 
queryForObject(GetQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Execute the query against elasticsearch and return the first returned object -
queryForObject(CriteriaQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Execute the query against elasticsearch and return the first returned object -
queryForObject(StringQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Execute the query against elasticsearch and return the first returned object -
queryForObject(GetQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
queryForObject(CriteriaQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
queryForObject(StringQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
queryForPage(SearchQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Execute the query against elasticsearch and return result as Page -
queryForPage(CriteriaQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Execute the query against elasticsearch and return result as Page -
queryForPage(StringQuery, Class<T>) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
Execute the query against elasticsearch and return result as Page -
queryForPage(SearchQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
queryForPage(CriteriaQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
queryForPage(StringQuery, Class<T>) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
queryMethod - -Variable in class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery -
  -
-
-

-R

-
-
refresh(String, boolean) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
refresh the index -
refresh(Class<T>, boolean) - -Method in interface org.springframework.data.elasticsearch.core.ElasticsearchOperations -
refresh the index -
refresh(String, boolean) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
refresh(Class<T>, boolean) - -Method in class org.springframework.data.elasticsearch.core.ElasticsearchTemplate -
  -
ResultsMapper<T> - Interface in org.springframework.data.elasticsearch.core
 
-
-

-S

-
-
save(List<S>) - -Method in interface org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository -
  -
save(S) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
save(List<S>) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
save(Iterable<S>) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
search(QueryBuilder) - -Method in interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository -
  -
search(QueryBuilder, Pageable) - -Method in interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository -
  -
search(SearchQuery) - -Method in interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository -
  -
search(QueryBuilder) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
search(QueryBuilder, Pageable) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
search(SearchQuery) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
SearchQuery - Class in org.springframework.data.elasticsearch.core.query
 
SearchQuery() - -Constructor for class org.springframework.data.elasticsearch.core.query.SearchQuery -
  -
setApplicationContext(ApplicationContext) - -Method in class org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter -
  -
setApplicationContext(ApplicationContext) - -Method in class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity -
  -
setClusterNodes(String[]) - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
setElasticsearchFilter(FilterBuilder) - -Method in class org.springframework.data.elasticsearch.core.query.SearchQuery -
  -
setElasticsearchOperations(ElasticsearchOperations) - -Method in class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean -
Configures the ElasticsearchOperations to be used to create Elasticsearch repositories. -
setElasticsearchOperations(ElasticsearchOperations) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
setElasticsearchQuery(QueryBuilder) - -Method in class org.springframework.data.elasticsearch.core.query.DeleteQuery -
  -
setElasticsearchQuery(QueryBuilder) - -Method in class org.springframework.data.elasticsearch.core.query.SearchQuery -
  -
setEntityClass(Class<T>) - -Method in class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
setId(String) - -Method in class org.springframework.data.elasticsearch.core.query.GetQuery -
  -
setId(String) - -Method in class org.springframework.data.elasticsearch.core.query.IndexQuery -
  -
setLocal(boolean) - -Method in class org.springframework.data.elasticsearch.client.NodeClientFactoryBean -
  -
setObject(Object) - -Method in class org.springframework.data.elasticsearch.core.query.IndexQuery -
  -
setPageable(Pageable) - -Method in interface org.springframework.data.elasticsearch.core.query.Query -
restrict result to entries on given page. -
setProperties(Properties) - -Method in class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
SimpleElasticsearchMappingContext - Class in org.springframework.data.elasticsearch.core.mapping
 
SimpleElasticsearchMappingContext() - -Constructor for class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext -
  -
SimpleElasticsearchPersistentEntity<T> - Class in org.springframework.data.elasticsearch.core.mapping
Elasticsearch specific PersistentEntity implementation holding
SimpleElasticsearchPersistentEntity(TypeInformation<T>) - -Constructor for class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity -
  -
SimpleElasticsearchPersistentProperty - Class in org.springframework.data.elasticsearch.core.mapping
Elasticsearch specific PersistentProperty implementation processing
SimpleElasticsearchPersistentProperty(Field, PropertyDescriptor, PersistentEntity<?, ElasticsearchPersistentProperty>, SimpleTypeHolder) - -Constructor for class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty -
  -
SimpleElasticsearchRepository<T> - Class in org.springframework.data.elasticsearch.repository.support
Elasticsearch specific repository implementation.
SimpleElasticsearchRepository() - -Constructor for class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
SimpleElasticsearchRepository(ElasticsearchOperations) - -Constructor for class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
SimpleElasticsearchRepository(ElasticsearchEntityInformation<T, String>, ElasticsearchOperations) - -Constructor for class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -
  -
SimpleField - Class in org.springframework.data.elasticsearch.core.query
The most trivial implementation of a Field
SimpleField(String) - -Constructor for class org.springframework.data.elasticsearch.core.query.SimpleField -
  -
startsWith(String) - -Method in class org.springframework.data.elasticsearch.core.query.Criteria -
Crates new CriteriaEntry with trailing wildcard -
StringQuery - Class in org.springframework.data.elasticsearch.core.query
 
StringQuery(String) - -Constructor for class org.springframework.data.elasticsearch.core.query.StringQuery -
  -
StringQuery(String, Pageable) - -Constructor for class org.springframework.data.elasticsearch.core.query.StringQuery -
  -
StringQuery(String, Pageable, Sort) - -Constructor for class org.springframework.data.elasticsearch.core.query.StringQuery -
  -
-
-

-T

-
-
toString() - -Method in class org.springframework.data.elasticsearch.core.query.SimpleField -
  -
TransportClientBeanDefinitionParser - Class in org.springframework.data.elasticsearch.config
 
TransportClientBeanDefinitionParser() - -Constructor for class org.springframework.data.elasticsearch.config.TransportClientBeanDefinitionParser -
  -
TransportClientFactoryBean - Class in org.springframework.data.elasticsearch.client
 
TransportClientFactoryBean() - -Constructor for class org.springframework.data.elasticsearch.client.TransportClientFactoryBean -
  -
-
-

-V

-
-
valueOf(String) - -Static method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JavaDateConverter -
Returns the enum constant of this type with the specified name. -
valueOf(String) - -Static method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter -
Returns the enum constant of this type with the specified name. -
valueOf(String) - -Static method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaLocalDateTimeConverter -
Returns the enum constant of this type with the specified name. -
valueOf(String) - -Static method in enum org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.PropertyToFieldNameConverter -
Returns the enum constant of this type with the specified name. -
valueOf(String) - -Static method in enum org.springframework.data.elasticsearch.core.query.Criteria.OperationKey -
Returns the enum constant of this type with the specified name. -
values() - -Static method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JavaDateConverter -
Returns an array containing the constants of this enum type, in -the order they are declared. -
values() - -Static method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter -
Returns an array containing the constants of this enum type, in -the order they are declared. -
values() - -Static method in enum org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaLocalDateTimeConverter -
Returns an array containing the constants of this enum type, in -the order they are declared. -
values() - -Static method in enum org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.PropertyToFieldNameConverter -
Returns an array containing the constants of this enum type, in -the order they are declared. -
values() - -Static method in enum org.springframework.data.elasticsearch.core.query.Criteria.OperationKey -
Returns an array containing the constants of this enum type, in -the order they are declared. -
-
-

-W

-
-
where(String) - -Static method in class org.springframework.data.elasticsearch.core.query.Criteria -
Static factory method to create a new Criteria for field with given name -
where(Field) - -Static method in class org.springframework.data.elasticsearch.core.query.Criteria -
Static factory method to create a new Criteria for provided field -
WILDCARD - -Static variable in class org.springframework.data.elasticsearch.core.query.Criteria -
  -
-
-A B C D E F G H I L M N O P Q R S T V W - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/index.html b/site/apidocs/index.html deleted file mode 100644 index b41b37c2..00000000 --- a/site/apidocs/index.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - -Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API - - - - - - - - - - - -<H2> -Frame Alert</H2> - -<P> -This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. -<BR> -Link to<A HREF="overview-summary.html">Non-frame version.</A> - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/ElasticsearchException.html b/site/apidocs/org/springframework/data/elasticsearch/ElasticsearchException.html deleted file mode 100644 index fdb13cc4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/ElasticsearchException.html +++ /dev/null @@ -1,320 +0,0 @@ - - - - - - - -ElasticsearchException (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch -
-Class ElasticsearchException

-
-java.lang.Object
-  extended by java.lang.Throwable
-      extended by java.lang.Exception
-          extended by java.lang.RuntimeException
-              extended by org.springframework.data.elasticsearch.ElasticsearchException
-
-
-
All Implemented Interfaces:
Serializable
-
-
-
-
public class ElasticsearchException
extends RuntimeException
- - -

-

-
See Also:
Serialized Form
-
- -

- - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
ElasticsearchException(String message) - -
-           
ElasticsearchException(String message, - Map<String,String> failedDocuments) - -
-           
ElasticsearchException(String message, - Throwable cause) - -
-           
ElasticsearchException(String message, - Throwable cause, - Map<String,String> failedDocuments) - -
-           
-  - - - - - - - - - - - -
-Method Summary
- Map<String,String>getFailedDocuments() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchException

-
-public ElasticsearchException(String message)
-
-
-
- -

-ElasticsearchException

-
-public ElasticsearchException(String message,
-                              Throwable cause)
-
-
-
- -

-ElasticsearchException

-
-public ElasticsearchException(String message,
-                              Throwable cause,
-                              Map<String,String> failedDocuments)
-
-
-
- -

-ElasticsearchException

-
-public ElasticsearchException(String message,
-                              Map<String,String> failedDocuments)
-
-
- - - - - - - - -
-Method Detail
- -

-getFailedDocuments

-
-public Map<String,String> getFailedDocuments()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/Document.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/Document.html deleted file mode 100644 index 8fe8e293..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/Document.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - -Document (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.annotations -
-Annotation Type Document

-
-
-
@Inherited
-@Retention(value=RUNTIME)
-@Target(value=TYPE)
-public @interface Document
- - -

-


- -

- - - - - - - - - - - - - - - -
-Optional Element Summary
- StringindexName - -
-           
- Stringtype - -
-           
-  -

-

-indexName

-
-public abstract String indexName
-
-
-
-
-
-
-
-
Default:
""
-
-
-
- -

-type

-
-public abstract String type
-
-
-
-
-
-
-
-
Default:
""
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/Query.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/Query.html deleted file mode 100644 index c3d74387..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/Query.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - -Query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.annotations -
-Annotation Type Query

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-@Documented
-public @interface Query
- - -

-


- -

- - - - - - - - - - - - - - - -
-Optional Element Summary
- Stringname - -
-          Named Query Named looked up by repository.
- Stringvalue - -
-          Elasticsearch query to be used when executing query.
-  -

-

-value

-
-public abstract String value
-
-
Elasticsearch query to be used when executing query. May contain placeholders eg. ?0 -

-

-
-
-
- -
Returns:
-
-
Default:
""
-
-
-
- -

-name

-
-public abstract String name
-
-
Named Query Named looked up by repository. -

-

-
-
-
- -
Returns:
-
-
Default:
""
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/class-use/Document.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/class-use/Document.html deleted file mode 100644 index 031e0306..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/class-use/Document.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.annotations.Document (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.annotations.Document

-
-No usage of org.springframework.data.elasticsearch.annotations.Document -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/class-use/Query.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/class-use/Query.html deleted file mode 100644 index c091a020..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/class-use/Query.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.annotations.Query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.annotations.Query

-
-No usage of org.springframework.data.elasticsearch.annotations.Query -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/package-frame.html deleted file mode 100644 index c5ea92a0..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-frame.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.annotations (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.annotations - - - - -
-Annotation Types  - -
-Document -
-Query
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/package-summary.html deleted file mode 100644 index 82ebc1ea..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.annotations (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.annotations -

- - - - - - - - - - - - - -
-Annotation Types Summary
Document 
Query 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/package-tree.html deleted file mode 100644 index 324478b3..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-tree.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.annotations Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.annotations -

-
-
-
Package Hierarchies:
All Packages
-
-

-Annotation Type Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/annotations/package-use.html deleted file mode 100644 index 5bda0f8c..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/annotations/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.annotations (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.annotations

-
-No usage of org.springframework.data.elasticsearch.annotations -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/class-use/ElasticsearchException.html b/site/apidocs/org/springframework/data/elasticsearch/class-use/ElasticsearchException.html deleted file mode 100644 index 5a288172..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/class-use/ElasticsearchException.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.ElasticsearchException (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.ElasticsearchException

-
-No usage of org.springframework.data.elasticsearch.ElasticsearchException -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/NodeClientFactoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/client/NodeClientFactoryBean.html deleted file mode 100644 index 4fb9b777..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/NodeClientFactoryBean.html +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - - -NodeClientFactoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.client -
-Class NodeClientFactoryBean

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.client.NodeClientFactoryBean
-
-
-
All Implemented Interfaces:
FactoryBean<org.elasticsearch.client.node.NodeClient>, InitializingBean
-
-
-
-
public class NodeClientFactoryBean
extends Object
implements FactoryBean<org.elasticsearch.client.node.NodeClient>, InitializingBean
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
NodeClientFactoryBean(boolean local) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidafterPropertiesSet() - -
-           
- org.elasticsearch.client.node.NodeClientgetObject() - -
-           
- Class<? extends org.elasticsearch.client.Client>getObjectType() - -
-           
- booleanisSingleton() - -
-           
- voidsetLocal(boolean local) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-NodeClientFactoryBean

-
-public NodeClientFactoryBean(boolean local)
-
-
- - - - - - - - -
-Method Detail
- -

-getObject

-
-public org.elasticsearch.client.node.NodeClient getObject()
-                                                   throws Exception
-
-
-
Specified by:
getObject in interface FactoryBean<org.elasticsearch.client.node.NodeClient>
-
-
- -
Throws: -
Exception
-
-
-
- -

-getObjectType

-
-public Class<? extends org.elasticsearch.client.Client> getObjectType()
-
-
-
Specified by:
getObjectType in interface FactoryBean<org.elasticsearch.client.node.NodeClient>
-
-
-
-
-
-
- -

-isSingleton

-
-public boolean isSingleton()
-
-
-
Specified by:
isSingleton in interface FactoryBean<org.elasticsearch.client.node.NodeClient>
-
-
-
-
-
-
- -

-afterPropertiesSet

-
-public void afterPropertiesSet()
-                        throws Exception
-
-
-
Specified by:
afterPropertiesSet in interface InitializingBean
-
-
- -
Throws: -
Exception
-
-
-
- -

-setLocal

-
-public void setLocal(boolean local)
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/TransportClientFactoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/client/TransportClientFactoryBean.html deleted file mode 100644 index cad11838..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/TransportClientFactoryBean.html +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - -TransportClientFactoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.client -
-Class TransportClientFactoryBean

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.client.TransportClientFactoryBean
-
-
-
All Implemented Interfaces:
DisposableBean, FactoryBean<org.elasticsearch.client.transport.TransportClient>, InitializingBean
-
-
-
-
public class TransportClientFactoryBean
extends Object
implements FactoryBean<org.elasticsearch.client.transport.TransportClient>, InitializingBean, DisposableBean
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
TransportClientFactoryBean() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidafterPropertiesSet() - -
-           
-protected  voidbuildClient() - -
-           
- voiddestroy() - -
-           
- org.elasticsearch.client.transport.TransportClientgetObject() - -
-           
- Class<org.elasticsearch.client.transport.TransportClient>getObjectType() - -
-           
- booleanisSingleton() - -
-           
- voidsetClusterNodes(String[] clusterNodes) - -
-           
- voidsetProperties(Properties properties) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-TransportClientFactoryBean

-
-public TransportClientFactoryBean()
-
-
- - - - - - - - -
-Method Detail
- -

-destroy

-
-public void destroy()
-             throws Exception
-
-
-
Specified by:
destroy in interface DisposableBean
-
-
- -
Throws: -
Exception
-
-
-
- -

-getObject

-
-public org.elasticsearch.client.transport.TransportClient getObject()
-                                                             throws Exception
-
-
-
Specified by:
getObject in interface FactoryBean<org.elasticsearch.client.transport.TransportClient>
-
-
- -
Throws: -
Exception
-
-
-
- -

-getObjectType

-
-public Class<org.elasticsearch.client.transport.TransportClient> getObjectType()
-
-
-
Specified by:
getObjectType in interface FactoryBean<org.elasticsearch.client.transport.TransportClient>
-
-
-
-
-
-
- -

-isSingleton

-
-public boolean isSingleton()
-
-
-
Specified by:
isSingleton in interface FactoryBean<org.elasticsearch.client.transport.TransportClient>
-
-
-
-
-
-
- -

-afterPropertiesSet

-
-public void afterPropertiesSet()
-                        throws Exception
-
-
-
Specified by:
afterPropertiesSet in interface InitializingBean
-
-
- -
Throws: -
Exception
-
-
-
- -

-buildClient

-
-protected void buildClient()
-                    throws Exception
-
-
-
-
-
- -
Throws: -
Exception
-
-
-
- -

-setClusterNodes

-
-public void setClusterNodes(String[] clusterNodes)
-
-
-
-
-
-
-
-
-
- -

-setProperties

-
-public void setProperties(Properties properties)
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/class-use/NodeClientFactoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/client/class-use/NodeClientFactoryBean.html deleted file mode 100644 index 9ad4b436..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/class-use/NodeClientFactoryBean.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.client.NodeClientFactoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.client.NodeClientFactoryBean

-
-No usage of org.springframework.data.elasticsearch.client.NodeClientFactoryBean -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/class-use/TransportClientFactoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/client/class-use/TransportClientFactoryBean.html deleted file mode 100644 index faa3e2f7..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/class-use/TransportClientFactoryBean.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.client.TransportClientFactoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.client.TransportClientFactoryBean

-
-No usage of org.springframework.data.elasticsearch.client.TransportClientFactoryBean -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/client/package-frame.html deleted file mode 100644 index 808eae00..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/package-frame.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.client (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.client - - - - -
-Classes  - -
-NodeClientFactoryBean -
-TransportClientFactoryBean
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/client/package-summary.html deleted file mode 100644 index 78ed20d2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.client (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.client -

- - - - - - - - - - - - - -
-Class Summary
NodeClientFactoryBean 
TransportClientFactoryBean 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/client/package-tree.html deleted file mode 100644 index e86650a2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/package-tree.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.client Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.client -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/client/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/client/package-use.html deleted file mode 100644 index dc9e6945..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/client/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.client (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.client

-
-No usage of org.springframework.data.elasticsearch.client -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/ElasticsearchNamespaceHandler.html b/site/apidocs/org/springframework/data/elasticsearch/config/ElasticsearchNamespaceHandler.html deleted file mode 100644 index d1183c08..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/ElasticsearchNamespaceHandler.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - - -ElasticsearchNamespaceHandler (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.config -
-Class ElasticsearchNamespaceHandler

-
-java.lang.Object
-  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
-      extended by org.springframework.data.elasticsearch.config.ElasticsearchNamespaceHandler
-
-
-
All Implemented Interfaces:
NamespaceHandler
-
-
-
-
public class ElasticsearchNamespaceHandler
extends NamespaceHandlerSupport
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ElasticsearchNamespaceHandler() - -
-           
-  - - - - - - - - - - - -
-Method Summary
- voidinit() - -
-           
- - - - - - - -
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchNamespaceHandler

-
-public ElasticsearchNamespaceHandler()
-
-
- - - - - - - - -
-Method Detail
- -

-init

-
-public void init()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/NodeClientBeanDefinitionParser.html b/site/apidocs/org/springframework/data/elasticsearch/config/NodeClientBeanDefinitionParser.html deleted file mode 100644 index 26f8df08..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/NodeClientBeanDefinitionParser.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - -NodeClientBeanDefinitionParser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.config -
-Class NodeClientBeanDefinitionParser

-
-java.lang.Object
-  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-      extended by org.springframework.data.elasticsearch.config.NodeClientBeanDefinitionParser
-
-
-
All Implemented Interfaces:
BeanDefinitionParser
-
-
-
-
public class NodeClientBeanDefinitionParser
extends AbstractBeanDefinitionParser
- - -

-


- -

- - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-  - - - - - - - - - - -
-Constructor Summary
NodeClientBeanDefinitionParser() - -
-           
-  - - - - - - - - - - - -
-Method Summary
-protected  AbstractBeanDefinitionparseInternal(Element element, - ParserContext parserContext) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-NodeClientBeanDefinitionParser

-
-public NodeClientBeanDefinitionParser()
-
-
- - - - - - - - -
-Method Detail
- -

-parseInternal

-
-protected AbstractBeanDefinition parseInternal(Element element,
-                                               ParserContext parserContext)
-
-
-
Specified by:
parseInternal in class AbstractBeanDefinitionParser
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/TransportClientBeanDefinitionParser.html b/site/apidocs/org/springframework/data/elasticsearch/config/TransportClientBeanDefinitionParser.html deleted file mode 100644 index c9e16a12..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/TransportClientBeanDefinitionParser.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - -TransportClientBeanDefinitionParser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.config -
-Class TransportClientBeanDefinitionParser

-
-java.lang.Object
-  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-      extended by org.springframework.data.elasticsearch.config.TransportClientBeanDefinitionParser
-
-
-
All Implemented Interfaces:
BeanDefinitionParser
-
-
-
-
public class TransportClientBeanDefinitionParser
extends AbstractBeanDefinitionParser
- - -

-


- -

- - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-  - - - - - - - - - - -
-Constructor Summary
TransportClientBeanDefinitionParser() - -
-           
-  - - - - - - - - - - - -
-Method Summary
-protected  AbstractBeanDefinitionparseInternal(Element element, - ParserContext parserContext) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-TransportClientBeanDefinitionParser

-
-public TransportClientBeanDefinitionParser()
-
-
- - - - - - - - -
-Method Detail
- -

-parseInternal

-
-protected AbstractBeanDefinition parseInternal(Element element,
-                                               ParserContext parserContext)
-
-
-
Specified by:
parseInternal in class AbstractBeanDefinitionParser
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/class-use/ElasticsearchNamespaceHandler.html b/site/apidocs/org/springframework/data/elasticsearch/config/class-use/ElasticsearchNamespaceHandler.html deleted file mode 100644 index 0b1dacb5..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/class-use/ElasticsearchNamespaceHandler.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.config.ElasticsearchNamespaceHandler (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.config.ElasticsearchNamespaceHandler

-
-No usage of org.springframework.data.elasticsearch.config.ElasticsearchNamespaceHandler -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/class-use/NodeClientBeanDefinitionParser.html b/site/apidocs/org/springframework/data/elasticsearch/config/class-use/NodeClientBeanDefinitionParser.html deleted file mode 100644 index 243bde00..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/class-use/NodeClientBeanDefinitionParser.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.config.NodeClientBeanDefinitionParser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.config.NodeClientBeanDefinitionParser

-
-No usage of org.springframework.data.elasticsearch.config.NodeClientBeanDefinitionParser -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/class-use/TransportClientBeanDefinitionParser.html b/site/apidocs/org/springframework/data/elasticsearch/config/class-use/TransportClientBeanDefinitionParser.html deleted file mode 100644 index e12749ad..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/class-use/TransportClientBeanDefinitionParser.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.config.TransportClientBeanDefinitionParser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.config.TransportClientBeanDefinitionParser

-
-No usage of org.springframework.data.elasticsearch.config.TransportClientBeanDefinitionParser -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/config/package-frame.html deleted file mode 100644 index d100b2e4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/package-frame.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.config (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.config - - - - -
-Classes  - -
-ElasticsearchNamespaceHandler -
-NodeClientBeanDefinitionParser -
-TransportClientBeanDefinitionParser
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/config/package-summary.html deleted file mode 100644 index 36a01886..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/package-summary.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.config (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.config -

- - - - - - - - - - - - - - - - - -
-Class Summary
ElasticsearchNamespaceHandler 
NodeClientBeanDefinitionParser 
TransportClientBeanDefinitionParser 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/config/package-tree.html deleted file mode 100644 index b205b669..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/package-tree.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.config Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.config -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/config/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/config/package-use.html deleted file mode 100644 index c53e525a..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/config/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.config (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.config

-
-No usage of org.springframework.data.elasticsearch.config -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/ElasticsearchOperations.html b/site/apidocs/org/springframework/data/elasticsearch/core/ElasticsearchOperations.html deleted file mode 100644 index 6f13b617..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/ElasticsearchOperations.html +++ /dev/null @@ -1,639 +0,0 @@ - - - - - - - -ElasticsearchOperations (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core -
-Interface ElasticsearchOperations

-
-
All Known Implementing Classes:
ElasticsearchTemplate
-
-
-
-
public interface ElasticsearchOperations
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidbulkIndex(List<IndexQuery> queries) - -
-          Bulk index all objects.
- - - - - -
-<T> long
-
count(SearchQuery query, - Class<T> clazz) - -
-          return number of elements found by for given query
- - - - - -
-<T> boolean
-
createIndex(Class<T> clazz) - -
-          Create an index
- - - - - -
-<T> String
-
delete(Class<T> clazz, - String id) - -
-          Delete the one object with provided id
- - - - - -
-<T> void
-
delete(DeleteQuery query, - Class<T> clazz) - -
-          Delete all records matching the query
- Stringdelete(String indexName, - String type, - String id) - -
-          Delete the one object with provided id
- ElasticsearchConvertergetElasticsearchConverter() - -
-           
- Stringindex(IndexQuery query) - -
-          Index an object.
- - - - - -
-<T> T
-
queryForObject(CriteriaQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> T
-
queryForObject(GetQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> T
-
queryForObject(StringQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
queryForPage(CriteriaQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
queryForPage(SearchQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
queryForPage(StringQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
- - - - - -
-<T> void
-
refresh(Class<T> clazz, - boolean waitForOperation) - -
-          refresh the index
- voidrefresh(String indexName, - boolean waitForOperation) - -
-          refresh the index
-  -

- - - - - - - - -
-Method Detail
- -

-getElasticsearchConverter

-
-ElasticsearchConverter getElasticsearchConverter()
-
-
- -
Returns:
Converter in use
-
-
-
- -

-createIndex

-
-<T> boolean createIndex(Class<T> clazz)
-
-
Create an index -

-

-
Type Parameters:
T -
Parameters:
clazz -
-
-
-
- -

-queryForObject

-
-<T> T queryForObject(GetQuery query,
-                     Class<T> clazz)
-
-
Execute the query against elasticsearch and return the first returned object -

-

-
Parameters:
query -
clazz - -
Returns:
the first matching object
-
-
-
- -

-queryForObject

-
-<T> T queryForObject(CriteriaQuery query,
-                     Class<T> clazz)
-
-
Execute the query against elasticsearch and return the first returned object -

-

-
Parameters:
query -
clazz - -
Returns:
the first matching object
-
-
-
- -

-queryForObject

-
-<T> T queryForObject(StringQuery query,
-                     Class<T> clazz)
-
-
Execute the query against elasticsearch and return the first returned object -

-

-
Parameters:
query -
clazz - -
Returns:
the first matching object
-
-
-
- -

-queryForPage

-
-<T> org.springframework.data.domain.Page<T> queryForPage(SearchQuery query,
-                                                         Class<T> clazz)
-
-
Execute the query against elasticsearch and return result as Page -

-

-
Parameters:
query -
clazz - -
Returns:
-
-
-
- -

-queryForPage

-
-<T> org.springframework.data.domain.Page<T> queryForPage(CriteriaQuery query,
-                                                         Class<T> clazz)
-
-
Execute the query against elasticsearch and return result as Page -

-

-
Parameters:
query -
clazz - -
Returns:
-
-
-
- -

-queryForPage

-
-<T> org.springframework.data.domain.Page<T> queryForPage(StringQuery query,
-                                                         Class<T> clazz)
-
-
Execute the query against elasticsearch and return result as Page -

-

-
Parameters:
query -
clazz - -
Returns:
-
-
-
- -

-count

-
-<T> long count(SearchQuery query,
-               Class<T> clazz)
-
-
return number of elements found by for given query -

-

-
Parameters:
query -
clazz - -
Returns:
-
-
-
- -

-index

-
-String index(IndexQuery query)
-
-
Index an object. Will do save or update -

-

-
Parameters:
query - -
Returns:
returns the document id
-
-
-
- -

-bulkIndex

-
-void bulkIndex(List<IndexQuery> queries)
-
-
Bulk index all objects. Will do save or update -

-

-
Parameters:
queries -
-
-
-
- -

-delete

-
-String delete(String indexName,
-              String type,
-              String id)
-
-
Delete the one object with provided id -

-

-
Parameters:
indexName -
type -
id - -
Returns:
documentId of the document deleted
-
-
-
- -

-delete

-
-<T> String delete(Class<T> clazz,
-                  String id)
-
-
Delete the one object with provided id -

-

-
Parameters:
clazz -
id - -
Returns:
documentId of the document deleted
-
-
-
- -

-delete

-
-<T> void delete(DeleteQuery query,
-                Class<T> clazz)
-
-
Delete all records matching the query -

-

-
Parameters:
clazz -
query -
-
-
-
- -

-refresh

-
-void refresh(String indexName,
-             boolean waitForOperation)
-
-
refresh the index -

-

-
Parameters:
indexName -
waitForOperation -
-
-
-
- -

-refresh

-
-<T> void refresh(Class<T> clazz,
-                 boolean waitForOperation)
-
-
refresh the index -

-

-
Parameters:
clazz -
waitForOperation -
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/ElasticsearchTemplate.html b/site/apidocs/org/springframework/data/elasticsearch/core/ElasticsearchTemplate.html deleted file mode 100644 index 1d59dd3b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/ElasticsearchTemplate.html +++ /dev/null @@ -1,764 +0,0 @@ - - - - - - - -ElasticsearchTemplate (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core -
-Class ElasticsearchTemplate

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.ElasticsearchTemplate
-
-
-
All Implemented Interfaces:
ElasticsearchOperations
-
-
-
-
public class ElasticsearchTemplate
extends Object
implements ElasticsearchOperations
- - -

-


- -

- - - - - - - - - - - - - - -
-Constructor Summary
ElasticsearchTemplate(org.elasticsearch.client.Client client) - -
-           
ElasticsearchTemplate(org.elasticsearch.client.Client client, - ElasticsearchConverter elasticsearchConverter) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidbulkIndex(List<IndexQuery> queries) - -
-          Bulk index all objects.
- - - - - -
-<T> long
-
count(SearchQuery query, - Class<T> clazz) - -
-          return number of elements found by for given query
- - - - - -
-<T> boolean
-
createIndex(Class<T> clazz) - -
-          Create an index
- - - - - -
-<T> String
-
delete(Class<T> clazz, - String id) - -
-          Delete the one object with provided id
- - - - - -
-<T> void
-
delete(DeleteQuery query, - Class<T> clazz) - -
-          Delete all records matching the query
- Stringdelete(String indexName, - String type, - String id) - -
-          Delete the one object with provided id
- ElasticsearchConvertergetElasticsearchConverter() - -
-           
- Stringindex(IndexQuery query) - -
-          Index an object.
- - - - - -
-<T> T
-
queryForObject(CriteriaQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> T
-
queryForObject(GetQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> T
-
queryForObject(StringQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
queryForPage(CriteriaQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
queryForPage(SearchQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
queryForPage(StringQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
- - - - - -
-<T> void
-
refresh(Class<T> clazz, - boolean waitForOperation) - -
-          refresh the index
- voidrefresh(String indexName, - boolean waitForOperation) - -
-          refresh the index
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchTemplate

-
-public ElasticsearchTemplate(org.elasticsearch.client.Client client)
-
-
-
- -

-ElasticsearchTemplate

-
-public ElasticsearchTemplate(org.elasticsearch.client.Client client,
-                             ElasticsearchConverter elasticsearchConverter)
-
-
- - - - - - - - -
-Method Detail
- -

-createIndex

-
-public <T> boolean createIndex(Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Create an index -

-

-
Specified by:
createIndex in interface ElasticsearchOperations
-
-
-
-
-
-
- -

-getElasticsearchConverter

-
-public ElasticsearchConverter getElasticsearchConverter()
-
-
-
Specified by:
getElasticsearchConverter in interface ElasticsearchOperations
-
-
- -
Returns:
Converter in use
-
-
-
- -

-queryForObject

-
-public <T> T queryForObject(GetQuery query,
-                            Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Execute the query against elasticsearch and return the first returned object -

-

-
Specified by:
queryForObject in interface ElasticsearchOperations
-
-
- -
Returns:
the first matching object
-
-
-
- -

-queryForObject

-
-public <T> T queryForObject(CriteriaQuery query,
-                            Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Execute the query against elasticsearch and return the first returned object -

-

-
Specified by:
queryForObject in interface ElasticsearchOperations
-
-
- -
Returns:
the first matching object
-
-
-
- -

-queryForObject

-
-public <T> T queryForObject(StringQuery query,
-                            Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Execute the query against elasticsearch and return the first returned object -

-

-
Specified by:
queryForObject in interface ElasticsearchOperations
-
-
- -
Returns:
the first matching object
-
-
-
- -

-queryForPage

-
-public <T> org.springframework.data.domain.Page<T> queryForPage(SearchQuery query,
-                                                                Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Execute the query against elasticsearch and return result as Page -

-

-
Specified by:
queryForPage in interface ElasticsearchOperations
-
-
- -
Returns:
-
-
-
- -

-queryForPage

-
-public <T> org.springframework.data.domain.Page<T> queryForPage(CriteriaQuery query,
-                                                                Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Execute the query against elasticsearch and return result as Page -

-

-
Specified by:
queryForPage in interface ElasticsearchOperations
-
-
- -
Returns:
-
-
-
- -

-queryForPage

-
-public <T> org.springframework.data.domain.Page<T> queryForPage(StringQuery query,
-                                                                Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Execute the query against elasticsearch and return result as Page -

-

-
Specified by:
queryForPage in interface ElasticsearchOperations
-
-
- -
Returns:
-
-
-
- -

-count

-
-public <T> long count(SearchQuery query,
-                      Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
return number of elements found by for given query -

-

-
Specified by:
count in interface ElasticsearchOperations
-
-
- -
Returns:
-
-
-
- -

-index

-
-public String index(IndexQuery query)
-
-
Description copied from interface: ElasticsearchOperations
-
Index an object. Will do save or update -

-

-
Specified by:
index in interface ElasticsearchOperations
-
-
- -
Returns:
returns the document id
-
-
-
- -

-bulkIndex

-
-public void bulkIndex(List<IndexQuery> queries)
-
-
Description copied from interface: ElasticsearchOperations
-
Bulk index all objects. Will do save or update -

-

-
Specified by:
bulkIndex in interface ElasticsearchOperations
-
-
-
-
-
-
- -

-delete

-
-public String delete(String indexName,
-                     String type,
-                     String id)
-
-
Description copied from interface: ElasticsearchOperations
-
Delete the one object with provided id -

-

-
Specified by:
delete in interface ElasticsearchOperations
-
-
- -
Returns:
documentId of the document deleted
-
-
-
- -

-delete

-
-public <T> String delete(Class<T> clazz,
-                         String id)
-
-
Description copied from interface: ElasticsearchOperations
-
Delete the one object with provided id -

-

-
Specified by:
delete in interface ElasticsearchOperations
-
-
- -
Returns:
documentId of the document deleted
-
-
-
- -

-delete

-
-public <T> void delete(DeleteQuery query,
-                       Class<T> clazz)
-
-
Description copied from interface: ElasticsearchOperations
-
Delete all records matching the query -

-

-
Specified by:
delete in interface ElasticsearchOperations
-
-
-
-
-
-
- -

-refresh

-
-public void refresh(String indexName,
-                    boolean waitForOperation)
-
-
Description copied from interface: ElasticsearchOperations
-
refresh the index -

-

-
Specified by:
refresh in interface ElasticsearchOperations
-
-
-
-
-
-
- -

-refresh

-
-public <T> void refresh(Class<T> clazz,
-                        boolean waitForOperation)
-
-
Description copied from interface: ElasticsearchOperations
-
refresh the index -

-

-
Specified by:
refresh in interface ElasticsearchOperations
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/ResultsMapper.html b/site/apidocs/org/springframework/data/elasticsearch/core/ResultsMapper.html deleted file mode 100644 index e5e92fde..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/ResultsMapper.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - -ResultsMapper (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core -
-Interface ResultsMapper<T>

-
-
-
public interface ResultsMapper<T>
- - -

-


- -

- - - - - - - - - - - - -
-Method Summary
- org.springframework.data.domain.Page<T>mapResults(org.elasticsearch.action.search.SearchResponse response) - -
-           
-  -

- - - - - - - - -
-Method Detail
- -

-mapResults

-
-org.springframework.data.domain.Page<T> mapResults(org.elasticsearch.action.search.SearchResponse response)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ElasticsearchOperations.html b/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ElasticsearchOperations.html deleted file mode 100644 index abed9adb..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ElasticsearchOperations.html +++ /dev/null @@ -1,334 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.ElasticsearchOperations (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.ElasticsearchOperations

-
- - - - - - - - - - - - - - - - - - - - - -
-Packages that use ElasticsearchOperations
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.repository.cdi  
org.springframework.data.elasticsearch.repository.query  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchOperations in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.core that implement ElasticsearchOperations
- classElasticsearchTemplate - -
-           
-  -

- - - - - -
-Uses of ElasticsearchOperations in org.springframework.data.elasticsearch.repository.cdi
-  -

- - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.repository.cdi with type arguments of type ElasticsearchOperations
ElasticsearchRepositoryBean(javax.enterprise.inject.spi.Bean<ElasticsearchOperations> operations, - Set<Annotation> qualifiers, - Class<T> repositoryType, - javax.enterprise.inject.spi.BeanManager beanManager) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchOperations in org.springframework.data.elasticsearch.repository.query
-  -

- - - - - - - - - -
Fields in org.springframework.data.elasticsearch.repository.query declared as ElasticsearchOperations
-protected  ElasticsearchOperationsAbstractElasticsearchRepositoryQuery.elasticsearchOperations - -
-           
-  -

- - - - - - - - - - - - - - -
Constructors in org.springframework.data.elasticsearch.repository.query with parameters of type ElasticsearchOperations
AbstractElasticsearchRepositoryQuery(ElasticsearchQueryMethod queryMethod, - ElasticsearchOperations elasticsearchOperations) - -
-           
ElasticsearchPartQuery(ElasticsearchQueryMethod method, - ElasticsearchOperations elasticsearchOperations) - -
-           
ElasticsearchStringQuery(ElasticsearchQueryMethod queryMethod, - ElasticsearchOperations elasticsearchOperations, - String query) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchOperations in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.support with parameters of type ElasticsearchOperations
- voidSimpleElasticsearchRepository.setElasticsearchOperations(ElasticsearchOperations elasticsearchOperations) - -
-           
- voidElasticsearchRepositoryFactoryBean.setElasticsearchOperations(ElasticsearchOperations operations) - -
-          Configures the ElasticsearchOperations to be used to create Elasticsearch repositories.
-  -

- - - - - - - - - - - - - - -
Constructors in org.springframework.data.elasticsearch.repository.support with parameters of type ElasticsearchOperations
ElasticsearchRepositoryFactory(ElasticsearchOperations elasticsearchOperations) - -
-           
SimpleElasticsearchRepository(ElasticsearchEntityInformation<T,String> metadata, - ElasticsearchOperations elasticsearchOperations) - -
-           
SimpleElasticsearchRepository(ElasticsearchOperations elasticsearchOperations) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ElasticsearchTemplate.html b/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ElasticsearchTemplate.html deleted file mode 100644 index 7c8450b0..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ElasticsearchTemplate.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.ElasticsearchTemplate (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.ElasticsearchTemplate

-
-No usage of org.springframework.data.elasticsearch.core.ElasticsearchTemplate -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ResultsMapper.html b/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ResultsMapper.html deleted file mode 100644 index 363b8eb1..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/class-use/ResultsMapper.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.ResultsMapper (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.ResultsMapper

-
-No usage of org.springframework.data.elasticsearch.core.ResultsMapper -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JavaDateConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JavaDateConverter.html deleted file mode 100644 index e5022521..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JavaDateConverter.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - -DateTimeConverters.JavaDateConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.convert -
-Enum DateTimeConverters.JavaDateConverter

-
-java.lang.Object
-  extended by java.lang.Enum<DateTimeConverters.JavaDateConverter>
-      extended by org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JavaDateConverter
-
-
-
All Implemented Interfaces:
Serializable, Comparable<DateTimeConverters.JavaDateConverter>, Converter<Date,String>
-
-
-
Enclosing class:
DateTimeConverters
-
-
-
-
public static enum DateTimeConverters.JavaDateConverter
extends Enum<DateTimeConverters.JavaDateConverter>
implements Converter<Date,String>
- - -

-


- -

- - - - - - - - - - -
-Enum Constant Summary
INSTANCE - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- Stringconvert(Date source) - -
-           
-static DateTimeConverters.JavaDateConvertervalueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static DateTimeConverters.JavaDateConverter[]values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-INSTANCE

-
-public static final DateTimeConverters.JavaDateConverter INSTANCE
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static DateTimeConverters.JavaDateConverter[] values()
-
-
Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
-for (DateTimeConverters.JavaDateConverter c : DateTimeConverters.JavaDateConverter.values())
-    System.out.println(c);
-
-

-

-
-
-
- -
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static DateTimeConverters.JavaDateConverter valueOf(String name)
-
-
Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
-
-
-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: -
IllegalArgumentException - if this enum type has no constant -with the specified name -
NullPointerException - if the argument is null
-
-
-
- -

-convert

-
-public String convert(Date source)
-
-
-
Specified by:
convert in interface Converter<Date,String>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JodaDateTimeConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JodaDateTimeConverter.html deleted file mode 100644 index 3c2e7f4e..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JodaDateTimeConverter.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - -DateTimeConverters.JodaDateTimeConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.convert -
-Enum DateTimeConverters.JodaDateTimeConverter

-
-java.lang.Object
-  extended by java.lang.Enum<DateTimeConverters.JodaDateTimeConverter>
-      extended by org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter
-
-
-
All Implemented Interfaces:
Serializable, Comparable<DateTimeConverters.JodaDateTimeConverter>, Converter<org.joda.time.ReadableInstant,String>
-
-
-
Enclosing class:
DateTimeConverters
-
-
-
-
public static enum DateTimeConverters.JodaDateTimeConverter
extends Enum<DateTimeConverters.JodaDateTimeConverter>
implements Converter<org.joda.time.ReadableInstant,String>
- - -

-


- -

- - - - - - - - - - -
-Enum Constant Summary
INSTANCE - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- Stringconvert(org.joda.time.ReadableInstant source) - -
-           
-static DateTimeConverters.JodaDateTimeConvertervalueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static DateTimeConverters.JodaDateTimeConverter[]values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-INSTANCE

-
-public static final DateTimeConverters.JodaDateTimeConverter INSTANCE
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static DateTimeConverters.JodaDateTimeConverter[] values()
-
-
Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
-for (DateTimeConverters.JodaDateTimeConverter c : DateTimeConverters.JodaDateTimeConverter.values())
-    System.out.println(c);
-
-

-

-
-
-
- -
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static DateTimeConverters.JodaDateTimeConverter valueOf(String name)
-
-
Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
-
-
-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: -
IllegalArgumentException - if this enum type has no constant -with the specified name -
NullPointerException - if the argument is null
-
-
-
- -

-convert

-
-public String convert(org.joda.time.ReadableInstant source)
-
-
-
Specified by:
convert in interface Converter<org.joda.time.ReadableInstant,String>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JodaLocalDateTimeConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JodaLocalDateTimeConverter.html deleted file mode 100644 index ebc824b0..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.JodaLocalDateTimeConverter.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - -DateTimeConverters.JodaLocalDateTimeConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.convert -
-Enum DateTimeConverters.JodaLocalDateTimeConverter

-
-java.lang.Object
-  extended by java.lang.Enum<DateTimeConverters.JodaLocalDateTimeConverter>
-      extended by org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaLocalDateTimeConverter
-
-
-
All Implemented Interfaces:
Serializable, Comparable<DateTimeConverters.JodaLocalDateTimeConverter>, Converter<org.joda.time.LocalDateTime,String>
-
-
-
Enclosing class:
DateTimeConverters
-
-
-
-
public static enum DateTimeConverters.JodaLocalDateTimeConverter
extends Enum<DateTimeConverters.JodaLocalDateTimeConverter>
implements Converter<org.joda.time.LocalDateTime,String>
- - -

-


- -

- - - - - - - - - - -
-Enum Constant Summary
INSTANCE - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- Stringconvert(org.joda.time.LocalDateTime source) - -
-           
-static DateTimeConverters.JodaLocalDateTimeConvertervalueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static DateTimeConverters.JodaLocalDateTimeConverter[]values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-INSTANCE

-
-public static final DateTimeConverters.JodaLocalDateTimeConverter INSTANCE
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static DateTimeConverters.JodaLocalDateTimeConverter[] values()
-
-
Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
-for (DateTimeConverters.JodaLocalDateTimeConverter c : DateTimeConverters.JodaLocalDateTimeConverter.values())
-    System.out.println(c);
-
-

-

-
-
-
- -
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static DateTimeConverters.JodaLocalDateTimeConverter valueOf(String name)
-
-
Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
-
-
-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: -
IllegalArgumentException - if this enum type has no constant -with the specified name -
NullPointerException - if the argument is null
-
-
-
- -

-convert

-
-public String convert(org.joda.time.LocalDateTime source)
-
-
-
Specified by:
convert in interface Converter<org.joda.time.LocalDateTime,String>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.html deleted file mode 100644 index ac35da38..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/DateTimeConverters.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - -DateTimeConverters (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.convert -
-Class DateTimeConverters

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.convert.DateTimeConverters
-
-
-
-
public final class DateTimeConverters
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - -
-Nested Class Summary
-static classDateTimeConverters.JavaDateConverter - -
-           
-static classDateTimeConverters.JodaDateTimeConverter - -
-           
-static classDateTimeConverters.JodaLocalDateTimeConverter - -
-           
-  - - - - - - - - - - -
-Constructor Summary
DateTimeConverters() - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-DateTimeConverters

-
-public DateTimeConverters()
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/ElasticsearchConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/ElasticsearchConverter.html deleted file mode 100644 index 445312b4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/ElasticsearchConverter.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - -ElasticsearchConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.convert -
-Interface ElasticsearchConverter

-
-
All Known Implementing Classes:
MappingElasticsearchConverter
-
-
-
-
public interface ElasticsearchConverter
- - -

-


- -

- - - - - - - - - - - - - - - - -
-Method Summary
- ConversionServicegetConversionService() - -
-          Returns the underlying ConversionService used by the converter.
- org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>getMappingContext() - -
-          Returns the underlying MappingContext used by the converter.
-  -

- - - - - - - - -
-Method Detail
- -

-getMappingContext

-
-org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> getMappingContext()
-
-
Returns the underlying MappingContext used by the converter. -

-

- -
Returns:
never null
-
-
-
- -

-getConversionService

-
-ConversionService getConversionService()
-
-
Returns the underlying ConversionService used by the converter. -

-

- -
Returns:
never null.
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.html deleted file mode 100644 index 1b013519..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - - -MappingElasticsearchConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.convert -
-Class MappingElasticsearchConverter

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter
-
-
-
All Implemented Interfaces:
Aware, ApplicationContextAware, ElasticsearchConverter
-
-
-
-
public class MappingElasticsearchConverter
extends Object
implements ElasticsearchConverter, ApplicationContextAware
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
MappingElasticsearchConverter(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- ConversionServicegetConversionService() - -
-          Returns the underlying ConversionService used by the converter.
- org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>getMappingContext() - -
-          Returns the underlying MappingContext used by the converter.
- voidsetApplicationContext(ApplicationContext applicationContext) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-MappingElasticsearchConverter

-
-public MappingElasticsearchConverter(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext)
-
-
- - - - - - - - -
-Method Detail
- -

-getMappingContext

-
-public org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> getMappingContext()
-
-
Description copied from interface: ElasticsearchConverter
-
Returns the underlying MappingContext used by the converter. -

-

-
Specified by:
getMappingContext in interface ElasticsearchConverter
-
-
- -
Returns:
never null
-
-
-
- -

-getConversionService

-
-public ConversionService getConversionService()
-
-
Description copied from interface: ElasticsearchConverter
-
Returns the underlying ConversionService used by the converter. -

-

-
Specified by:
getConversionService in interface ElasticsearchConverter
-
-
- -
Returns:
never null.
-
-
-
- -

-setApplicationContext

-
-public void setApplicationContext(ApplicationContext applicationContext)
-                           throws BeansException
-
-
-
Specified by:
setApplicationContext in interface ApplicationContextAware
-
-
- -
Throws: -
BeansException
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JavaDateConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JavaDateConverter.html deleted file mode 100644 index 1e94427c..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JavaDateConverter.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JavaDateConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JavaDateConverter

-
- - - - - - - - - -
-Packages that use DateTimeConverters.JavaDateConverter
org.springframework.data.elasticsearch.core.convert  
-  -

- - - - - -
-Uses of DateTimeConverters.JavaDateConverter in org.springframework.data.elasticsearch.core.convert
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.convert that return DateTimeConverters.JavaDateConverter
-static DateTimeConverters.JavaDateConverterDateTimeConverters.JavaDateConverter.valueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static DateTimeConverters.JavaDateConverter[]DateTimeConverters.JavaDateConverter.values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JodaDateTimeConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JodaDateTimeConverter.html deleted file mode 100644 index fc342bef..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JodaDateTimeConverter.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter

-
- - - - - - - - - -
-Packages that use DateTimeConverters.JodaDateTimeConverter
org.springframework.data.elasticsearch.core.convert  
-  -

- - - - - -
-Uses of DateTimeConverters.JodaDateTimeConverter in org.springframework.data.elasticsearch.core.convert
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.convert that return DateTimeConverters.JodaDateTimeConverter
-static DateTimeConverters.JodaDateTimeConverterDateTimeConverters.JodaDateTimeConverter.valueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static DateTimeConverters.JodaDateTimeConverter[]DateTimeConverters.JodaDateTimeConverter.values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JodaLocalDateTimeConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JodaLocalDateTimeConverter.html deleted file mode 100644 index 3cb30212..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.JodaLocalDateTimeConverter.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaLocalDateTimeConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaLocalDateTimeConverter

-
- - - - - - - - - -
-Packages that use DateTimeConverters.JodaLocalDateTimeConverter
org.springframework.data.elasticsearch.core.convert  
-  -

- - - - - -
-Uses of DateTimeConverters.JodaLocalDateTimeConverter in org.springframework.data.elasticsearch.core.convert
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.convert that return DateTimeConverters.JodaLocalDateTimeConverter
-static DateTimeConverters.JodaLocalDateTimeConverterDateTimeConverters.JodaLocalDateTimeConverter.valueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static DateTimeConverters.JodaLocalDateTimeConverter[]DateTimeConverters.JodaLocalDateTimeConverter.values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.html deleted file mode 100644 index 00d9a5e4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/DateTimeConverters.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.convert.DateTimeConverters (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.convert.DateTimeConverters

-
-No usage of org.springframework.data.elasticsearch.core.convert.DateTimeConverters -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/ElasticsearchConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/ElasticsearchConverter.html deleted file mode 100644 index 077eda75..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/ElasticsearchConverter.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter

-
- - - - - - - - - - - - - -
-Packages that use ElasticsearchConverter
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.core.convert  
-  -

- - - - - -
-Uses of ElasticsearchConverter in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core that return ElasticsearchConverter
- ElasticsearchConverterElasticsearchTemplate.getElasticsearchConverter() - -
-           
- ElasticsearchConverterElasticsearchOperations.getElasticsearchConverter() - -
-           
-  -

- - - - - - - - -
Constructors in org.springframework.data.elasticsearch.core with parameters of type ElasticsearchConverter
ElasticsearchTemplate(org.elasticsearch.client.Client client, - ElasticsearchConverter elasticsearchConverter) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchConverter in org.springframework.data.elasticsearch.core.convert
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.core.convert that implement ElasticsearchConverter
- classMappingElasticsearchConverter - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/MappingElasticsearchConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/MappingElasticsearchConverter.html deleted file mode 100644 index 60000aac..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/class-use/MappingElasticsearchConverter.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter

-
-No usage of org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-frame.html deleted file mode 100644 index 8a810a55..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-frame.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.convert (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.core.convert - - - - -
-Interfaces  - -
-ElasticsearchConverter
- - - - - - -
-Classes  - -
-DateTimeConverters -
-MappingElasticsearchConverter
- - - - - - -
-Enums  - -
-DateTimeConverters.JavaDateConverter -
-DateTimeConverters.JodaDateTimeConverter -
-DateTimeConverters.JodaLocalDateTimeConverter
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-summary.html deleted file mode 100644 index 2c228aa9..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-summary.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.convert (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.core.convert -

- - - - - - - - - -
-Interface Summary
ElasticsearchConverter 
-  - -

- - - - - - - - - - - - - -
-Class Summary
DateTimeConverters 
MappingElasticsearchConverter 
-  - -

- - - - - - - - - - - - - - - - - -
-Enum Summary
DateTimeConverters.JavaDateConverter 
DateTimeConverters.JodaDateTimeConverter 
DateTimeConverters.JodaLocalDateTimeConverter 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-tree.html deleted file mode 100644 index 501bcccd..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-tree.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.convert Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.core.convert -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -

-Enum Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-use.html deleted file mode 100644 index d2aafd74..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/convert/package-use.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.core.convert (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.core.convert

-
- - - - - - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.core.convert
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.core.convert  
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.convert used by org.springframework.data.elasticsearch.core
ElasticsearchConverter - -
-           
-  -

- - - - - - - - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.convert used by org.springframework.data.elasticsearch.core.convert
DateTimeConverters.JavaDateConverter - -
-           
DateTimeConverters.JodaDateTimeConverter - -
-           
DateTimeConverters.JodaLocalDateTimeConverter - -
-           
ElasticsearchConverter - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentEntity.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentEntity.html deleted file mode 100644 index 7e84ce5c..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentEntity.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - -ElasticsearchPersistentEntity (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.mapping -
-Interface ElasticsearchPersistentEntity<T>

-
-
All Superinterfaces:
org.springframework.data.mapping.PersistentEntity<T,ElasticsearchPersistentProperty>
-
-
-
All Known Implementing Classes:
SimpleElasticsearchPersistentEntity
-
-
-
-
public interface ElasticsearchPersistentEntity<T>
extends org.springframework.data.mapping.PersistentEntity<T,ElasticsearchPersistentProperty>
- - -

-


- -

- - - - - - - - - - - - - - - - -
-Method Summary
- StringgetIndexName() - -
-           
- StringgetIndexType() - -
-           
- - - - - - - -
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, isConstructorArgument, isIdProperty
-  -

- - - - - - - - -
-Method Detail
- -

-getIndexName

-
-String getIndexName()
-
-
-
-
-
-
-
-
-
- -

-getIndexType

-
-String getIndexType()
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.PropertyToFieldNameConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.PropertyToFieldNameConverter.html deleted file mode 100644 index 96ef6e75..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.PropertyToFieldNameConverter.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - -ElasticsearchPersistentProperty.PropertyToFieldNameConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.mapping -
-Enum ElasticsearchPersistentProperty.PropertyToFieldNameConverter

-
-java.lang.Object
-  extended by java.lang.Enum<ElasticsearchPersistentProperty.PropertyToFieldNameConverter>
-      extended by org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.PropertyToFieldNameConverter
-
-
-
All Implemented Interfaces:
Serializable, Comparable<ElasticsearchPersistentProperty.PropertyToFieldNameConverter>, Converter<ElasticsearchPersistentProperty,String>
-
-
-
Enclosing interface:
ElasticsearchPersistentProperty
-
-
-
-
public static enum ElasticsearchPersistentProperty.PropertyToFieldNameConverter
extends Enum<ElasticsearchPersistentProperty.PropertyToFieldNameConverter>
implements Converter<ElasticsearchPersistentProperty,String>
- - -

-


- -

- - - - - - - - - - -
-Enum Constant Summary
INSTANCE - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- Stringconvert(ElasticsearchPersistentProperty source) - -
-           
-static ElasticsearchPersistentProperty.PropertyToFieldNameConvertervalueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static ElasticsearchPersistentProperty.PropertyToFieldNameConverter[]values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-INSTANCE

-
-public static final ElasticsearchPersistentProperty.PropertyToFieldNameConverter INSTANCE
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static ElasticsearchPersistentProperty.PropertyToFieldNameConverter[] values()
-
-
Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
-for (ElasticsearchPersistentProperty.PropertyToFieldNameConverter c : ElasticsearchPersistentProperty.PropertyToFieldNameConverter.values())
-    System.out.println(c);
-
-

-

-
-
-
- -
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static ElasticsearchPersistentProperty.PropertyToFieldNameConverter valueOf(String name)
-
-
Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
-
-
-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: -
IllegalArgumentException - if this enum type has no constant -with the specified name -
NullPointerException - if the argument is null
-
-
-
- -

-convert

-
-public String convert(ElasticsearchPersistentProperty source)
-
-
-
Specified by:
convert in interface Converter<ElasticsearchPersistentProperty,String>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.html deleted file mode 100644 index 1030b7f6..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - -ElasticsearchPersistentProperty (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.mapping -
-Interface ElasticsearchPersistentProperty

-
-
All Superinterfaces:
org.springframework.data.mapping.PersistentProperty<ElasticsearchPersistentProperty>
-
-
-
All Known Implementing Classes:
SimpleElasticsearchPersistentProperty
-
-
-
-
public interface ElasticsearchPersistentProperty
extends org.springframework.data.mapping.PersistentProperty<ElasticsearchPersistentProperty>
- - -

-


- -

- - - - - - - - - - - -
-Nested Class Summary
-static classElasticsearchPersistentProperty.PropertyToFieldNameConverter - -
-           
-  - - - - - - - - - - - -
-Method Summary
- StringgetFieldName() - -
-           
- - - - - - - -
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isMap, isTransient, shallBePersisted
-  -

- - - - - - - - -
-Method Detail
- -

-getFieldName

-
-String getFieldName()
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchMappingContext.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchMappingContext.html deleted file mode 100644 index b14d3ea2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchMappingContext.html +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - - -SimpleElasticsearchMappingContext (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.mapping -
-Class SimpleElasticsearchMappingContext

-
-java.lang.Object
-  extended by org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
-      extended by org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext
-
-
-
All Implemented Interfaces:
EventListener, Aware, ApplicationContextAware, ApplicationEventPublisherAware, ApplicationListener<ContextRefreshedEvent>, org.springframework.data.mapping.context.MappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
-
-
-
-
public class SimpleElasticsearchMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
SimpleElasticsearchMappingContext() - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
-protected - - - - -
-<T> SimpleElasticsearchPersistentEntity<?>
-
createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) - -
-           
-protected  ElasticsearchPersistentPropertycreatePersistentProperty(Field field, - PropertyDescriptor descriptor, - SimpleElasticsearchPersistentEntity<?> owner, - org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, initialize, onApplicationEvent, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-SimpleElasticsearchMappingContext

-
-public SimpleElasticsearchMappingContext()
-
-
- - - - - - - - -
-Method Detail
- -

-createPersistentEntity

-
-protected <T> SimpleElasticsearchPersistentEntity<?> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
-
-
-
Specified by:
createPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
-
-
-
-
-
-
- -

-createPersistentProperty

-
-protected ElasticsearchPersistentProperty createPersistentProperty(Field field,
-                                                                   PropertyDescriptor descriptor,
-                                                                   SimpleElasticsearchPersistentEntity<?> owner,
-                                                                   org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
-
-
-
Specified by:
createPersistentProperty in class org.springframework.data.mapping.context.AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntity.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntity.html deleted file mode 100644 index 70f3cb77..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntity.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - - -SimpleElasticsearchPersistentEntity (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.mapping -
-Class SimpleElasticsearchPersistentEntity<T>

-
-java.lang.Object
-  extended by org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>
-      extended by org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity<T>
-
-
-
Type Parameters:
T -
-
-
All Implemented Interfaces:
Aware, ApplicationContextAware, ElasticsearchPersistentEntity<T>, org.springframework.data.mapping.model.MutablePersistentEntity<T,ElasticsearchPersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,ElasticsearchPersistentProperty>
-
-
-
-
public class SimpleElasticsearchPersistentEntity<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>
implements ElasticsearchPersistentEntity<T>, ApplicationContextAware
- - -

-Elasticsearch specific PersistentEntity implementation holding -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
SimpleElasticsearchPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- StringgetIndexName() - -
-           
- StringgetIndexType() - -
-           
- voidsetApplicationContext(ApplicationContext applicationContext) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, isConstructorArgument, isIdProperty, verify
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- - - - - - - -
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, isConstructorArgument, isIdProperty
-  -

- - - - - - - - -
-Constructor Detail
- -

-SimpleElasticsearchPersistentEntity

-
-public SimpleElasticsearchPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
-
-
- - - - - - - - -
-Method Detail
- -

-setApplicationContext

-
-public void setApplicationContext(ApplicationContext applicationContext)
-                           throws BeansException
-
-
-
Specified by:
setApplicationContext in interface ApplicationContextAware
-
-
- -
Throws: -
BeansException
-
-
-
- -

-getIndexName

-
-public String getIndexName()
-
-
-
Specified by:
getIndexName in interface ElasticsearchPersistentEntity<T>
-
-
-
-
-
-
- -

-getIndexType

-
-public String getIndexType()
-
-
-
Specified by:
getIndexType in interface ElasticsearchPersistentEntity<T>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentProperty.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentProperty.html deleted file mode 100644 index ea43f9c7..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentProperty.html +++ /dev/null @@ -1,379 +0,0 @@ - - - - - - - -SimpleElasticsearchPersistentProperty (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.mapping -
-Class SimpleElasticsearchPersistentProperty

-
-java.lang.Object
-  extended by org.springframework.data.mapping.model.AbstractPersistentProperty<P>
-      extended by org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
-          extended by org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty
-
-
-
All Implemented Interfaces:
ElasticsearchPersistentProperty, org.springframework.data.mapping.PersistentProperty<ElasticsearchPersistentProperty>
-
-
-
-
public class SimpleElasticsearchPersistentProperty
extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
implements ElasticsearchPersistentProperty
- - -

-Elasticsearch specific PersistentProperty implementation processing -

- -

-


- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty
ElasticsearchPersistentProperty.PropertyToFieldNameConverter
-  - - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
association, field, information, name, owner, propertyDescriptor, rawType
-  - - - - - - - - - - -
-Constructor Summary
SimpleElasticsearchPersistentProperty(Field field, - PropertyDescriptor propertyDescriptor, - org.springframework.data.mapping.PersistentEntity<?,ElasticsearchPersistentProperty> owner, - org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
-protected  org.springframework.data.mapping.Association<ElasticsearchPersistentProperty>createAssociation() - -
-           
- StringgetFieldName() - -
-           
- booleanisIdProperty() - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
getSpelExpression, isAssociation, isTransient
- - - - - - - -
Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap, shallBePersisted
- - - - - - - -
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
- - - - - - - -
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, shallBePersisted
-  -

- - - - - - - - -
-Constructor Detail
- -

-SimpleElasticsearchPersistentProperty

-
-public SimpleElasticsearchPersistentProperty(Field field,
-                                             PropertyDescriptor propertyDescriptor,
-                                             org.springframework.data.mapping.PersistentEntity<?,ElasticsearchPersistentProperty> owner,
-                                             org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
-
-
- - - - - - - - -
-Method Detail
- -

-getFieldName

-
-public String getFieldName()
-
-
-
Specified by:
getFieldName in interface ElasticsearchPersistentProperty
-
-
-
-
-
-
- -

-isIdProperty

-
-public boolean isIdProperty()
-
-
-
Specified by:
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<ElasticsearchPersistentProperty>
Overrides:
isIdProperty in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
-
-
-
-
-
-
- -

-createAssociation

-
-protected org.springframework.data.mapping.Association<ElasticsearchPersistentProperty> createAssociation()
-
-
-
Specified by:
createAssociation in class org.springframework.data.mapping.model.AbstractPersistentProperty<ElasticsearchPersistentProperty>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentEntity.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentEntity.html deleted file mode 100644 index ec5883a6..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentEntity.html +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity

-
- - - - - - - - - - - - - - - - - -
-Packages that use ElasticsearchPersistentEntity
org.springframework.data.elasticsearch.core.convert  
org.springframework.data.elasticsearch.core.mapping  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchPersistentEntity in org.springframework.data.elasticsearch.core.convert
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.convert that return types with arguments of type ElasticsearchPersistentEntity
- org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>MappingElasticsearchConverter.getMappingContext() - -
-           
- org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>ElasticsearchConverter.getMappingContext() - -
-          Returns the underlying MappingContext used by the converter.
-  -

- - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.core.convert with type arguments of type ElasticsearchPersistentEntity
MappingElasticsearchConverter(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchPersistentEntity in org.springframework.data.elasticsearch.core.mapping
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.core.mapping that implement ElasticsearchPersistentEntity
- classSimpleElasticsearchPersistentEntity<T> - -
-          Elasticsearch specific PersistentEntity implementation holding
-  -

- - - - - -
-Uses of ElasticsearchPersistentEntity in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - - - -
Constructors in org.springframework.data.elasticsearch.repository.support with parameters of type ElasticsearchPersistentEntity
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity) - -
-           
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity, - String indexName, - String type) - -
-           
-  -

- - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.repository.support with type arguments of type ElasticsearchPersistentEntity
ElasticsearchEntityInformationCreatorImpl(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentProperty.PropertyToFieldNameConverter.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentProperty.PropertyToFieldNameConverter.html deleted file mode 100644 index 14781285..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentProperty.PropertyToFieldNameConverter.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.PropertyToFieldNameConverter (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty.PropertyToFieldNameConverter

-
- - - - - - - - - -
-Packages that use ElasticsearchPersistentProperty.PropertyToFieldNameConverter
org.springframework.data.elasticsearch.core.mapping  
-  -

- - - - - -
-Uses of ElasticsearchPersistentProperty.PropertyToFieldNameConverter in org.springframework.data.elasticsearch.core.mapping
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.mapping that return ElasticsearchPersistentProperty.PropertyToFieldNameConverter
-static ElasticsearchPersistentProperty.PropertyToFieldNameConverterElasticsearchPersistentProperty.PropertyToFieldNameConverter.valueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static ElasticsearchPersistentProperty.PropertyToFieldNameConverter[]ElasticsearchPersistentProperty.PropertyToFieldNameConverter.values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentProperty.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentProperty.html deleted file mode 100644 index 99da42ae..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/ElasticsearchPersistentProperty.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty

-
- - - - - - - - - - - - - - - - - - - - - -
-Packages that use ElasticsearchPersistentProperty
org.springframework.data.elasticsearch.core.convert  
org.springframework.data.elasticsearch.core.mapping  
org.springframework.data.elasticsearch.repository.query.parser  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchPersistentProperty in org.springframework.data.elasticsearch.core.convert
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.convert that return types with arguments of type ElasticsearchPersistentProperty
- org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>MappingElasticsearchConverter.getMappingContext() - -
-           
- org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty>ElasticsearchConverter.getMappingContext() - -
-          Returns the underlying MappingContext used by the converter.
-  -

- - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.core.convert with type arguments of type ElasticsearchPersistentProperty
MappingElasticsearchConverter(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchPersistentProperty in org.springframework.data.elasticsearch.core.mapping
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.core.mapping that implement ElasticsearchPersistentProperty
- classSimpleElasticsearchPersistentProperty - -
-          Elasticsearch specific PersistentProperty implementation processing
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.mapping that return ElasticsearchPersistentProperty
-protected  ElasticsearchPersistentPropertySimpleElasticsearchMappingContext.createPersistentProperty(Field field, - PropertyDescriptor descriptor, - SimpleElasticsearchPersistentEntity<?> owner, - org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - -
-           
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.mapping that return types with arguments of type ElasticsearchPersistentProperty
-protected  org.springframework.data.mapping.Association<ElasticsearchPersistentProperty>SimpleElasticsearchPersistentProperty.createAssociation() - -
-           
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.mapping with parameters of type ElasticsearchPersistentProperty
- StringElasticsearchPersistentProperty.PropertyToFieldNameConverter.convert(ElasticsearchPersistentProperty source) - -
-           
-  -

- - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.core.mapping with type arguments of type ElasticsearchPersistentProperty
SimpleElasticsearchPersistentProperty(Field field, - PropertyDescriptor propertyDescriptor, - org.springframework.data.mapping.PersistentEntity<?,ElasticsearchPersistentProperty> owner, - org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchPersistentProperty in org.springframework.data.elasticsearch.repository.query.parser
-  -

- - - - - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.repository.query.parser with type arguments of type ElasticsearchPersistentProperty
ElasticsearchQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, - org.springframework.data.mapping.context.MappingContext<?,ElasticsearchPersistentProperty> context) - -
-           
ElasticsearchQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, - org.springframework.data.repository.query.ParameterAccessor parameters, - org.springframework.data.mapping.context.MappingContext<?,ElasticsearchPersistentProperty> context) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchPersistentProperty in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.repository.support with type arguments of type ElasticsearchPersistentProperty
ElasticsearchEntityInformationCreatorImpl(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchMappingContext.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchMappingContext.html deleted file mode 100644 index 50b20002..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchMappingContext.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext

-
-No usage of org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchPersistentEntity.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchPersistentEntity.html deleted file mode 100644 index 849ea852..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchPersistentEntity.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity

-
- - - - - - - - - -
-Packages that use SimpleElasticsearchPersistentEntity
org.springframework.data.elasticsearch.core.mapping  
-  -

- - - - - -
-Uses of SimpleElasticsearchPersistentEntity in org.springframework.data.elasticsearch.core.mapping
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.mapping that return SimpleElasticsearchPersistentEntity
-protected - - - - -
-<T> SimpleElasticsearchPersistentEntity<?>
-
SimpleElasticsearchMappingContext.createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) - -
-           
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.mapping with parameters of type SimpleElasticsearchPersistentEntity
-protected  ElasticsearchPersistentPropertySimpleElasticsearchMappingContext.createPersistentProperty(Field field, - PropertyDescriptor descriptor, - SimpleElasticsearchPersistentEntity<?> owner, - org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchPersistentProperty.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchPersistentProperty.html deleted file mode 100644 index 35b12da3..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/class-use/SimpleElasticsearchPersistentProperty.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty

-
-No usage of org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-frame.html deleted file mode 100644 index 1206680b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-frame.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.mapping (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.core.mapping - - - - -
-Interfaces  - -
-ElasticsearchPersistentEntity -
-ElasticsearchPersistentProperty
- - - - - - -
-Classes  - -
-SimpleElasticsearchMappingContext -
-SimpleElasticsearchPersistentEntity -
-SimpleElasticsearchPersistentProperty
- - - - - - -
-Enums  - -
-ElasticsearchPersistentProperty.PropertyToFieldNameConverter
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-summary.html deleted file mode 100644 index 54125396..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-summary.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.mapping (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.core.mapping -

- - - - - - - - - - - - - -
-Interface Summary
ElasticsearchPersistentEntity<T> 
ElasticsearchPersistentProperty 
-  - -

- - - - - - - - - - - - - - - - - -
-Class Summary
SimpleElasticsearchMappingContext 
SimpleElasticsearchPersistentEntity<T>Elasticsearch specific PersistentEntity implementation holding
SimpleElasticsearchPersistentPropertyElasticsearch specific PersistentProperty implementation processing
-  - -

- - - - - - - - - -
-Enum Summary
ElasticsearchPersistentProperty.PropertyToFieldNameConverter 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-tree.html deleted file mode 100644 index bb13ee0e..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-tree.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.mapping Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.core.mapping -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -

-Enum Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-use.html deleted file mode 100644 index da89b3cf..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/mapping/package-use.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.core.mapping (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.core.mapping

-
- - - - - - - - - - - - - - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.core.mapping
org.springframework.data.elasticsearch.core.convert  
org.springframework.data.elasticsearch.core.mapping  
org.springframework.data.elasticsearch.repository.query.parser  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.mapping used by org.springframework.data.elasticsearch.core.convert
ElasticsearchPersistentEntity - -
-           
ElasticsearchPersistentProperty - -
-           
-  -

- - - - - - - - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.mapping used by org.springframework.data.elasticsearch.core.mapping
ElasticsearchPersistentEntity - -
-           
ElasticsearchPersistentProperty - -
-           
ElasticsearchPersistentProperty.PropertyToFieldNameConverter - -
-           
SimpleElasticsearchPersistentEntity - -
-          Elasticsearch specific PersistentEntity implementation holding
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.mapping used by org.springframework.data.elasticsearch.repository.query.parser
ElasticsearchPersistentProperty - -
-           
-  -

- - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.mapping used by org.springframework.data.elasticsearch.repository.support
ElasticsearchPersistentEntity - -
-           
ElasticsearchPersistentProperty - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/core/package-frame.html deleted file mode 100644 index deef7cff..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/package-frame.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.core - - - - -
-Interfaces  - -
-ElasticsearchOperations -
-ResultsMapper
- - - - - - -
-Classes  - -
-ElasticsearchTemplate
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/core/package-summary.html deleted file mode 100644 index 662326f8..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/package-summary.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.core -

- - - - - - - - - - - - - -
-Interface Summary
ElasticsearchOperations 
ResultsMapper<T> 
-  - -

- - - - - - - - - -
-Class Summary
ElasticsearchTemplate 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/core/package-tree.html deleted file mode 100644 index cb61d6c8..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/package-tree.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.core -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/core/package-use.html deleted file mode 100644 index eb7359cf..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/package-use.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.core (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.core

-
- - - - - - - - - - - - - - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.core
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.repository.cdi  
org.springframework.data.elasticsearch.repository.query  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core used by org.springframework.data.elasticsearch.core
ElasticsearchOperations - -
-           
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core used by org.springframework.data.elasticsearch.repository.cdi
ElasticsearchOperations - -
-           
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core used by org.springframework.data.elasticsearch.repository.query
ElasticsearchOperations - -
-           
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core used by org.springframework.data.elasticsearch.repository.support
ElasticsearchOperations - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.CriteriaEntry.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.CriteriaEntry.html deleted file mode 100644 index 284cbc28..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.CriteriaEntry.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - -Criteria.CriteriaEntry (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class Criteria.CriteriaEntry

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.Criteria.CriteriaEntry
-
-
-
Enclosing class:
Criteria
-
-
-
-
public static class Criteria.CriteriaEntry
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - - -
-Method Summary
- Criteria.OperationKeygetKey() - -
-           
- ObjectgetValue() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Method Detail
- -

-getKey

-
-public Criteria.OperationKey getKey()
-
-
-
-
-
-
- -

-getValue

-
-public Object getValue()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.OperationKey.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.OperationKey.html deleted file mode 100644 index 52b92a06..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.OperationKey.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - - -Criteria.OperationKey (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Enum Criteria.OperationKey

-
-java.lang.Object
-  extended by java.lang.Enum<Criteria.OperationKey>
-      extended by org.springframework.data.elasticsearch.core.query.Criteria.OperationKey
-
-
-
All Implemented Interfaces:
Serializable, Comparable<Criteria.OperationKey>
-
-
-
Enclosing class:
Criteria
-
-
-
-
public static enum Criteria.OperationKey
extends Enum<Criteria.OperationKey>
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Enum Constant Summary
BETWEEN - -
-           
CONTAINS - -
-           
ENDS_WITH - -
-           
EQUALS - -
-           
EXPRESSION - -
-           
FUZZY - -
-           
STARTS_WITH - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
-static Criteria.OperationKeyvalueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static Criteria.OperationKey[]values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-EQUALS

-
-public static final Criteria.OperationKey EQUALS
-
-
-
-
-
- -

-CONTAINS

-
-public static final Criteria.OperationKey CONTAINS
-
-
-
-
-
- -

-STARTS_WITH

-
-public static final Criteria.OperationKey STARTS_WITH
-
-
-
-
-
- -

-ENDS_WITH

-
-public static final Criteria.OperationKey ENDS_WITH
-
-
-
-
-
- -

-EXPRESSION

-
-public static final Criteria.OperationKey EXPRESSION
-
-
-
-
-
- -

-BETWEEN

-
-public static final Criteria.OperationKey BETWEEN
-
-
-
-
-
- -

-FUZZY

-
-public static final Criteria.OperationKey FUZZY
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static Criteria.OperationKey[] values()
-
-
Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
-for (Criteria.OperationKey c : Criteria.OperationKey.values())
-    System.out.println(c);
-
-

-

- -
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static Criteria.OperationKey valueOf(String name)
-
-
Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: -
IllegalArgumentException - if this enum type has no constant -with the specified name -
NullPointerException - if the argument is null
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.html deleted file mode 100644 index 77755446..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/Criteria.html +++ /dev/null @@ -1,1044 +0,0 @@ - - - - - - - -Criteria (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class Criteria

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.Criteria
-
-
-
-
public class Criteria
extends Object
- - -

-Criteria is the central class when constructing queries. It follows more or less a fluent API style, which allows to - easily chain together multiple criteria. -

- -

-


- -

- - - - - - - - - - - - - - - -
-Nested Class Summary
-static classCriteria.CriteriaEntry - -
-           
-static classCriteria.OperationKey - -
-           
- - - - - - - - - - - - - - -
-Field Summary
-static StringCRITERIA_VALUE_SEPERATOR - -
-           
-static StringWILDCARD - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
- Criteria() - -
-           
- Criteria(Field field) - -
-          Creates a new Criteria for the given field
-protected Criteria(List<Criteria> criteriaChain, - Field field) - -
-           
-protected Criteria(List<Criteria> criteriaChain, - String fieldname) - -
-           
- Criteria(String fieldname) - -
-          Creates a new CriterSimpleFieldia for the Filed with provided name
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- Criteriaand(Criteria... criterias) - -
-          Chain using AND
- Criteriaand(Criteria criteria) - -
-          Chain using AND
- Criteriaand(Field field) - -
-          Chain using AND
- Criteriaand(String fieldName) - -
-          Chain using AND
- Criteriabetween(Object lowerBound, - Object upperBound) - -
-          Crates new CriteriaEntry for RANGE [lowerBound TO upperBound]
- Criteriaboost(float boost) - -
-          Boost positive hit with given factor. eg. ^2.3
- Criteriacontains(String s) - -
-          Crates new CriteriaEntry with leading and trailing wildcards
- NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.
- CriteriaendsWith(String s) - -
-          Crates new CriteriaEntry with leading wildcard
- NOTE: mind your schema and execution times as leading wildcards may not be supported.
- Criteriaexpression(String s) - -
-          Crates new CriteriaEntry allowing native elasticsearch expressions
- Criteriafuzzy(String s) - -
-          Crates new CriteriaEntry with trailing ~
- floatgetBoost() - -
-           
- StringgetConjunctionOperator() - -
-          Conjunction to be used with this criteria (AND | OR)
- List<Criteria>getCriteriaChain() - -
-           
- Set<Criteria.CriteriaEntry>getCriteriaEntries() - -
-           
- FieldgetField() - -
-          Field targeted by this Criteria
- CriteriagreaterThanEqual(Object lowerBound) - -
-          Crates new CriteriaEntry for RANGE [lowerBound TO *]
- Criteriain(Iterable<?> values) - -
-          Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...)
- Criteriain(Object... values) - -
-          Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...)
- Criteriais(Object o) - -
-          Crates new CriteriaEntry without any wildcards
- booleanisAnd() - -
-           
- booleanisNegating() - -
-           
- booleanisOr() - -
-           
- CriterialessThanEqual(Object upperBound) - -
-          Crates new CriteriaEntry for RANGE [* TO upperBound]
- Criterianot() - -
-          Crates new CriteriaEntry with trailing -
- Criteriaor(Criteria criteria) - -
-          Chain using OR
- Criteriaor(Field field) - -
-          Chain using OR
- Criteriaor(String fieldName) - -
-          Chain using OR
- CriteriastartsWith(String s) - -
-          Crates new CriteriaEntry with trailing wildcard
-static Criteriawhere(Field field) - -
-          Static factory method to create a new Criteria for provided field
-static Criteriawhere(String field) - -
-          Static factory method to create a new Criteria for field with given name
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-WILDCARD

-
-public static final String WILDCARD
-
-
-
See Also:
Constant Field Values
-
-
- -

-CRITERIA_VALUE_SEPERATOR

-
-public static final String CRITERIA_VALUE_SEPERATOR
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Constructor Detail
- -

-Criteria

-
-public Criteria()
-
-
-
- -

-Criteria

-
-public Criteria(String fieldname)
-
-
Creates a new CriterSimpleFieldia for the Filed with provided name -

-

-
Parameters:
fieldname -
-
-
- -

-Criteria

-
-public Criteria(Field field)
-
-
Creates a new Criteria for the given field -

-

-
Parameters:
field -
-
-
- -

-Criteria

-
-protected Criteria(List<Criteria> criteriaChain,
-                   String fieldname)
-
-
-
- -

-Criteria

-
-protected Criteria(List<Criteria> criteriaChain,
-                   Field field)
-
-
- - - - - - - - -
-Method Detail
- -

-where

-
-public static Criteria where(String field)
-
-
Static factory method to create a new Criteria for field with given name -

-

-
Parameters:
field - -
Returns:
-
-
-
- -

-where

-
-public static Criteria where(Field field)
-
-
Static factory method to create a new Criteria for provided field -

-

-
Parameters:
field - -
Returns:
-
-
-
- -

-and

-
-public Criteria and(Field field)
-
-
Chain using AND -

-

-
Parameters:
field - -
Returns:
-
-
-
- -

-and

-
-public Criteria and(String fieldName)
-
-
Chain using AND -

-

-
Parameters:
fieldName - -
Returns:
-
-
-
- -

-and

-
-public Criteria and(Criteria criteria)
-
-
Chain using AND -

-

-
Parameters:
criteria - -
Returns:
-
-
-
- -

-and

-
-public Criteria and(Criteria... criterias)
-
-
Chain using AND -

-

-
Parameters:
criterias - -
Returns:
-
-
-
- -

-or

-
-public Criteria or(Field field)
-
-
Chain using OR -

-

-
Parameters:
field - -
Returns:
-
-
-
- -

-or

-
-public Criteria or(Criteria criteria)
-
-
Chain using OR -

-

-
Parameters:
criteria - -
Returns:
-
-
-
- -

-or

-
-public Criteria or(String fieldName)
-
-
Chain using OR -

-

-
Parameters:
fieldName - -
Returns:
-
-
-
- -

-is

-
-public Criteria is(Object o)
-
-
Crates new CriteriaEntry without any wildcards -

-

-
Parameters:
o - -
Returns:
-
-
-
- -

-contains

-
-public Criteria contains(String s)
-
-
Crates new CriteriaEntry with leading and trailing wildcards
- NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow. -

-

-
Parameters:
s - -
Returns:
-
-
-
- -

-startsWith

-
-public Criteria startsWith(String s)
-
-
Crates new CriteriaEntry with trailing wildcard -

-

-
Parameters:
s - -
Returns:
-
-
-
- -

-endsWith

-
-public Criteria endsWith(String s)
-
-
Crates new CriteriaEntry with leading wildcard
- NOTE: mind your schema and execution times as leading wildcards may not be supported. -

-

-
Parameters:
s - -
Returns:
-
-
-
- -

-not

-
-public Criteria not()
-
-
Crates new CriteriaEntry with trailing - -

-

- -
Returns:
-
-
-
- -

-fuzzy

-
-public Criteria fuzzy(String s)
-
-
Crates new CriteriaEntry with trailing ~ -

-

-
Parameters:
s - -
Returns:
-
-
-
- -

-expression

-
-public Criteria expression(String s)
-
-
Crates new CriteriaEntry allowing native elasticsearch expressions -

-

-
Parameters:
s - -
Returns:
-
-
-
- -

-boost

-
-public Criteria boost(float boost)
-
-
Boost positive hit with given factor. eg. ^2.3 -

-

-
Parameters:
boost - -
Returns:
-
-
-
- -

-between

-
-public Criteria between(Object lowerBound,
-                        Object upperBound)
-
-
Crates new CriteriaEntry for RANGE [lowerBound TO upperBound] -

-

-
Parameters:
lowerBound -
upperBound - -
Returns:
-
-
-
- -

-lessThanEqual

-
-public Criteria lessThanEqual(Object upperBound)
-
-
Crates new CriteriaEntry for RANGE [* TO upperBound] -

-

-
Parameters:
upperBound - -
Returns:
-
-
-
- -

-greaterThanEqual

-
-public Criteria greaterThanEqual(Object lowerBound)
-
-
Crates new CriteriaEntry for RANGE [lowerBound TO *] -

-

-
Parameters:
lowerBound - -
Returns:
-
-
-
- -

-in

-
-public Criteria in(Object... values)
-
-
Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...) -

-

-
Parameters:
values - -
Returns:
-
-
-
- -

-in

-
-public Criteria in(Iterable<?> values)
-
-
Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...) -

-

-
Parameters:
values - the collection containing the values to match against -
Returns:
-
-
-
- -

-getField

-
-public Field getField()
-
-
Field targeted by this Criteria -

-

- -
Returns:
-
-
-
- -

-getCriteriaEntries

-
-public Set<Criteria.CriteriaEntry> getCriteriaEntries()
-
-
-
-
-
-
- -

-getConjunctionOperator

-
-public String getConjunctionOperator()
-
-
Conjunction to be used with this criteria (AND | OR) -

-

- -
Returns:
-
-
-
- -

-getCriteriaChain

-
-public List<Criteria> getCriteriaChain()
-
-
-
-
-
-
- -

-isNegating

-
-public boolean isNegating()
-
-
-
-
-
-
- -

-isAnd

-
-public boolean isAnd()
-
-
-
-
-
-
- -

-isOr

-
-public boolean isOr()
-
-
-
-
-
-
- -

-getBoost

-
-public float getBoost()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/CriteriaQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/CriteriaQuery.html deleted file mode 100644 index 9b2cf668..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/CriteriaQuery.html +++ /dev/null @@ -1,552 +0,0 @@ - - - - - - - -CriteriaQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class CriteriaQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.CriteriaQuery
-
-
-
All Implemented Interfaces:
Query
-
-
-
-
public class CriteriaQuery
extends Object
implements Query
- - -

-


- -

- - - - - - - - - - - - - - - -
-Field Summary
-protected  org.springframework.data.domain.Pageablepageable - -
-           
-protected  org.springframework.data.domain.Sortsort - -
-           
- - - - - - - -
Fields inherited from interface org.springframework.data.elasticsearch.core.query.Query
DEFAULT_PAGE_SIZE
-  - - - - - - - - - - - - - -
-Constructor Summary
CriteriaQuery(Criteria criteria) - -
-           
CriteriaQuery(Criteria criteria, - org.springframework.data.domain.Pageable pageable) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T extends CriteriaQuery> -
-T
-
addCriteria(Criteria criteria) - -
-           
- - - - - -
-<T extends Query> -
-T
-
addSort(org.springframework.data.domain.Sort sort) - -
-          Add Sort to query
-static QueryfromQuery(CriteriaQuery source) - -
-           
-static - - - - -
-<T extends CriteriaQuery> -
-T
-
fromQuery(CriteriaQuery source, - T destination) - -
-           
- CriteriagetCriteria() - -
-           
- org.springframework.data.domain.PageablegetPageable() - -
-          Get page settings if defined
- org.springframework.data.domain.SortgetSort() - -
-           
- - - - - -
-<T extends Query> -
-T
-
setPageable(org.springframework.data.domain.Pageable pageable) - -
-          restrict result to entries on given page.
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- - - - - - - -
Methods inherited from interface org.springframework.data.elasticsearch.core.query.Query
addSort, getPageable, getSort, setPageable
-  -

- - - - - - - - -
-Field Detail
- -

-pageable

-
-protected org.springframework.data.domain.Pageable pageable
-
-
-
-
-
- -

-sort

-
-protected org.springframework.data.domain.Sort sort
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-CriteriaQuery

-
-public CriteriaQuery(Criteria criteria)
-
-
-
- -

-CriteriaQuery

-
-public CriteriaQuery(Criteria criteria,
-                     org.springframework.data.domain.Pageable pageable)
-
-
- - - - - - - - -
-Method Detail
- -

-fromQuery

-
-public static final Query fromQuery(CriteriaQuery source)
-
-
-
-
-
-
-
-
-
- -

-fromQuery

-
-public static <T extends CriteriaQuery> T fromQuery(CriteriaQuery source,
-                                                    T destination)
-
-
-
-
-
-
-
-
-
- -

-addCriteria

-
-public final <T extends CriteriaQuery> T addCriteria(Criteria criteria)
-
-
-
-
-
-
-
-
-
- -

-getCriteria

-
-public Criteria getCriteria()
-
-
-
-
-
-
-
-
-
- -

-getSort

-
-public org.springframework.data.domain.Sort getSort()
-
-
-
Specified by:
getSort in interface Query
-
-
- -
Returns:
null if not set
-
-
-
- -

-getPageable

-
-public org.springframework.data.domain.Pageable getPageable()
-
-
Description copied from interface: Query
-
Get page settings if defined -

-

-
Specified by:
getPageable in interface Query
-
-
- -
Returns:
-
-
-
- -

-setPageable

-
-public final <T extends Query> T setPageable(org.springframework.data.domain.Pageable pageable)
-
-
Description copied from interface: Query
-
restrict result to entries on given page. Corresponds to the 'start' and 'rows' parameter in elasticsearch -

-

-
Specified by:
setPageable in interface Query
-
-
- -
Returns:
-
-
-
- -

-addSort

-
-public final <T extends Query> T addSort(org.springframework.data.domain.Sort sort)
-
-
Description copied from interface: Query
-
Add Sort to query -

-

-
Specified by:
addSort in interface Query
-
-
- -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/DeleteQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/DeleteQuery.html deleted file mode 100644 index afcb778a..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/DeleteQuery.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - - - -DeleteQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class DeleteQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.DeleteQuery
-
-
-
-
public class DeleteQuery
extends Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
DeleteQuery() - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- org.elasticsearch.index.query.QueryBuildergetElasticsearchQuery() - -
-           
- voidsetElasticsearchQuery(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-DeleteQuery

-
-public DeleteQuery()
-
-
- - - - - - - - -
-Method Detail
- -

-getElasticsearchQuery

-
-public org.elasticsearch.index.query.QueryBuilder getElasticsearchQuery()
-
-
-
-
-
-
- -

-setElasticsearchQuery

-
-public void setElasticsearchQuery(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/Field.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/Field.html deleted file mode 100644 index 52a099f4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/Field.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - -Field (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Interface Field

-
-
All Known Implementing Classes:
SimpleField
-
-
-
-
public interface Field
- - -

-Defines a Field that can be used within a Criteria. -

- -

-


- -

- - - - - - - - - - - - -
-Method Summary
- StringgetName() - -
-          Get the name of the field used in schema.xml of elasticsearch server
-  -

- - - - - - - - -
-Method Detail
- -

-getName

-
-String getName()
-
-
Get the name of the field used in schema.xml of elasticsearch server -

-

- -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/GetQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/GetQuery.html deleted file mode 100644 index dbdf6255..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/GetQuery.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - - - -GetQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class GetQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.GetQuery
-
-
-
-
public class GetQuery
extends Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
GetQuery() - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- StringgetId() - -
-           
- voidsetId(String id) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-GetQuery

-
-public GetQuery()
-
-
- - - - - - - - -
-Method Detail
- -

-getId

-
-public String getId()
-
-
-
-
-
-
- -

-setId

-
-public void setId(String id)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/IndexQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/IndexQuery.html deleted file mode 100644 index b472a8cb..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/IndexQuery.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - -IndexQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class IndexQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.IndexQuery
-
-
-
-
public class IndexQuery
extends Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
IndexQuery() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- StringgetId() - -
-           
- ObjectgetObject() - -
-           
- voidsetId(String id) - -
-           
- voidsetObject(Object object) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-IndexQuery

-
-public IndexQuery()
-
-
- - - - - - - - -
-Method Detail
- -

-getId

-
-public String getId()
-
-
-
-
-
-
- -

-setId

-
-public void setId(String id)
-
-
-
-
-
-
- -

-getObject

-
-public Object getObject()
-
-
-
-
-
-
- -

-setObject

-
-public void setObject(Object object)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/Query.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/Query.html deleted file mode 100644 index b3df2aa5..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/Query.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - - -Query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Interface Query

-
-
All Known Implementing Classes:
CriteriaQuery, SearchQuery, StringQuery
-
-
-
-
public interface Query
- - -

-


- -

- - - - - - - - - - - -
-Field Summary
-static intDEFAULT_PAGE_SIZE - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T extends Query> -
-T
-
addSort(org.springframework.data.domain.Sort sort) - -
-          Add Sort to query
- org.springframework.data.domain.PageablegetPageable() - -
-          Get page settings if defined
- org.springframework.data.domain.SortgetSort() - -
-           
- - - - - -
-<T extends Query> -
-T
-
setPageable(org.springframework.data.domain.Pageable pageable) - -
-          restrict result to entries on given page.
-  -

- - - - - - - - -
-Field Detail
- -

-DEFAULT_PAGE_SIZE

-
-static final int DEFAULT_PAGE_SIZE
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Method Detail
- -

-setPageable

-
-<T extends Query> T setPageable(org.springframework.data.domain.Pageable pageable)
-
-
restrict result to entries on given page. Corresponds to the 'start' and 'rows' parameter in elasticsearch -

-

-
Parameters:
pageable - -
Returns:
-
-
-
- -

-getPageable

-
-org.springframework.data.domain.Pageable getPageable()
-
-
Get page settings if defined -

-

- -
Returns:
-
-
-
- -

-addSort

-
-<T extends Query> T addSort(org.springframework.data.domain.Sort sort)
-
-
Add Sort to query -

-

-
Parameters:
sort - -
Returns:
-
-
-
- -

-getSort

-
-org.springframework.data.domain.Sort getSort()
-
-
- -
Returns:
null if not set
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/SearchQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/SearchQuery.html deleted file mode 100644 index c5a845ae..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/SearchQuery.html +++ /dev/null @@ -1,495 +0,0 @@ - - - - - - - -SearchQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class SearchQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.SearchQuery
-
-
-
All Implemented Interfaces:
Query
-
-
-
-
public class SearchQuery
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - -
-Field Summary
-protected  org.springframework.data.domain.Pageablepageable - -
-           
-protected  org.springframework.data.domain.Sortsort - -
-           
- - - - - - - -
Fields inherited from interface org.springframework.data.elasticsearch.core.query.Query
DEFAULT_PAGE_SIZE
-  - - - - - - - - - - -
-Constructor Summary
SearchQuery() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T extends Query> -
-T
-
addSort(org.springframework.data.domain.Sort sort) - -
-          Add Sort to query
- org.elasticsearch.index.query.FilterBuildergetElasticsearchFilter() - -
-           
- org.elasticsearch.index.query.QueryBuildergetElasticsearchQuery() - -
-           
- org.springframework.data.domain.PageablegetPageable() - -
-          Get page settings if defined
- org.springframework.data.domain.SortgetSort() - -
-           
- voidsetElasticsearchFilter(org.elasticsearch.index.query.FilterBuilder elasticsearchFilter) - -
-           
- voidsetElasticsearchQuery(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery) - -
-           
- - - - - -
-<T extends Query> -
-T
-
setPageable(org.springframework.data.domain.Pageable pageable) - -
-          restrict result to entries on given page.
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-pageable

-
-protected org.springframework.data.domain.Pageable pageable
-
-
-
-
-
- -

-sort

-
-protected org.springframework.data.domain.Sort sort
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-SearchQuery

-
-public SearchQuery()
-
-
- - - - - - - - -
-Method Detail
- -

-getElasticsearchQuery

-
-public org.elasticsearch.index.query.QueryBuilder getElasticsearchQuery()
-
-
-
-
-
-
- -

-setElasticsearchQuery

-
-public void setElasticsearchQuery(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery)
-
-
-
-
-
-
- -

-getElasticsearchFilter

-
-public org.elasticsearch.index.query.FilterBuilder getElasticsearchFilter()
-
-
-
-
-
-
- -

-setElasticsearchFilter

-
-public void setElasticsearchFilter(org.elasticsearch.index.query.FilterBuilder elasticsearchFilter)
-
-
-
-
-
-
- -

-getSort

-
-public org.springframework.data.domain.Sort getSort()
-
-
-
Specified by:
getSort in interface Query
-
-
- -
Returns:
null if not set
-
-
-
- -

-getPageable

-
-public org.springframework.data.domain.Pageable getPageable()
-
-
Description copied from interface: Query
-
Get page settings if defined -

-

-
Specified by:
getPageable in interface Query
-
-
- -
Returns:
-
-
-
- -

-setPageable

-
-public final <T extends Query> T setPageable(org.springframework.data.domain.Pageable pageable)
-
-
Description copied from interface: Query
-
restrict result to entries on given page. Corresponds to the 'start' and 'rows' parameter in elasticsearch -

-

-
Specified by:
setPageable in interface Query
-
-
- -
Returns:
-
-
-
- -

-addSort

-
-public final <T extends Query> T addSort(org.springframework.data.domain.Sort sort)
-
-
Description copied from interface: Query
-
Add Sort to query -

-

-
Specified by:
addSort in interface Query
-
-
- -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/SimpleField.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/SimpleField.html deleted file mode 100644 index ff065584..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/SimpleField.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - -SimpleField (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class SimpleField

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.SimpleField
-
-
-
All Implemented Interfaces:
Field
-
-
-
-
public class SimpleField
extends Object
implements Field
- - -

-The most trivial implementation of a Field -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
SimpleField(String name) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- StringgetName() - -
-          Get the name of the field used in schema.xml of elasticsearch server
- StringtoString() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-SimpleField

-
-public SimpleField(String name)
-
-
- - - - - - - - -
-Method Detail
- -

-getName

-
-public String getName()
-
-
Description copied from interface: Field
-
Get the name of the field used in schema.xml of elasticsearch server -

-

-
Specified by:
getName in interface Field
-
-
- -
Returns:
-
-
-
- -

-toString

-
-public String toString()
-
-
-
Overrides:
toString in class Object
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/StringQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/StringQuery.html deleted file mode 100644 index ef0a1690..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/StringQuery.html +++ /dev/null @@ -1,472 +0,0 @@ - - - - - - - -StringQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.core.query -
-Class StringQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.core.query.StringQuery
-
-
-
All Implemented Interfaces:
Query
-
-
-
-
public class StringQuery
extends Object
- - -

-


- -

- - - - - - - - - - - - - - - -
-Field Summary
-protected  org.springframework.data.domain.Pageablepageable - -
-           
-protected  org.springframework.data.domain.Sortsort - -
-           
- - - - - - - -
Fields inherited from interface org.springframework.data.elasticsearch.core.query.Query
DEFAULT_PAGE_SIZE
-  - - - - - - - - - - - - - - - - -
-Constructor Summary
StringQuery(String source) - -
-           
StringQuery(String source, - org.springframework.data.domain.Pageable pageable) - -
-           
StringQuery(String source, - org.springframework.data.domain.Pageable pageable, - org.springframework.data.domain.Sort sort) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T extends Query> -
-T
-
addSort(org.springframework.data.domain.Sort sort) - -
-          Add Sort to query
- org.springframework.data.domain.PageablegetPageable() - -
-          Get page settings if defined
- org.springframework.data.domain.SortgetSort() - -
-           
- StringgetSource() - -
-           
- - - - - -
-<T extends Query> -
-T
-
setPageable(org.springframework.data.domain.Pageable pageable) - -
-          restrict result to entries on given page.
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-pageable

-
-protected org.springframework.data.domain.Pageable pageable
-
-
-
-
-
- -

-sort

-
-protected org.springframework.data.domain.Sort sort
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-StringQuery

-
-public StringQuery(String source)
-
-
-
- -

-StringQuery

-
-public StringQuery(String source,
-                   org.springframework.data.domain.Pageable pageable)
-
-
-
- -

-StringQuery

-
-public StringQuery(String source,
-                   org.springframework.data.domain.Pageable pageable,
-                   org.springframework.data.domain.Sort sort)
-
-
- - - - - - - - -
-Method Detail
- -

-getSource

-
-public String getSource()
-
-
-
-
-
-
- -

-getSort

-
-public org.springframework.data.domain.Sort getSort()
-
-
-
Specified by:
getSort in interface Query
-
-
- -
Returns:
null if not set
-
-
-
- -

-getPageable

-
-public org.springframework.data.domain.Pageable getPageable()
-
-
Description copied from interface: Query
-
Get page settings if defined -

-

-
Specified by:
getPageable in interface Query
-
-
- -
Returns:
-
-
-
- -

-setPageable

-
-public final <T extends Query> T setPageable(org.springframework.data.domain.Pageable pageable)
-
-
Description copied from interface: Query
-
restrict result to entries on given page. Corresponds to the 'start' and 'rows' parameter in elasticsearch -

-

-
Specified by:
setPageable in interface Query
-
-
- -
Returns:
-
-
-
- -

-addSort

-
-public final <T extends Query> T addSort(org.springframework.data.domain.Sort sort)
-
-
Description copied from interface: Query
-
Add Sort to query -

-

-
Specified by:
addSort in interface Query
-
-
- -
Returns:
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.CriteriaEntry.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.CriteriaEntry.html deleted file mode 100644 index 999f512f..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.CriteriaEntry.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.Criteria.CriteriaEntry (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.Criteria.CriteriaEntry

-
- - - - - - - - - -
-Packages that use Criteria.CriteriaEntry
org.springframework.data.elasticsearch.core.query  
-  -

- - - - - -
-Uses of Criteria.CriteriaEntry in org.springframework.data.elasticsearch.core.query
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query that return types with arguments of type Criteria.CriteriaEntry
- Set<Criteria.CriteriaEntry>Criteria.getCriteriaEntries() - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.OperationKey.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.OperationKey.html deleted file mode 100644 index 5afcf7b4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.OperationKey.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.Criteria.OperationKey (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.Criteria.OperationKey

-
- - - - - - - - - -
-Packages that use Criteria.OperationKey
org.springframework.data.elasticsearch.core.query  
-  -

- - - - - -
-Uses of Criteria.OperationKey in org.springframework.data.elasticsearch.core.query
-  -

- - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query that return Criteria.OperationKey
- Criteria.OperationKeyCriteria.CriteriaEntry.getKey() - -
-           
-static Criteria.OperationKeyCriteria.OperationKey.valueOf(String name) - -
-          Returns the enum constant of this type with the specified name.
-static Criteria.OperationKey[]Criteria.OperationKey.values() - -
-          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.html deleted file mode 100644 index 6a098e05..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Criteria.html +++ /dev/null @@ -1,468 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.Criteria (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.Criteria

-
- - - - - - - - - -
-Packages that use Criteria
org.springframework.data.elasticsearch.core.query  
-  -

- - - - - -
-Uses of Criteria in org.springframework.data.elasticsearch.core.query
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query that return Criteria
- CriteriaCriteria.and(Criteria... criterias) - -
-          Chain using AND
- CriteriaCriteria.and(Criteria criteria) - -
-          Chain using AND
- CriteriaCriteria.and(Field field) - -
-          Chain using AND
- CriteriaCriteria.and(String fieldName) - -
-          Chain using AND
- CriteriaCriteria.between(Object lowerBound, - Object upperBound) - -
-          Crates new CriteriaEntry for RANGE [lowerBound TO upperBound]
- CriteriaCriteria.boost(float boost) - -
-          Boost positive hit with given factor. eg. ^2.3
- CriteriaCriteria.contains(String s) - -
-          Crates new CriteriaEntry with leading and trailing wildcards
- NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.
- CriteriaCriteria.endsWith(String s) - -
-          Crates new CriteriaEntry with leading wildcard
- NOTE: mind your schema and execution times as leading wildcards may not be supported.
- CriteriaCriteria.expression(String s) - -
-          Crates new CriteriaEntry allowing native elasticsearch expressions
- CriteriaCriteria.fuzzy(String s) - -
-          Crates new CriteriaEntry with trailing ~
- CriteriaCriteriaQuery.getCriteria() - -
-           
- CriteriaCriteria.greaterThanEqual(Object lowerBound) - -
-          Crates new CriteriaEntry for RANGE [lowerBound TO *]
- CriteriaCriteria.in(Iterable<?> values) - -
-          Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...)
- CriteriaCriteria.in(Object... values) - -
-          Crates new CriteriaEntry for multiple values (arg0 arg1 arg2 ...)
- CriteriaCriteria.is(Object o) - -
-          Crates new CriteriaEntry without any wildcards
- CriteriaCriteria.lessThanEqual(Object upperBound) - -
-          Crates new CriteriaEntry for RANGE [* TO upperBound]
- CriteriaCriteria.not() - -
-          Crates new CriteriaEntry with trailing -
- CriteriaCriteria.or(Criteria criteria) - -
-          Chain using OR
- CriteriaCriteria.or(Field field) - -
-          Chain using OR
- CriteriaCriteria.or(String fieldName) - -
-          Chain using OR
- CriteriaCriteria.startsWith(String s) - -
-          Crates new CriteriaEntry with trailing wildcard
-static CriteriaCriteria.where(Field field) - -
-          Static factory method to create a new Criteria for provided field
-static CriteriaCriteria.where(String field) - -
-          Static factory method to create a new Criteria for field with given name
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query that return types with arguments of type Criteria
- List<Criteria>Criteria.getCriteriaChain() - -
-           
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query with parameters of type Criteria
- - - - - -
-<T extends CriteriaQuery> -
-T
-
CriteriaQuery.addCriteria(Criteria criteria) - -
-           
- CriteriaCriteria.and(Criteria... criterias) - -
-          Chain using AND
- CriteriaCriteria.and(Criteria criteria) - -
-          Chain using AND
- CriteriaCriteria.or(Criteria criteria) - -
-          Chain using OR
-  -

- - - - - - - - - - - -
Constructors in org.springframework.data.elasticsearch.core.query with parameters of type Criteria
CriteriaQuery(Criteria criteria) - -
-           
CriteriaQuery(Criteria criteria, - org.springframework.data.domain.Pageable pageable) - -
-           
-  -

- - - - - - - - - - - -
Constructor parameters in org.springframework.data.elasticsearch.core.query with type arguments of type Criteria
Criteria(List<Criteria> criteriaChain, - Field field) - -
-           
Criteria(List<Criteria> criteriaChain, - String fieldname) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/CriteriaQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/CriteriaQuery.html deleted file mode 100644 index 16ddd327..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/CriteriaQuery.html +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.CriteriaQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.CriteriaQuery

-
- - - - - - - - - - - - - - - - - - - - - -
-Packages that use CriteriaQuery
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.core.query  
org.springframework.data.elasticsearch.repository.query  
org.springframework.data.elasticsearch.repository.query.parser  
-  -

- - - - - -
-Uses of CriteriaQuery in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core with parameters of type CriteriaQuery
- - - - - -
-<T> T
-
ElasticsearchTemplate.queryForObject(CriteriaQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> T
-
ElasticsearchOperations.queryForObject(CriteriaQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
ElasticsearchTemplate.queryForPage(CriteriaQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
ElasticsearchOperations.queryForPage(CriteriaQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
-  -

- - - - - -
-Uses of CriteriaQuery in org.springframework.data.elasticsearch.core.query
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query with type parameters of type CriteriaQuery
- - - - - -
-<T extends CriteriaQuery> -
-T
-
CriteriaQuery.addCriteria(Criteria criteria) - -
-           
-static - - - - -
-<T extends CriteriaQuery> -
-T
-
CriteriaQuery.fromQuery(CriteriaQuery source, - T destination) - -
-           
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query with parameters of type CriteriaQuery
-static QueryCriteriaQuery.fromQuery(CriteriaQuery source) - -
-           
-static - - - - -
-<T extends CriteriaQuery> -
-T
-
CriteriaQuery.fromQuery(CriteriaQuery source, - T destination) - -
-           
-  -

- - - - - -
-Uses of CriteriaQuery in org.springframework.data.elasticsearch.repository.query
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.query that return CriteriaQuery
- CriteriaQueryElasticsearchPartQuery.createQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor) - -
-           
-  -

- - - - - -
-Uses of CriteriaQuery in org.springframework.data.elasticsearch.repository.query.parser
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.query.parser that return CriteriaQuery
-protected  CriteriaQueryElasticsearchQueryCreator.and(org.springframework.data.repository.query.parser.Part part, - CriteriaQuery base, - Iterator<Object> iterator) - -
-           
-protected  CriteriaQueryElasticsearchQueryCreator.complete(CriteriaQuery query, - org.springframework.data.domain.Sort sort) - -
-           
-protected  CriteriaQueryElasticsearchQueryCreator.create(org.springframework.data.repository.query.parser.Part part, - Iterator<Object> iterator) - -
-           
-protected  CriteriaQueryElasticsearchQueryCreator.or(CriteriaQuery base, - CriteriaQuery query) - -
-           
-  -

- - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.query.parser with parameters of type CriteriaQuery
-protected  CriteriaQueryElasticsearchQueryCreator.and(org.springframework.data.repository.query.parser.Part part, - CriteriaQuery base, - Iterator<Object> iterator) - -
-           
-protected  CriteriaQueryElasticsearchQueryCreator.complete(CriteriaQuery query, - org.springframework.data.domain.Sort sort) - -
-           
-protected  CriteriaQueryElasticsearchQueryCreator.or(CriteriaQuery base, - CriteriaQuery query) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/DeleteQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/DeleteQuery.html deleted file mode 100644 index 7be5be66..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/DeleteQuery.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.DeleteQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.DeleteQuery

-
- - - - - - - - - -
-Packages that use DeleteQuery
org.springframework.data.elasticsearch.core  
-  -

- - - - - -
-Uses of DeleteQuery in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core with parameters of type DeleteQuery
- - - - - -
-<T> void
-
ElasticsearchTemplate.delete(DeleteQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> void
-
ElasticsearchOperations.delete(DeleteQuery query, - Class<T> clazz) - -
-          Delete all records matching the query
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Field.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Field.html deleted file mode 100644 index 2fdd3312..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Field.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.query.Field (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.query.Field

-
- - - - - - - - - -
-Packages that use Field
org.springframework.data.elasticsearch.core.query  
-  -

- - - - - -
-Uses of Field in org.springframework.data.elasticsearch.core.query
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.core.query that implement Field
- classSimpleField - -
-          The most trivial implementation of a Field
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query that return Field
- FieldCriteria.getField() - -
-          Field targeted by this Criteria
-  -

- - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query with parameters of type Field
- CriteriaCriteria.and(Field field) - -
-          Chain using AND
- CriteriaCriteria.or(Field field) - -
-          Chain using OR
-static CriteriaCriteria.where(Field field) - -
-          Static factory method to create a new Criteria for provided field
-  -

- - - - - - - - - - - -
Constructors in org.springframework.data.elasticsearch.core.query with parameters of type Field
Criteria(Field field) - -
-          Creates a new Criteria for the given field
Criteria(List<Criteria> criteriaChain, - Field field) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/GetQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/GetQuery.html deleted file mode 100644 index 0956ffbf..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/GetQuery.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.GetQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.GetQuery

-
- - - - - - - - - -
-Packages that use GetQuery
org.springframework.data.elasticsearch.core  
-  -

- - - - - -
-Uses of GetQuery in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core with parameters of type GetQuery
- - - - - -
-<T> T
-
ElasticsearchTemplate.queryForObject(GetQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> T
-
ElasticsearchOperations.queryForObject(GetQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/IndexQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/IndexQuery.html deleted file mode 100644 index 498aa023..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/IndexQuery.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.IndexQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.IndexQuery

-
- - - - - - - - - -
-Packages that use IndexQuery
org.springframework.data.elasticsearch.core  
-  -

- - - - - -
-Uses of IndexQuery in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core with parameters of type IndexQuery
- StringElasticsearchTemplate.index(IndexQuery query) - -
-           
- StringElasticsearchOperations.index(IndexQuery query) - -
-          Index an object.
-  -

- - - - - - - - - - - - - -
Method parameters in org.springframework.data.elasticsearch.core with type arguments of type IndexQuery
- voidElasticsearchTemplate.bulkIndex(List<IndexQuery> queries) - -
-           
- voidElasticsearchOperations.bulkIndex(List<IndexQuery> queries) - -
-          Bulk index all objects.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Query.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Query.html deleted file mode 100644 index 09d92b28..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/Query.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.core.query.Query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.core.query.Query

-
- - - - - - - - - -
-Packages that use Query
org.springframework.data.elasticsearch.core.query  
-  -

- - - - - -
-Uses of Query in org.springframework.data.elasticsearch.core.query
-  -

- - - - - - - - - - - - - - - - - -
Classes in org.springframework.data.elasticsearch.core.query that implement Query
- classCriteriaQuery - -
-           
- classSearchQuery - -
-           
- classStringQuery - -
-           
-  -

- - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query with type parameters of type Query
- - - - - -
-<T extends Query> -
-T
-
Query.addSort(org.springframework.data.domain.Sort sort) - -
-          Add Sort to query
- - - - - -
-<T extends Query> -
-T
-
Query.setPageable(org.springframework.data.domain.Pageable pageable) - -
-          restrict result to entries on given page.
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core.query that return Query
-static QueryCriteriaQuery.fromQuery(CriteriaQuery source) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/SearchQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/SearchQuery.html deleted file mode 100644 index 403938b4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/SearchQuery.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.SearchQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.SearchQuery

-
- - - - - - - - - - - - - - - - - -
-Packages that use SearchQuery
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.repository  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of SearchQuery in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core with parameters of type SearchQuery
- - - - - -
-<T> long
-
ElasticsearchTemplate.count(SearchQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> long
-
ElasticsearchOperations.count(SearchQuery query, - Class<T> clazz) - -
-          return number of elements found by for given query
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
ElasticsearchTemplate.queryForPage(SearchQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
ElasticsearchOperations.queryForPage(SearchQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
-  -

- - - - - -
-Uses of SearchQuery in org.springframework.data.elasticsearch.repository
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository with parameters of type SearchQuery
- org.springframework.data.domain.Page<T>ElasticsearchRepository.search(SearchQuery searchQuery) - -
-           
-  -

- - - - - -
-Uses of SearchQuery in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.support with parameters of type SearchQuery
- org.springframework.data.domain.Page<T>SimpleElasticsearchRepository.search(SearchQuery query) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/SimpleField.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/SimpleField.html deleted file mode 100644 index d5841c72..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/SimpleField.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.SimpleField (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.SimpleField

-
-No usage of org.springframework.data.elasticsearch.core.query.SimpleField -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/StringQuery.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/StringQuery.html deleted file mode 100644 index 089bd79b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/class-use/StringQuery.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.core.query.StringQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.core.query.StringQuery

-
- - - - - - - - - - - - - -
-Packages that use StringQuery
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.repository.query  
-  -

- - - - - -
-Uses of StringQuery in org.springframework.data.elasticsearch.core
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.core with parameters of type StringQuery
- - - - - -
-<T> T
-
ElasticsearchTemplate.queryForObject(StringQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> T
-
ElasticsearchOperations.queryForObject(StringQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return the first returned object
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
ElasticsearchTemplate.queryForPage(StringQuery query, - Class<T> clazz) - -
-           
- - - - - -
-<T> org.springframework.data.domain.Page<T>
-
ElasticsearchOperations.queryForPage(StringQuery query, - Class<T> clazz) - -
-          Execute the query against elasticsearch and return result as Page
-  -

- - - - - -
-Uses of StringQuery in org.springframework.data.elasticsearch.repository.query
-  -

- - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.query that return StringQuery
-protected  StringQueryElasticsearchStringQuery.createQuery(org.springframework.data.repository.query.ParametersParameterAccessor parameterAccessor) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/package-frame.html deleted file mode 100644 index a7934f28..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-frame.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.core.query - - - - -
-Interfaces  - -
-Field -
-Query
- - - - - - -
-Classes  - -
-Criteria -
-Criteria.CriteriaEntry -
-CriteriaQuery -
-DeleteQuery -
-GetQuery -
-IndexQuery -
-SearchQuery -
-SimpleField -
-StringQuery
- - - - - - -
-Enums  - -
-Criteria.OperationKey
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/package-summary.html deleted file mode 100644 index 32173899..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-summary.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.core.query -

- - - - - - - - - - - - - -
-Interface Summary
FieldDefines a Field that can be used within a Criteria.
Query 
-  - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Class Summary
CriteriaCriteria is the central class when constructing queries.
Criteria.CriteriaEntry 
CriteriaQuery 
DeleteQuery 
GetQuery 
IndexQuery 
SearchQuery 
SimpleFieldThe most trivial implementation of a Field
StringQuery 
-  - -

- - - - - - - - - -
-Enum Summary
Criteria.OperationKey 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/package-tree.html deleted file mode 100644 index fe2d124e..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-tree.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.core.query Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.core.query -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -

-Enum Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/core/query/package-use.html deleted file mode 100644 index 1ecc6a48..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/core/query/package-use.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.core.query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.core.query

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.core.query
org.springframework.data.elasticsearch.core  
org.springframework.data.elasticsearch.core.query  
org.springframework.data.elasticsearch.repository  
org.springframework.data.elasticsearch.repository.query  
org.springframework.data.elasticsearch.repository.query.parser  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - - - - - - - - - - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.query used by org.springframework.data.elasticsearch.core
CriteriaQuery - -
-           
DeleteQuery - -
-           
GetQuery - -
-           
IndexQuery - -
-           
SearchQuery - -
-           
StringQuery - -
-           
-  -

- - - - - - - - - - - - - - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.query used by org.springframework.data.elasticsearch.core.query
Criteria - -
-          Criteria is the central class when constructing queries.
Criteria.CriteriaEntry - -
-           
Criteria.OperationKey - -
-           
CriteriaQuery - -
-           
Field - -
-          Defines a Field that can be used within a Criteria.
Query - -
-           
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.query used by org.springframework.data.elasticsearch.repository
SearchQuery - -
-           
-  -

- - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.query used by org.springframework.data.elasticsearch.repository.query
CriteriaQuery - -
-           
StringQuery - -
-           
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.query used by org.springframework.data.elasticsearch.repository.query.parser
CriteriaQuery - -
-           
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.core.query used by org.springframework.data.elasticsearch.repository.support
SearchQuery - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/package-frame.html deleted file mode 100644 index 32287bf2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/package-frame.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch - - - - -
-Exceptions  - -
-ElasticsearchException
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/package-summary.html deleted file mode 100644 index ec8834dc..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch -

- - - - - - - - - -
-Exception Summary
ElasticsearchException 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/package-tree.html deleted file mode 100644 index cfed1708..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/package-tree.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/package-use.html deleted file mode 100644 index 388b3803..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch

-
-No usage of org.springframework.data.elasticsearch -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/ElasticsearchCrudRepository.html b/site/apidocs/org/springframework/data/elasticsearch/repository/ElasticsearchCrudRepository.html deleted file mode 100644 index 7896bb10..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/ElasticsearchCrudRepository.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - - -ElasticsearchCrudRepository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository -
-Interface ElasticsearchCrudRepository<T,ID extends Serializable>

-
-
Type Parameters:
T -
ID -
-
-
All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>
-
-
-
All Known Subinterfaces:
ElasticsearchRepository<T,ID>
-
-
-
All Known Implementing Classes:
SimpleElasticsearchRepository
-
-
-
-
public interface ElasticsearchCrudRepository<T,ID extends Serializable>
extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>
- - -

-


- -

- - - - - - - - - - - - -
-Method Summary
- - - - - -
-<S extends T> -
-List<S>
-
save(List<S> entities) - -
-           
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, save
-  -

- - - - - - - - -
-Method Detail
- -

-save

-
-<S extends T> List<S> save(List<S> entities)
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/ElasticsearchRepository.html b/site/apidocs/org/springframework/data/elasticsearch/repository/ElasticsearchRepository.html deleted file mode 100644 index f4e0e217..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/ElasticsearchRepository.html +++ /dev/null @@ -1,323 +0,0 @@ - - - - - - - -ElasticsearchRepository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository -
-Interface ElasticsearchRepository<T,ID extends Serializable>

-
-
Type Parameters:
T -
ID -
-
-
All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, ElasticsearchCrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>
-
-
-
All Known Implementing Classes:
SimpleElasticsearchRepository
-
-
-
-
@NoRepositoryBean
-public interface ElasticsearchRepository<T,ID extends Serializable>
extends ElasticsearchCrudRepository<T,ID>
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- - - - - -
-<S extends T> -
-S
-
index(S entity) - -
-           
- Iterable<T>search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery) - -
-           
- org.springframework.data.domain.Page<T>search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery, - org.springframework.data.domain.Pageable pageable) - -
-           
- org.springframework.data.domain.Page<T>search(SearchQuery searchQuery) - -
-           
- - - - - - - -
Methods inherited from interface org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository
save
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, save
-  -

- - - - - - - - -
-Method Detail
- -

-index

-
-<S extends T> S index(S entity)
-
-
-
-
-
-
-
-
-
- -

-search

-
-Iterable<T> search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery)
-
-
-
-
-
-
-
-
-
- -

-search

-
-org.springframework.data.domain.Page<T> search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery,
-                                               org.springframework.data.domain.Pageable pageable)
-
-
-
-
-
-
-
-
-
- -

-search

-
-org.springframework.data.domain.Page<T> search(SearchQuery searchQuery)
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/ElasticsearchRepositoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/ElasticsearchRepositoryBean.html deleted file mode 100644 index 3ad402d9..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/ElasticsearchRepositoryBean.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - - -ElasticsearchRepositoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.cdi -
-Class ElasticsearchRepositoryBean<T>

-
-java.lang.Object
-  extended by org.springframework.data.repository.cdi.CdiRepositoryBean<T>
-      extended by org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean<T>
-
-
-
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>
-
-
-
-
public class ElasticsearchRepositoryBean<T>
extends org.springframework.data.repository.cdi.CdiRepositoryBean<T>
- - -

-Uses CdiRepositoryBean to create ElasticsearchRepository instances. -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ElasticsearchRepositoryBean(javax.enterprise.inject.spi.Bean<ElasticsearchOperations> operations, - Set<Annotation> qualifiers, - Class<T> repositoryType, - javax.enterprise.inject.spi.BeanManager beanManager) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
-protected  Tcreate(javax.enterprise.context.spi.CreationalContext<T> creationalContext, - Class<T> repositoryType) - -
-           
- Class<? extends Annotation>getScope() - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.repository.cdi.CdiRepositoryBean
create, destroy, getBeanClass, getDependencyInstance, getInjectionPoints, getName, getQualifiers, getStereotypes, getTypes, isAlternative, isNullable, toString
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchRepositoryBean

-
-public ElasticsearchRepositoryBean(javax.enterprise.inject.spi.Bean<ElasticsearchOperations> operations,
-                                   Set<Annotation> qualifiers,
-                                   Class<T> repositoryType,
-                                   javax.enterprise.inject.spi.BeanManager beanManager)
-
-
- - - - - - - - -
-Method Detail
- -

-create

-
-protected T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext,
-                   Class<T> repositoryType)
-
-
-
Specified by:
create in class org.springframework.data.repository.cdi.CdiRepositoryBean<T>
-
-
-
-
-
-
- -

-getScope

-
-public Class<? extends Annotation> getScope()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/ElasticsearchRepositoryExtension.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/ElasticsearchRepositoryExtension.html deleted file mode 100644 index 73da7932..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/ElasticsearchRepositoryExtension.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - -ElasticsearchRepositoryExtension (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.cdi -
-Class ElasticsearchRepositoryExtension

-
-java.lang.Object
-  extended by org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport
-      extended by org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryExtension
-
-
-
All Implemented Interfaces:
javax.enterprise.inject.spi.Extension
-
-
-
-
public class ElasticsearchRepositoryExtension
extends org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ElasticsearchRepositoryExtension() - -
-           
-  - - - - - - - -
-Method Summary
- - - - - - - -
Methods inherited from class org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport
getRepositoryTypes, processAnnotatedType
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchRepositoryExtension

-
-public ElasticsearchRepositoryExtension()
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/class-use/ElasticsearchRepositoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/class-use/ElasticsearchRepositoryBean.html deleted file mode 100644 index dd6b4828..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/class-use/ElasticsearchRepositoryBean.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean

-
-No usage of org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryBean -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/class-use/ElasticsearchRepositoryExtension.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/class-use/ElasticsearchRepositoryExtension.html deleted file mode 100644 index a56c5a51..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/class-use/ElasticsearchRepositoryExtension.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryExtension (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryExtension

-
-No usage of org.springframework.data.elasticsearch.repository.cdi.ElasticsearchRepositoryExtension -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-frame.html deleted file mode 100644 index 19e56d13..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-frame.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.cdi (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.repository.cdi - - - - -
-Classes  - -
-ElasticsearchRepositoryBean -
-ElasticsearchRepositoryExtension
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-summary.html deleted file mode 100644 index 1840a7df..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.cdi (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.repository.cdi -

- - - - - - - - - - - - - -
-Class Summary
ElasticsearchRepositoryBean<T>Uses CdiRepositoryBean to create ElasticsearchRepository instances.
ElasticsearchRepositoryExtension 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-tree.html deleted file mode 100644 index 4ea9b33a..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-tree.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.cdi Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.repository.cdi -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-use.html deleted file mode 100644 index c85a99b2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/cdi/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.repository.cdi (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.repository.cdi

-
-No usage of org.springframework.data.elasticsearch.repository.cdi -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/class-use/ElasticsearchCrudRepository.html b/site/apidocs/org/springframework/data/elasticsearch/repository/class-use/ElasticsearchCrudRepository.html deleted file mode 100644 index 05e74893..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/class-use/ElasticsearchCrudRepository.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository

-
- - - - - - - - - - - - - -
-Packages that use ElasticsearchCrudRepository
org.springframework.data.elasticsearch.repository  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchCrudRepository in org.springframework.data.elasticsearch.repository
-  -

- - - - - - - - - -
Subinterfaces of ElasticsearchCrudRepository in org.springframework.data.elasticsearch.repository
- interfaceElasticsearchRepository<T,ID extends Serializable> - -
-           
-  -

- - - - - -
-Uses of ElasticsearchCrudRepository in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.repository.support that implement ElasticsearchCrudRepository
- classSimpleElasticsearchRepository<T> - -
-          Elasticsearch specific repository implementation.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/class-use/ElasticsearchRepository.html b/site/apidocs/org/springframework/data/elasticsearch/repository/class-use/ElasticsearchRepository.html deleted file mode 100644 index fe563a53..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/class-use/ElasticsearchRepository.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.repository.ElasticsearchRepository

-
- - - - - - - - - -
-Packages that use ElasticsearchRepository
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchRepository in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.repository.support that implement ElasticsearchRepository
- classSimpleElasticsearchRepository<T> - -
-          Elasticsearch specific repository implementation.
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/ElasticsearchRepositoryConfigExtension.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/ElasticsearchRepositoryConfigExtension.html deleted file mode 100644 index 8f54327d..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/ElasticsearchRepositoryConfigExtension.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - -ElasticsearchRepositoryConfigExtension (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.config -
-Class ElasticsearchRepositoryConfigExtension

-
-java.lang.Object
-  extended by org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-      extended by org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension
-
-
-
All Implemented Interfaces:
org.springframework.data.repository.config.RepositoryConfigurationExtension
-
-
-
-
public class ElasticsearchRepositoryConfigExtension
extends org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
- - -

-RepositoryConfigurationExtension implementation to configure Elasticsearch repository configuration support, - evaluating the EnableElasticsearchRepositories annotation or the equivalent XML element. -

- -

-


- -

- - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
REPOSITORY_INTERFACE_POST_PROCESSOR
-  - - - - - - - - - - -
-Constructor Summary
ElasticsearchRepositoryConfigExtension() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
-protected  StringgetModulePrefix() - -
-           
- StringgetRepositoryFactoryClassName() - -
-           
- voidpostProcess(BeanDefinitionBuilder builder, - org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource config) - -
-           
- voidpostProcess(BeanDefinitionBuilder builder, - org.springframework.data.repository.config.XmlRepositoryConfigurationSource config) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
getDefaultNamedQueryLocation, getRepositoryConfiguration, getRepositoryConfigurations, hasBean, registerBeansForRoot, registerWithSourceAndGeneratedBeanName
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchRepositoryConfigExtension

-
-public ElasticsearchRepositoryConfigExtension()
-
-
- - - - - - - - -
-Method Detail
- -

-getRepositoryFactoryClassName

-
-public String getRepositoryFactoryClassName()
-
-
-
-
-
-
- -

-getModulePrefix

-
-protected String getModulePrefix()
-
-
-
Specified by:
getModulePrefix in class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
-
-
-
-
-
- -

-postProcess

-
-public void postProcess(BeanDefinitionBuilder builder,
-                        org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource config)
-
-
-
Specified by:
postProcess in interface org.springframework.data.repository.config.RepositoryConfigurationExtension
Overrides:
postProcess in class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
-
-
-
-
-
- -

-postProcess

-
-public void postProcess(BeanDefinitionBuilder builder,
-                        org.springframework.data.repository.config.XmlRepositoryConfigurationSource config)
-
-
-
Specified by:
postProcess in interface org.springframework.data.repository.config.RepositoryConfigurationExtension
Overrides:
postProcess in class org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/EnableElasticsearchRepositories.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/EnableElasticsearchRepositories.html deleted file mode 100644 index 973c5dd0..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/EnableElasticsearchRepositories.html +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - - -EnableElasticsearchRepositories (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.config -
-Annotation Type EnableElasticsearchRepositories

-
-
-
@Target(value=TYPE)
-@Retention(value=RUNTIME)
-@Documented
-@Inherited
-@Import(value=org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoriesRegistrar.class)
-public @interface EnableElasticsearchRepositories
- - -

-Annotation to enable Elasticsearch repositories. Will scan the package of the annotated configuration class for Spring Data - repositories by default. -

- -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Optional Element Summary
- Class<?>[]basePackageClasses - -
-          Type-safe alternative to basePackages() for specifying the packages to scan for annotated components.
- String[]basePackages - -
-          Base packages to scan for annotated components.
- StringelasticsearchTemplateRef - -
-          Configures the name of the ElasticsearchTemplate bean definition to be used to create repositories discovered - through this annotation.
- ComponentScan.Filter[]excludeFilters - -
-          Specifies which types are not eligible for component scanning.
- ComponentScan.Filter[]includeFilters - -
-          Specifies which types are eligible for component scanning.
- StringnamedQueriesLocation - -
-          Configures the location of where to find the Spring Data named queries properties file.
- org.springframework.data.repository.query.QueryLookupStrategy.KeyqueryLookupStrategy - -
-          Returns the key of the QueryLookupStrategy to be used for lookup queries for query methods.
- Class<?>repositoryFactoryBeanClass - -
-          Returns the FactoryBean class to be used for each repository instance.
- StringrepositoryImplementationPostfix - -
-          Returns the postfix to be used when looking up custom repository implementations.
- String[]value - -
-          Alias for the basePackages() attribute.
-  -

-

-value

-
-public abstract String[] value
-
-
Alias for the basePackages() attribute. Allows for more concise annotation declarations e.g.: - @EnableElasticsearchRepositories("org.my.pkg") instead of @EnableElasticsearchRepositories(basePackages="org.my.pkg"). -

-

-
-
-
-
-
-
Default:
{}
-
-
-
- -

-basePackages

-
-public abstract String[] basePackages
-
-
Base packages to scan for annotated components. value() is an alias for (and mutually exclusive with) this - attribute. Use basePackageClasses() for a type-safe alternative to String-based package names. -

-

-
-
-
-
-
-
Default:
{}
-
-
-
- -

-basePackageClasses

-
-public abstract Class<?>[] basePackageClasses
-
-
Type-safe alternative to basePackages() for specifying the packages to scan for annotated components. The - package of each class specified will be scanned. Consider creating a special no-op marker class or interface in - each package that serves no purpose other than being referenced by this attribute. -

-

-
-
-
-
-
-
Default:
{}
-
-
-
- -

-includeFilters

-
-public abstract ComponentScan.Filter[] includeFilters
-
-
Specifies which types are eligible for component scanning. Further narrows the set of candidate components from - everything in basePackages() to everything in the base packages that matches the given filter or filters. -

-

-
-
-
-
-
-
Default:
{}
-
-
-
- -

-excludeFilters

-
-public abstract ComponentScan.Filter[] excludeFilters
-
-
Specifies which types are not eligible for component scanning. -

-

-
-
-
-
-
-
Default:
{}
-
-
-
- -

-repositoryImplementationPostfix

-
-public abstract String repositoryImplementationPostfix
-
-
Returns the postfix to be used when looking up custom repository implementations. Defaults to Impl. So - for a repository named PersonRepository the corresponding implementation class will be looked up scanning - for PersonRepositoryImpl. -

-

-
-
-
- -
Returns:
-
-
Default:
"Impl"
-
-
-
- -

-namedQueriesLocation

-
-public abstract String namedQueriesLocation
-
-
Configures the location of where to find the Spring Data named queries properties file. Will default to - META-INFO/elasticsearch-named-queries.properties. -

-

-
-
-
- -
Returns:
-
-
Default:
""
-
-
-
- -

-queryLookupStrategy

-
-public abstract org.springframework.data.repository.query.QueryLookupStrategy.Key queryLookupStrategy
-
-
Returns the key of the QueryLookupStrategy to be used for lookup queries for query methods. Defaults to - QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND. -

-

-
-
-
- -
Returns:
-
-
Default:
org.springframework.data.repository.query.QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND
-
-
-
- -

-repositoryFactoryBeanClass

-
-public abstract Class<?> repositoryFactoryBeanClass
-
-
Returns the FactoryBean class to be used for each repository instance. Defaults to - ElasticsearchRepositoryFactoryBean. -

-

-
-
-
- -
Returns:
-
-
Default:
org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean.class
-
-
-
- -

-elasticsearchTemplateRef

-
-public abstract String elasticsearchTemplateRef
-
-
Configures the name of the ElasticsearchTemplate bean definition to be used to create repositories discovered - through this annotation. Defaults to elasticsearchTemplate. -

-

-
-
-
- -
Returns:
-
-
Default:
"elasticsearchTemplate"
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/class-use/ElasticsearchRepositoryConfigExtension.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/class-use/ElasticsearchRepositoryConfigExtension.html deleted file mode 100644 index 5bfa0c0d..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/class-use/ElasticsearchRepositoryConfigExtension.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension

-
-No usage of org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/class-use/EnableElasticsearchRepositories.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/class-use/EnableElasticsearchRepositories.html deleted file mode 100644 index ca7ab0d9..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/class-use/EnableElasticsearchRepositories.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories

-
-No usage of org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-frame.html deleted file mode 100644 index 57a79702..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-frame.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.config (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.repository.config - - - - -
-Classes  - -
-ElasticsearchRepositoryConfigExtension
- - - - - - -
-Annotation Types  - -
-EnableElasticsearchRepositories
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-summary.html deleted file mode 100644 index abdf421b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-summary.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.config (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.repository.config -

- - - - - - - - - -
-Class Summary
ElasticsearchRepositoryConfigExtensionRepositoryConfigurationExtension implementation to configure Elasticsearch repository configuration support, - evaluating the EnableElasticsearchRepositories annotation or the equivalent XML element.
-  - -

- - - - - - - - - -
-Annotation Types Summary
EnableElasticsearchRepositoriesAnnotation to enable Elasticsearch repositories.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-tree.html deleted file mode 100644 index 952919a1..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-tree.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.config Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.repository.config -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Annotation Type Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-use.html deleted file mode 100644 index ea149cf2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/config/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.repository.config (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.repository.config

-
-No usage of org.springframework.data.elasticsearch.repository.config -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/repository/package-frame.html deleted file mode 100644 index d9fcb63e..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/package-frame.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.repository - - - - -
-Interfaces  - -
-ElasticsearchCrudRepository -
-ElasticsearchRepository
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/repository/package-summary.html deleted file mode 100644 index 7905c490..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.repository -

- - - - - - - - - - - - - -
-Interface Summary
ElasticsearchCrudRepository<T,ID extends Serializable> 
ElasticsearchRepository<T,ID extends Serializable> 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/repository/package-tree.html deleted file mode 100644 index a73c89e7..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/package-tree.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.repository -

-
-
-
Package Hierarchies:
All Packages
-
-

-Interface Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/repository/package-use.html deleted file mode 100644 index cecba5df..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/package-use.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.repository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.repository

-
- - - - - - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.repository
org.springframework.data.elasticsearch.repository  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.repository used by org.springframework.data.elasticsearch.repository
ElasticsearchCrudRepository - -
-           
-  -

- - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.repository used by org.springframework.data.elasticsearch.repository.support
ElasticsearchCrudRepository - -
-           
ElasticsearchRepository - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/AbstractElasticsearchRepositoryQuery.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/AbstractElasticsearchRepositoryQuery.html deleted file mode 100644 index 7ef206a2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/AbstractElasticsearchRepositoryQuery.html +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - - -AbstractElasticsearchRepositoryQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.query -
-Class AbstractElasticsearchRepositoryQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
-
-
-
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
-
-
-
Direct Known Subclasses:
ElasticsearchPartQuery, ElasticsearchStringQuery
-
-
-
-
public abstract class AbstractElasticsearchRepositoryQuery
extends Object
implements org.springframework.data.repository.query.RepositoryQuery
- - -

-


- -

- - - - - - - - - - - - - - - -
-Field Summary
-protected  ElasticsearchOperationselasticsearchOperations - -
-           
-protected  ElasticsearchQueryMethodqueryMethod - -
-           
-  - - - - - - - - - - -
-Constructor Summary
AbstractElasticsearchRepositoryQuery(ElasticsearchQueryMethod queryMethod, - ElasticsearchOperations elasticsearchOperations) - -
-           
-  - - - - - - - - - - - -
-Method Summary
- org.springframework.data.repository.query.QueryMethodgetQueryMethod() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.query.RepositoryQuery
execute
-  -

- - - - - - - - -
-Field Detail
- -

-queryMethod

-
-protected ElasticsearchQueryMethod queryMethod
-
-
-
-
-
- -

-elasticsearchOperations

-
-protected ElasticsearchOperations elasticsearchOperations
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-AbstractElasticsearchRepositoryQuery

-
-public AbstractElasticsearchRepositoryQuery(ElasticsearchQueryMethod queryMethod,
-                                            ElasticsearchOperations elasticsearchOperations)
-
-
- - - - - - - - -
-Method Detail
- -

-getQueryMethod

-
-public org.springframework.data.repository.query.QueryMethod getQueryMethod()
-
-
-
Specified by:
getQueryMethod in interface org.springframework.data.repository.query.RepositoryQuery
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchPartQuery.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchPartQuery.html deleted file mode 100644 index cb114ce1..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchPartQuery.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - - - -ElasticsearchPartQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.query -
-Class ElasticsearchPartQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
-      extended by org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery
-
-
-
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
-
-
-
-
public class ElasticsearchPartQuery
extends AbstractElasticsearchRepositoryQuery
- - -

-


- -

- - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
elasticsearchOperations, queryMethod
-  - - - - - - - - - - -
-Constructor Summary
ElasticsearchPartQuery(ElasticsearchQueryMethod method, - ElasticsearchOperations elasticsearchOperations) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- CriteriaQuerycreateQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor) - -
-           
- Objectexecute(Object[] parameters) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
getQueryMethod
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchPartQuery

-
-public ElasticsearchPartQuery(ElasticsearchQueryMethod method,
-                              ElasticsearchOperations elasticsearchOperations)
-
-
- - - - - - - - -
-Method Detail
- -

-execute

-
-public Object execute(Object[] parameters)
-
-
-
-
-
-
- -

-createQuery

-
-public CriteriaQuery createQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchQueryMethod.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchQueryMethod.html deleted file mode 100644 index ad9596c7..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchQueryMethod.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - - -ElasticsearchQueryMethod (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.query -
-Class ElasticsearchQueryMethod

-
-java.lang.Object
-  extended by org.springframework.data.repository.query.QueryMethod
-      extended by org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod
-
-
-
-
public class ElasticsearchQueryMethod
extends org.springframework.data.repository.query.QueryMethod
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ElasticsearchQueryMethod(Method method, - org.springframework.data.repository.core.RepositoryMetadata metadata, - ElasticsearchEntityInformationCreator elasticsearchEntityInformationCreator) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- StringgetAnnotatedQuery() - -
-           
- booleanhasAnnotatedQuery() - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.repository.query.QueryMethod
createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, toString
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchQueryMethod

-
-public ElasticsearchQueryMethod(Method method,
-                                org.springframework.data.repository.core.RepositoryMetadata metadata,
-                                ElasticsearchEntityInformationCreator elasticsearchEntityInformationCreator)
-
-
- - - - - - - - -
-Method Detail
- -

-hasAnnotatedQuery

-
-public boolean hasAnnotatedQuery()
-
-
-
-
-
-
- -

-getAnnotatedQuery

-
-public String getAnnotatedQuery()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchStringQuery.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchStringQuery.html deleted file mode 100644 index b3e6967c..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/ElasticsearchStringQuery.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - - -ElasticsearchStringQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.query -
-Class ElasticsearchStringQuery

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
-      extended by org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery
-
-
-
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
-
-
-
-
public class ElasticsearchStringQuery
extends AbstractElasticsearchRepositoryQuery
- - -

-


- -

- - - - - - - -
-Field Summary
- - - - - - - -
Fields inherited from class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
elasticsearchOperations, queryMethod
-  - - - - - - - - - - -
-Constructor Summary
ElasticsearchStringQuery(ElasticsearchQueryMethod queryMethod, - ElasticsearchOperations elasticsearchOperations, - String query) - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
-protected  StringQuerycreateQuery(org.springframework.data.repository.query.ParametersParameterAccessor parameterAccessor) - -
-           
- Objectexecute(Object[] parameters) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery
getQueryMethod
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchStringQuery

-
-public ElasticsearchStringQuery(ElasticsearchQueryMethod queryMethod,
-                                ElasticsearchOperations elasticsearchOperations,
-                                String query)
-
-
- - - - - - - - -
-Method Detail
- -

-execute

-
-public Object execute(Object[] parameters)
-
-
-
-
-
-
- -

-createQuery

-
-protected StringQuery createQuery(org.springframework.data.repository.query.ParametersParameterAccessor parameterAccessor)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/AbstractElasticsearchRepositoryQuery.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/AbstractElasticsearchRepositoryQuery.html deleted file mode 100644 index 59524b07..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/AbstractElasticsearchRepositoryQuery.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery

-
- - - - - - - - - -
-Packages that use AbstractElasticsearchRepositoryQuery
org.springframework.data.elasticsearch.repository.query  
-  -

- - - - - -
-Uses of AbstractElasticsearchRepositoryQuery in org.springframework.data.elasticsearch.repository.query
-  -

- - - - - - - - - - - - - -
Subclasses of AbstractElasticsearchRepositoryQuery in org.springframework.data.elasticsearch.repository.query
- classElasticsearchPartQuery - -
-           
- classElasticsearchStringQuery - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchPartQuery.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchPartQuery.html deleted file mode 100644 index eb7f15ea..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchPartQuery.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery

-
-No usage of org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchQueryMethod.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchQueryMethod.html deleted file mode 100644 index e22c36eb..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchQueryMethod.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod

-
- - - - - - - - - -
-Packages that use ElasticsearchQueryMethod
org.springframework.data.elasticsearch.repository.query  
-  -

- - - - - -
-Uses of ElasticsearchQueryMethod in org.springframework.data.elasticsearch.repository.query
-  -

- - - - - - - - - -
Fields in org.springframework.data.elasticsearch.repository.query declared as ElasticsearchQueryMethod
-protected  ElasticsearchQueryMethodAbstractElasticsearchRepositoryQuery.queryMethod - -
-           
-  -

- - - - - - - - - - - - - - -
Constructors in org.springframework.data.elasticsearch.repository.query with parameters of type ElasticsearchQueryMethod
AbstractElasticsearchRepositoryQuery(ElasticsearchQueryMethod queryMethod, - ElasticsearchOperations elasticsearchOperations) - -
-           
ElasticsearchPartQuery(ElasticsearchQueryMethod method, - ElasticsearchOperations elasticsearchOperations) - -
-           
ElasticsearchStringQuery(ElasticsearchQueryMethod queryMethod, - ElasticsearchOperations elasticsearchOperations, - String query) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchStringQuery.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchStringQuery.html deleted file mode 100644 index 814b059a..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/class-use/ElasticsearchStringQuery.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery

-
-No usage of org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-frame.html deleted file mode 100644 index 4f34c9db..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-frame.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.repository.query - - - - -
-Classes  - -
-AbstractElasticsearchRepositoryQuery -
-ElasticsearchPartQuery -
-ElasticsearchQueryMethod -
-ElasticsearchStringQuery
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-summary.html deleted file mode 100644 index dfdc0463..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-summary.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.repository.query -

- - - - - - - - - - - - - - - - - - - - - -
-Class Summary
AbstractElasticsearchRepositoryQuery 
ElasticsearchPartQuery 
ElasticsearchQueryMethod 
ElasticsearchStringQuery 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-tree.html deleted file mode 100644 index 72697265..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-tree.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.query Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.repository.query -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-use.html deleted file mode 100644 index 2cf2976e..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/package-use.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.repository.query (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.repository.query

-
- - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.repository.query
org.springframework.data.elasticsearch.repository.query  
-  -

- - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.repository.query used by org.springframework.data.elasticsearch.repository.query
AbstractElasticsearchRepositoryQuery - -
-           
ElasticsearchQueryMethod - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/ElasticsearchQueryCreator.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/ElasticsearchQueryCreator.html deleted file mode 100644 index a7597d9b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/ElasticsearchQueryCreator.html +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - - -ElasticsearchQueryCreator (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.query.parser -
-Class ElasticsearchQueryCreator

-
-java.lang.Object
-  extended by org.springframework.data.repository.query.parser.AbstractQueryCreator<CriteriaQuery,CriteriaQuery>
-      extended by org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator
-
-
-
-
public class ElasticsearchQueryCreator
extends org.springframework.data.repository.query.parser.AbstractQueryCreator<CriteriaQuery,CriteriaQuery>
- - -

-


- -

- - - - - - - - - - - - - - -
-Constructor Summary
ElasticsearchQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, - org.springframework.data.mapping.context.MappingContext<?,ElasticsearchPersistentProperty> context) - -
-           
ElasticsearchQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, - org.springframework.data.repository.query.ParameterAccessor parameters, - org.springframework.data.mapping.context.MappingContext<?,ElasticsearchPersistentProperty> context) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
-protected  CriteriaQueryand(org.springframework.data.repository.query.parser.Part part, - CriteriaQuery base, - Iterator<Object> iterator) - -
-           
-protected  CriteriaQuerycomplete(CriteriaQuery query, - org.springframework.data.domain.Sort sort) - -
-           
-protected  CriteriaQuerycreate(org.springframework.data.repository.query.parser.Part part, - Iterator<Object> iterator) - -
-           
-protected  CriteriaQueryor(CriteriaQuery base, - CriteriaQuery query) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.repository.query.parser.AbstractQueryCreator
createQuery, createQuery
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchQueryCreator

-
-public ElasticsearchQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
-                                 org.springframework.data.repository.query.ParameterAccessor parameters,
-                                 org.springframework.data.mapping.context.MappingContext<?,ElasticsearchPersistentProperty> context)
-
-
-
- -

-ElasticsearchQueryCreator

-
-public ElasticsearchQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
-                                 org.springframework.data.mapping.context.MappingContext<?,ElasticsearchPersistentProperty> context)
-
-
- - - - - - - - -
-Method Detail
- -

-create

-
-protected CriteriaQuery create(org.springframework.data.repository.query.parser.Part part,
-                               Iterator<Object> iterator)
-
-
-
Specified by:
create in class org.springframework.data.repository.query.parser.AbstractQueryCreator<CriteriaQuery,CriteriaQuery>
-
-
-
-
-
-
- -

-and

-
-protected CriteriaQuery and(org.springframework.data.repository.query.parser.Part part,
-                            CriteriaQuery base,
-                            Iterator<Object> iterator)
-
-
-
Specified by:
and in class org.springframework.data.repository.query.parser.AbstractQueryCreator<CriteriaQuery,CriteriaQuery>
-
-
-
-
-
-
- -

-or

-
-protected CriteriaQuery or(CriteriaQuery base,
-                           CriteriaQuery query)
-
-
-
Specified by:
or in class org.springframework.data.repository.query.parser.AbstractQueryCreator<CriteriaQuery,CriteriaQuery>
-
-
-
-
-
-
- -

-complete

-
-protected CriteriaQuery complete(CriteriaQuery query,
-                                 org.springframework.data.domain.Sort sort)
-
-
-
Specified by:
complete in class org.springframework.data.repository.query.parser.AbstractQueryCreator<CriteriaQuery,CriteriaQuery>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/class-use/ElasticsearchQueryCreator.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/class-use/ElasticsearchQueryCreator.html deleted file mode 100644 index a66d2dc6..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/class-use/ElasticsearchQueryCreator.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator

-
-No usage of org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-frame.html deleted file mode 100644 index 6bb3d816..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-frame.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.query.parser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.repository.query.parser - - - - -
-Classes  - -
-ElasticsearchQueryCreator
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-summary.html deleted file mode 100644 index 822e6c7e..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.query.parser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.repository.query.parser -

- - - - - - - - - -
-Class Summary
ElasticsearchQueryCreator 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-tree.html deleted file mode 100644 index a5e55ded..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-tree.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.query.parser Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.repository.query.parser -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-use.html deleted file mode 100644 index 523da3e9..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/query/parser/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.repository.query.parser (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.repository.query.parser

-
-No usage of org.springframework.data.elasticsearch.repository.query.parser -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformation.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformation.html deleted file mode 100644 index d69b33d4..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformation.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - - -ElasticsearchEntityInformation (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Interface ElasticsearchEntityInformation<T,ID extends Serializable>

-
-
Type Parameters:
T -
ID -
-
-
All Superinterfaces:
org.springframework.data.repository.core.EntityInformation<T,ID>, org.springframework.data.repository.core.EntityMetadata<T>
-
-
-
All Known Implementing Classes:
MappingElasticsearchEntityInformation
-
-
-
-
public interface ElasticsearchEntityInformation<T,ID extends Serializable>
extends org.springframework.data.repository.core.EntityInformation<T,ID>
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - -
-Method Summary
- StringgetIdAttribute() - -
-           
- StringgetIndexName() - -
-           
- StringgetType() - -
-           
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getId, getIdType, isNew
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
-  -

- - - - - - - - -
-Method Detail
- -

-getIdAttribute

-
-String getIdAttribute()
-
-
-
-
-
-
-
-
-
- -

-getIndexName

-
-String getIndexName()
-
-
-
-
-
-
-
-
-
- -

-getType

-
-String getType()
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreator.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreator.html deleted file mode 100644 index 05a70c03..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreator.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - -ElasticsearchEntityInformationCreator (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Interface ElasticsearchEntityInformationCreator

-
-
All Known Implementing Classes:
ElasticsearchEntityInformationCreatorImpl
-
-
-
-
public interface ElasticsearchEntityInformationCreator
- - -

-


- -

- - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T,ID extends Serializable> -
-ElasticsearchEntityInformation<T,ID>
-
getEntityInformation(Class<T> domainClass) - -
-           
-  -

- - - - - - - - -
-Method Detail
- -

-getEntityInformation

-
-<T,ID extends Serializable> ElasticsearchEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImpl.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImpl.html deleted file mode 100644 index 08a4e21f..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImpl.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - -ElasticsearchEntityInformationCreatorImpl (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Class ElasticsearchEntityInformationCreatorImpl

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreatorImpl
-
-
-
All Implemented Interfaces:
ElasticsearchEntityInformationCreator
-
-
-
-
public class ElasticsearchEntityInformationCreatorImpl
extends Object
implements ElasticsearchEntityInformationCreator
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ElasticsearchEntityInformationCreatorImpl(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) - -
-           
-  - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T,ID extends Serializable> -
-ElasticsearchEntityInformation<T,ID>
-
getEntityInformation(Class<T> domainClass) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchEntityInformationCreatorImpl

-
-public ElasticsearchEntityInformationCreatorImpl(org.springframework.data.mapping.context.MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext)
-
-
- - - - - - - - -
-Method Detail
- -

-getEntityInformation

-
-public <T,ID extends Serializable> ElasticsearchEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
-
-
-
Specified by:
getEntityInformation in interface ElasticsearchEntityInformationCreator
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactory.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactory.html deleted file mode 100644 index 503d5464..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactory.html +++ /dev/null @@ -1,364 +0,0 @@ - - - - - - - -ElasticsearchRepositoryFactory (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Class ElasticsearchRepositoryFactory

-
-java.lang.Object
-  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
-      extended by org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory
-
-
-
-
public class ElasticsearchRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
- - -

-Factory to create ElasticsearchRepository -

- -

-


- -

- - - - - - - -
-Nested Class Summary
- - - - - - - -
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor
-  - - - - - - - - - - - -
-Constructor Summary
ElasticsearchRepositoryFactory(ElasticsearchOperations elasticsearchOperations) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- - - - - -
-<T,ID extends Serializable> -
-ElasticsearchEntityInformation<T,ID>
-
getEntityInformation(Class<T> domainClass) - -
-           
-protected  org.springframework.data.repository.query.QueryLookupStrategygetQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key) - -
-           
-protected  Class<?>getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - -
-           
-protected  ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata) - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setNamedQueries, setQueryLookupStrategyKey, validate
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchRepositoryFactory

-
-public ElasticsearchRepositoryFactory(ElasticsearchOperations elasticsearchOperations)
-
-
- - - - - - - - -
-Method Detail
- -

-getEntityInformation

-
-public <T,ID extends Serializable> ElasticsearchEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
-
-
-
Specified by:
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport
-
-
-
-
-
-
- -

-getTargetRepository

-
-protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
-
-
-
Specified by:
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport
-
-
-
-
-
-
- -

-getRepositoryBaseClass

-
-protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
-
-
-
Specified by:
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupport
-
-
-
-
-
-
- -

-getQueryLookupStrategy

-
-protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
-
-
-
Overrides:
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupport
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactoryBean.html deleted file mode 100644 index 2199e7ab..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactoryBean.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - - -ElasticsearchRepositoryFactoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Class ElasticsearchRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

-
-java.lang.Object
-  extended by org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
-      extended by org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean<T,S,ID>
-
-
-
All Implemented Interfaces:
FactoryBean<T>, InitializingBean, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>
-
-
-
-
public class ElasticsearchRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
- - -

-Spring FactoryBean implementation to ease container based configuration for XML namespace and JavaConfig. -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ElasticsearchRepositoryFactoryBean() - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidafterPropertiesSet() - -
-           
-protected  org.springframework.data.repository.core.support.RepositoryFactorySupportcreateRepositoryFactory() - -
-           
- voidsetElasticsearchOperations(ElasticsearchOperations operations) - -
-          Configures the ElasticsearchOperations to be used to create Elasticsearch repositories.
- - - - - - - -
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
getEntityInformation, getObject, getObjectType, getQueryMethods, getRepositoryInformation, isSingleton, setCustomImplementation, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterface
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ElasticsearchRepositoryFactoryBean

-
-public ElasticsearchRepositoryFactoryBean()
-
-
- - - - - - - - -
-Method Detail
- -

-setElasticsearchOperations

-
-public void setElasticsearchOperations(ElasticsearchOperations operations)
-
-
Configures the ElasticsearchOperations to be used to create Elasticsearch repositories. -

-

-
Parameters:
operations - the operations to set
-
-
-
- -

-afterPropertiesSet

-
-public void afterPropertiesSet()
-
-
-
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
-
-
-
-
-
-
- -

-createRepositoryFactory

-
-protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()
-
-
-
Specified by:
createRepositoryFactory in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/MappingElasticsearchEntityInformation.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/MappingElasticsearchEntityInformation.html deleted file mode 100644 index 65767df1..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/MappingElasticsearchEntityInformation.html +++ /dev/null @@ -1,399 +0,0 @@ - - - - - - - -MappingElasticsearchEntityInformation (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Class MappingElasticsearchEntityInformation<T,ID extends Serializable>

-
-java.lang.Object
-  extended by org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
-      extended by org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation<T,ID>
-
-
-
Type Parameters:
T -
ID -
-
-
All Implemented Interfaces:
ElasticsearchEntityInformation<T,ID>, org.springframework.data.repository.core.EntityInformation<T,ID>, org.springframework.data.repository.core.EntityMetadata<T>
-
-
-
-
public class MappingElasticsearchEntityInformation<T,ID extends Serializable>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
implements ElasticsearchEntityInformation<T,ID>
- - -

-Elasticsearch specific implementation of AbstractEntityInformation -

- -

-


- -

- - - - - - - - - - - - - - -
-Constructor Summary
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity) - -
-           
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity, - String indexName, - String type) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- IDgetId(T entity) - -
-           
- StringgetIdAttribute() - -
-           
- Class<ID>getIdType() - -
-           
- StringgetIndexName() - -
-           
- StringgetType() - -
-           
- - - - - - - -
Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNew
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
isNew
- - - - - - - -
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
-  -

- - - - - - - - -
-Constructor Detail
- -

-MappingElasticsearchEntityInformation

-
-public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity)
-
-
-
- -

-MappingElasticsearchEntityInformation

-
-public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity,
-                                             String indexName,
-                                             String type)
-
-
- - - - - - - - -
-Method Detail
- -

-getId

-
-public ID getId(T entity)
-
-
-
Specified by:
getId in interface org.springframework.data.repository.core.EntityInformation<T,ID extends Serializable>
-
-
-
-
-
-
- -

-getIdType

-
-public Class<ID> getIdType()
-
-
-
Specified by:
getIdType in interface org.springframework.data.repository.core.EntityInformation<T,ID extends Serializable>
-
-
-
-
-
-
- -

-getIdAttribute

-
-public String getIdAttribute()
-
-
-
Specified by:
getIdAttribute in interface ElasticsearchEntityInformation<T,ID extends Serializable>
-
-
-
-
-
-
- -

-getIndexName

-
-public String getIndexName()
-
-
-
Specified by:
getIndexName in interface ElasticsearchEntityInformation<T,ID extends Serializable>
-
-
-
-
-
-
- -

-getType

-
-public String getType()
-
-
-
Specified by:
getType in interface ElasticsearchEntityInformation<T,ID extends Serializable>
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepository.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepository.html deleted file mode 100644 index 3adc4913..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepository.html +++ /dev/null @@ -1,796 +0,0 @@ - - - - - - - -SimpleElasticsearchRepository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
- -

- -org.springframework.data.elasticsearch.repository.support -
-Class SimpleElasticsearchRepository<T>

-
-java.lang.Object
-  extended by org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository<T>
-
-
-
Type Parameters:
T -
-
-
All Implemented Interfaces:
ElasticsearchCrudRepository<T,String>, ElasticsearchRepository<T,String>, org.springframework.data.repository.CrudRepository<T,String>, org.springframework.data.repository.PagingAndSortingRepository<T,String>, org.springframework.data.repository.Repository<T,String>
-
-
-
-
public class SimpleElasticsearchRepository<T>
extends Object
implements ElasticsearchRepository<T,String>
- - -

-Elasticsearch specific repository implementation. Likely to be used as target within ElasticsearchRepositoryFactory -

- -

-


- -

- - - - - - - - - - - - - - - - - -
-Constructor Summary
SimpleElasticsearchRepository() - -
-           
SimpleElasticsearchRepository(ElasticsearchEntityInformation<T,String> metadata, - ElasticsearchOperations elasticsearchOperations) - -
-           
SimpleElasticsearchRepository(ElasticsearchOperations elasticsearchOperations) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- longcount() - -
-           
- voidcreateIndex() - -
-           
- voiddelete(Iterable<? extends T> entities) - -
-           
- voiddelete(String id) - -
-           
- voiddelete(T entity) - -
-           
- voiddeleteAll() - -
-           
- booleanexists(String id) - -
-           
- Iterable<T>findAll() - -
-           
- Iterable<T>findAll(Iterable<String> ids) - -
-           
- org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable) - -
-           
- Iterable<T>findAll(org.springframework.data.domain.Sort sort) - -
-           
- TfindOne(String id) - -
-           
- Class<T>getEntityClass() - -
-           
- - - - - -
-<S extends T> -
-S
-
index(S entity) - -
-           
- - - - - -
-<S extends T> -
-Iterable<S>
-
save(Iterable<S> entities) - -
-           
- - - - - -
-<S extends T> -
-List<S>
-
save(List<S> entities) - -
-           
- - - - - -
-<S extends T> -
-S
-
save(S entity) - -
-           
- Iterable<T>search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery) - -
-           
- org.springframework.data.domain.Page<T>search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery, - org.springframework.data.domain.Pageable pageable) - -
-           
- org.springframework.data.domain.Page<T>search(SearchQuery query) - -
-           
- voidsetElasticsearchOperations(ElasticsearchOperations elasticsearchOperations) - -
-           
- voidsetEntityClass(Class<T> entityClass) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-SimpleElasticsearchRepository

-
-public SimpleElasticsearchRepository()
-
-
-
- -

-SimpleElasticsearchRepository

-
-public SimpleElasticsearchRepository(ElasticsearchOperations elasticsearchOperations)
-
-
-
- -

-SimpleElasticsearchRepository

-
-public SimpleElasticsearchRepository(ElasticsearchEntityInformation<T,String> metadata,
-                                     ElasticsearchOperations elasticsearchOperations)
-
-
- - - - - - - - -
-Method Detail
- -

-createIndex

-
-@PostConstruct
-public void createIndex()
-
-
-
-
-
-
-
-
-
- -

-findOne

-
-public T findOne(String id)
-
-
-
Specified by:
findOne in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-findAll

-
-public Iterable<T> findAll()
-
-
-
Specified by:
findAll in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-findAll

-
-public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
-
-
-
Specified by:
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,String>
-
-
-
-
-
-
- -

-findAll

-
-public Iterable<T> findAll(org.springframework.data.domain.Sort sort)
-
-
-
Specified by:
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,String>
-
-
-
-
-
-
- -

-findAll

-
-public Iterable<T> findAll(Iterable<String> ids)
-
-
-
Specified by:
findAll in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-count

-
-public long count()
-
-
-
Specified by:
count in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-save

-
-public <S extends T> S save(S entity)
-
-
-
Specified by:
save in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-save

-
-public <S extends T> List<S> save(List<S> entities)
-
-
-
Specified by:
save in interface ElasticsearchCrudRepository<T,String>
-
-
-
-
-
-
- -

-index

-
-public <S extends T> S index(S entity)
-
-
-
Specified by:
index in interface ElasticsearchRepository<T,String>
-
-
-
-
-
-
- -

-save

-
-public <S extends T> Iterable<S> save(Iterable<S> entities)
-
-
-
Specified by:
save in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-exists

-
-public boolean exists(String id)
-
-
-
Specified by:
exists in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-search

-
-public Iterable<T> search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery)
-
-
-
Specified by:
search in interface ElasticsearchRepository<T,String>
-
-
-
-
-
-
- -

-search

-
-public org.springframework.data.domain.Page<T> search(org.elasticsearch.index.query.QueryBuilder elasticsearchQuery,
-                                                      org.springframework.data.domain.Pageable pageable)
-
-
-
Specified by:
search in interface ElasticsearchRepository<T,String>
-
-
-
-
-
-
- -

-search

-
-public org.springframework.data.domain.Page<T> search(SearchQuery query)
-
-
-
Specified by:
search in interface ElasticsearchRepository<T,String>
-
-
-
-
-
-
- -

-delete

-
-public void delete(String id)
-
-
-
Specified by:
delete in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-delete

-
-public void delete(T entity)
-
-
-
Specified by:
delete in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-delete

-
-public void delete(Iterable<? extends T> entities)
-
-
-
Specified by:
delete in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-deleteAll

-
-public void deleteAll()
-
-
-
Specified by:
deleteAll in interface org.springframework.data.repository.CrudRepository<T,String>
-
-
-
-
-
-
- -

-getEntityClass

-
-public Class<T> getEntityClass()
-
-
-
-
-
-
-
-
-
- -

-setEntityClass

-
-public final void setEntityClass(Class<T> entityClass)
-
-
-
-
-
-
-
-
-
- -

-setElasticsearchOperations

-
-public final void setElasticsearchOperations(ElasticsearchOperations elasticsearchOperations)
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformation.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformation.html deleted file mode 100644 index a791bb35..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformation.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformation (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformation

-
- - - - - - - - - -
-Packages that use ElasticsearchEntityInformation
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchEntityInformation in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.repository.support that implement ElasticsearchEntityInformation
- classMappingElasticsearchEntityInformation<T,ID extends Serializable> - -
-          Elasticsearch specific implementation of AbstractEntityInformation
-  -

- - - - - - - - - - - - - - - - - -
Methods in org.springframework.data.elasticsearch.repository.support that return ElasticsearchEntityInformation
- - - - - -
-<T,ID extends Serializable> -
-ElasticsearchEntityInformation<T,ID>
-
ElasticsearchRepositoryFactory.getEntityInformation(Class<T> domainClass) - -
-           
- - - - - -
-<T,ID extends Serializable> -
-ElasticsearchEntityInformation<T,ID>
-
ElasticsearchEntityInformationCreatorImpl.getEntityInformation(Class<T> domainClass) - -
-           
- - - - - -
-<T,ID extends Serializable> -
-ElasticsearchEntityInformation<T,ID>
-
ElasticsearchEntityInformationCreator.getEntityInformation(Class<T> domainClass) - -
-           
-  -

- - - - - - - - -
Constructors in org.springframework.data.elasticsearch.repository.support with parameters of type ElasticsearchEntityInformation
SimpleElasticsearchRepository(ElasticsearchEntityInformation<T,String> metadata, - ElasticsearchOperations elasticsearchOperations) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformationCreator.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformationCreator.html deleted file mode 100644 index 4338bdf2..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformationCreator.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - -Uses of Interface org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreator (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Interface
org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreator

-
- - - - - - - - - - - - - -
-Packages that use ElasticsearchEntityInformationCreator
org.springframework.data.elasticsearch.repository.query  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - -
-Uses of ElasticsearchEntityInformationCreator in org.springframework.data.elasticsearch.repository.query
-  -

- - - - - - - - -
Constructors in org.springframework.data.elasticsearch.repository.query with parameters of type ElasticsearchEntityInformationCreator
ElasticsearchQueryMethod(Method method, - org.springframework.data.repository.core.RepositoryMetadata metadata, - ElasticsearchEntityInformationCreator elasticsearchEntityInformationCreator) - -
-           
-  -

- - - - - -
-Uses of ElasticsearchEntityInformationCreator in org.springframework.data.elasticsearch.repository.support
-  -

- - - - - - - - - -
Classes in org.springframework.data.elasticsearch.repository.support that implement ElasticsearchEntityInformationCreator
- classElasticsearchEntityInformationCreatorImpl - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformationCreatorImpl.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformationCreatorImpl.html deleted file mode 100644 index 6dc23902..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchEntityInformationCreatorImpl.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreatorImpl (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreatorImpl

-
-No usage of org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreatorImpl -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchRepositoryFactory.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchRepositoryFactory.html deleted file mode 100644 index e2ebb0fd..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchRepositoryFactory.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory

-
-No usage of org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchRepositoryFactoryBean.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchRepositoryFactoryBean.html deleted file mode 100644 index c637bcf8..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/ElasticsearchRepositoryFactoryBean.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean

-
-No usage of org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/MappingElasticsearchEntityInformation.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/MappingElasticsearchEntityInformation.html deleted file mode 100644 index 90f45a3b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/MappingElasticsearchEntityInformation.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation

-
-No usage of org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/SimpleElasticsearchRepository.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/SimpleElasticsearchRepository.html deleted file mode 100644 index 30ecbde5..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/class-use/SimpleElasticsearchRepository.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -Uses of Class org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Class
org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository

-
-No usage of org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-frame.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-frame.html deleted file mode 100644 index f320cf09..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-frame.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.support (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - -org.springframework.data.elasticsearch.repository.support - - - - -
-Interfaces  - -
-ElasticsearchEntityInformation -
-ElasticsearchEntityInformationCreator
- - - - - - -
-Classes  - -
-ElasticsearchEntityInformationCreatorImpl -
-ElasticsearchRepositoryFactory -
-ElasticsearchRepositoryFactoryBean -
-MappingElasticsearchEntityInformation -
-SimpleElasticsearchRepository
- - - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-summary.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-summary.html deleted file mode 100644 index b8fe9f7b..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-summary.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.support (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-

-Package org.springframework.data.elasticsearch.repository.support -

- - - - - - - - - - - - - -
-Interface Summary
ElasticsearchEntityInformation<T,ID extends Serializable> 
ElasticsearchEntityInformationCreator 
-  - -

- - - - - - - - - - - - - - - - - - - - - - - - - -
-Class Summary
ElasticsearchEntityInformationCreatorImpl 
ElasticsearchRepositoryFactoryFactory to create ElasticsearchRepository
ElasticsearchRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>Spring FactoryBean implementation to ease container based configuration for XML namespace and JavaConfig.
MappingElasticsearchEntityInformation<T,ID extends Serializable>Elasticsearch specific implementation of AbstractEntityInformation
SimpleElasticsearchRepository<T>Elasticsearch specific repository implementation.
-  - -

-

-
-
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-tree.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-tree.html deleted file mode 100644 index d90cc1f8..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-tree.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - - -org.springframework.data.elasticsearch.repository.support Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For Package org.springframework.data.elasticsearch.repository.support -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-use.html b/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-use.html deleted file mode 100644 index 1e881a27..00000000 --- a/site/apidocs/org/springframework/data/elasticsearch/repository/support/package-use.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - -Uses of Package org.springframework.data.elasticsearch.repository.support (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Uses of Package
org.springframework.data.elasticsearch.repository.support

-
- - - - - - - - - - - - - -
-Packages that use org.springframework.data.elasticsearch.repository.support
org.springframework.data.elasticsearch.repository.query  
org.springframework.data.elasticsearch.repository.support  
-  -

- - - - - - - - -
-Classes in org.springframework.data.elasticsearch.repository.support used by org.springframework.data.elasticsearch.repository.query
ElasticsearchEntityInformationCreator - -
-           
-  -

- - - - - - - - - - - -
-Classes in org.springframework.data.elasticsearch.repository.support used by org.springframework.data.elasticsearch.repository.support
ElasticsearchEntityInformation - -
-           
ElasticsearchEntityInformationCreator - -
-           
-  -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/overview-frame.html b/site/apidocs/overview-frame.html deleted file mode 100644 index 100c58f2..00000000 --- a/site/apidocs/overview-frame.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - -Overview List (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - - - - -
-Spring Data Elasticsearch
- - - - - -
All Classes -

- -Packages -
-org.springframework.data.elasticsearch -
-org.springframework.data.elasticsearch.annotations -
-org.springframework.data.elasticsearch.client -
-org.springframework.data.elasticsearch.config -
-org.springframework.data.elasticsearch.core -
-org.springframework.data.elasticsearch.core.convert -
-org.springframework.data.elasticsearch.core.mapping -
-org.springframework.data.elasticsearch.core.query -
-org.springframework.data.elasticsearch.repository -
-org.springframework.data.elasticsearch.repository.cdi -
-org.springframework.data.elasticsearch.repository.config -
-org.springframework.data.elasticsearch.repository.query -
-org.springframework.data.elasticsearch.repository.query.parser -
-org.springframework.data.elasticsearch.repository.support -
-

- -

-  - - diff --git a/site/apidocs/overview-summary.html b/site/apidocs/overview-summary.html deleted file mode 100644 index 5d85ba64..00000000 --- a/site/apidocs/overview-summary.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - -Overview (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Packages
org.springframework.data.elasticsearch 
org.springframework.data.elasticsearch.annotations 
org.springframework.data.elasticsearch.client 
org.springframework.data.elasticsearch.config 
org.springframework.data.elasticsearch.core 
org.springframework.data.elasticsearch.core.convert 
org.springframework.data.elasticsearch.core.mapping 
org.springframework.data.elasticsearch.core.query 
org.springframework.data.elasticsearch.repository 
org.springframework.data.elasticsearch.repository.cdi 
org.springframework.data.elasticsearch.repository.config 
org.springframework.data.elasticsearch.repository.query 
org.springframework.data.elasticsearch.repository.query.parser 
org.springframework.data.elasticsearch.repository.support 
- -


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/overview-tree.html b/site/apidocs/overview-tree.html deleted file mode 100644 index 1e562c97..00000000 --- a/site/apidocs/overview-tree.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - - - -Class Hierarchy (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Hierarchy For All Packages

-
-
-
Package Hierarchies:
org.springframework.data.elasticsearch, org.springframework.data.elasticsearch.annotations, org.springframework.data.elasticsearch.client, org.springframework.data.elasticsearch.config, org.springframework.data.elasticsearch.core, org.springframework.data.elasticsearch.core.convert, org.springframework.data.elasticsearch.core.mapping, org.springframework.data.elasticsearch.core.query, org.springframework.data.elasticsearch.repository, org.springframework.data.elasticsearch.repository.cdi, org.springframework.data.elasticsearch.repository.config, org.springframework.data.elasticsearch.repository.query, org.springframework.data.elasticsearch.repository.query.parser, org.springframework.data.elasticsearch.repository.support
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -

-Annotation Type Hierarchy -

- -

-Enum Hierarchy -

- -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/package-list b/site/apidocs/package-list deleted file mode 100644 index bf6e7c75..00000000 --- a/site/apidocs/package-list +++ /dev/null @@ -1,14 +0,0 @@ -org.springframework.data.elasticsearch -org.springframework.data.elasticsearch.annotations -org.springframework.data.elasticsearch.client -org.springframework.data.elasticsearch.config -org.springframework.data.elasticsearch.core -org.springframework.data.elasticsearch.core.convert -org.springframework.data.elasticsearch.core.mapping -org.springframework.data.elasticsearch.core.query -org.springframework.data.elasticsearch.repository -org.springframework.data.elasticsearch.repository.cdi -org.springframework.data.elasticsearch.repository.config -org.springframework.data.elasticsearch.repository.query -org.springframework.data.elasticsearch.repository.query.parser -org.springframework.data.elasticsearch.repository.support diff --git a/site/apidocs/resources/background.gif b/site/apidocs/resources/background.gif deleted file mode 100644 index f471940f..00000000 Binary files a/site/apidocs/resources/background.gif and /dev/null differ diff --git a/site/apidocs/resources/inherit.gif b/site/apidocs/resources/inherit.gif deleted file mode 100644 index c814867a..00000000 Binary files a/site/apidocs/resources/inherit.gif and /dev/null differ diff --git a/site/apidocs/resources/tab.gif b/site/apidocs/resources/tab.gif deleted file mode 100644 index 1a73a83b..00000000 Binary files a/site/apidocs/resources/tab.gif and /dev/null differ diff --git a/site/apidocs/resources/titlebar.gif b/site/apidocs/resources/titlebar.gif deleted file mode 100644 index 17443b3e..00000000 Binary files a/site/apidocs/resources/titlebar.gif and /dev/null differ diff --git a/site/apidocs/resources/titlebar_end.gif b/site/apidocs/resources/titlebar_end.gif deleted file mode 100644 index 3ad78d46..00000000 Binary files a/site/apidocs/resources/titlebar_end.gif and /dev/null differ diff --git a/site/apidocs/serialized-form.html b/site/apidocs/serialized-form.html deleted file mode 100644 index 13a350f6..00000000 --- a/site/apidocs/serialized-form.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - -Serialized Form (Spring Data Elasticsearch 1.0.0.BUILD-SNAPSHOT API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-
-

-Serialized Form

-
-
- - - - - -
-Package org.springframework.data.elasticsearch
- -

- - - - - -
-Class org.springframework.data.elasticsearch.ElasticsearchException extends RuntimeException implements Serializable
- -

- - - - - -
-Serialized Fields
- -

-failedDocuments

-
-Map<K,V> failedDocuments
-
-
-
-
- -

-


- - - - - - - - - - - - - - - -
-Spring Data Elasticsearch -
- - - -
-Copyright © 2012-2013 BioMed Central. All Rights Reserved. - - diff --git a/site/apidocs/stylesheet.css b/site/apidocs/stylesheet.css deleted file mode 100644 index cbd34286..00000000 --- a/site/apidocs/stylesheet.css +++ /dev/null @@ -1,29 +0,0 @@ -/* Javadoc style sheet */ - -/* Define colors, fonts and other style attributes here to override the defaults */ - -/* Page background color */ -body { background-color: #FFFFFF; color:#000000 } - -/* Headings */ -h1 { font-size: 145% } - -/* Table colors */ -.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ -.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ -.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ - -/* Font used in left-hand frame lists */ -.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } -.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } -.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } - -/* Navigation bar fonts and colors */ -.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ -.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ -.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} -.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} - -.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} -.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} - diff --git a/site/emma.zip b/site/emma.zip new file mode 100644 index 00000000..b39e9250 Binary files /dev/null and b/site/emma.zip differ diff --git a/site/emma/_files/0.html b/site/emma/_files/0.html deleted file mode 100644 index f35ddf02..00000000 --- a/site/emma/_files/0.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch0%   (0/1)0%   (0/5)0%   (0/27)0%   (0/11)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchException.java0%   (0/1)0%   (0/5)0%   (0/27)0%   (0/11)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1.html b/site/emma/_files/1.html deleted file mode 100644 index 18b1852e..00000000 --- a/site/emma/_files/1.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.repository.cdi]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.repository.cdi0%   (0/2)0%   (0/7)0%   (0/134)0%   (0/25)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchRepositoryBean.java0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/7)
ElasticsearchRepositoryExtension.java0%   (0/1)0%   (0/4)0%   (0/104)0%   (0/18)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/10.html b/site/emma/_files/10.html deleted file mode 100644 index b46b627e..00000000 --- a/site/emma/_files/10.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [CriteriaQuery.java]

nameclass, %method, %block, %line, %
CriteriaQuery.java100% (1/1)43%  (3/7)26%  (19/74)33%  (8/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CriteriaQuery100% (1/1)43%  (3/7)26%  (19/74)33%  (8/24)
CriteriaQuery (): void 0%   (0/1)0%   (0/3)0%   (0/2)
addCriteria (Criteria): CriteriaQuery 0%   (0/1)0%   (0/17)0%   (0/5)
fromQuery (CriteriaQuery): Query 0%   (0/1)0%   (0/6)0%   (0/1)
fromQuery (CriteriaQuery, CriteriaQuery): CriteriaQuery 0%   (0/1)0%   (0/24)0%   (0/7)
CriteriaQuery (Criteria, Pageable): void 100% (1/1)69%  (11/16)83%  (5/6)
CriteriaQuery (Criteria): void 100% (1/1)100% (5/5)100% (2/2)
getCriteria (): Criteria 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.query;
17 
18 
19import org.springframework.data.domain.Pageable;
20import org.springframework.util.Assert;
21 
22public class CriteriaQuery extends AbstractQuery implements Query {
23 
24    private Criteria criteria;
25    private CriteriaQuery() {
26    }
27 
28    public CriteriaQuery(Criteria criteria) {
29        this(criteria, null);
30    }
31 
32    public CriteriaQuery(Criteria criteria, Pageable pageable) {
33        this.criteria = criteria;
34        this.pageable = pageable;
35        if (pageable != null) {
36            this.addSort(pageable.getSort());
37        }
38    }
39 
40    public static final Query fromQuery(CriteriaQuery source) {
41        return fromQuery(source, new CriteriaQuery());
42    }
43 
44    public static <T extends CriteriaQuery> T fromQuery(CriteriaQuery source, T destination) {
45        if (source == null || destination == null) {
46            return null;
47        }
48 
49        if (source.getCriteria() != null) {
50            destination.addCriteria(source.getCriteria());
51        }
52 
53        if (source.getSort() != null) {
54            destination.addSort(source.getSort());
55        }
56 
57        return destination;
58    }
59 
60    @SuppressWarnings("unchecked")
61    public final <T extends CriteriaQuery> T addCriteria(Criteria criteria) {
62        Assert.notNull(criteria, "Cannot add null criteria.");
63        if (this.criteria == null) {
64            this.criteria = criteria;
65        } else {
66            this.criteria.and(criteria);
67        }
68        return (T) this;
69    }
70 
71    public Criteria getCriteria() {
72        return this.criteria;
73    }
74 
75}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/11.html b/site/emma/_files/11.html deleted file mode 100644 index cd231cb3..00000000 --- a/site/emma/_files/11.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [StringQuery.java]

nameclass, %method, %block, %line, %
StringQuery.java100% (1/1)75%  (3/4)60%  (18/30)62%  (8/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class StringQuery100% (1/1)75%  (3/4)60%  (18/30)62%  (8/13)
StringQuery (String, Pageable, Sort): void 0%   (0/1)0%   (0/12)0%   (0/5)
StringQuery (String): void 100% (1/1)100% (6/6)100% (3/3)
StringQuery (String, Pageable): void 100% (1/1)100% (9/9)100% (4/4)
getSource (): String 100% (1/1)100% (3/3)100% (1/1)

1package org.springframework.data.elasticsearch.core.query;
2 
3 
4import org.springframework.data.domain.Pageable;
5import org.springframework.data.domain.Sort;
6 
7public class StringQuery extends AbstractQuery{
8 
9    private String source;
10 
11    public StringQuery(String source) {
12        this.source = source;
13    }
14 
15    public StringQuery(String source, Pageable pageable) {
16        this.source = source;
17        this.pageable = pageable;
18    }
19 
20    public StringQuery(String source, Pageable pageable, Sort sort) {
21        this.pageable = pageable;
22        this.sort = sort;
23        this.source = source;
24    }
25 
26 
27    public String getSource() {
28        return source;
29    }
30 
31}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/12.html b/site/emma/_files/12.html deleted file mode 100644 index add1b786..00000000 --- a/site/emma/_files/12.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractQuery.java]

nameclass, %method, %block, %line, %
AbstractQuery.java100% (1/1)100% (6/6)69%  (33/48)71%  (10/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractQuery100% (1/1)100% (6/6)69%  (33/48)71%  (10/14)
addSort (Sort): Query 100% (1/1)21%  (4/19)33%  (2/6)
<static initializer> 100% (1/1)100% (7/7)100% (1/1)
AbstractQuery (): void 100% (1/1)100% (6/6)100% (2/2)
getPageable (): Pageable 100% (1/1)100% (3/3)100% (1/1)
getSort (): Sort 100% (1/1)100% (3/3)100% (1/1)
setPageable (Pageable): Query 100% (1/1)100% (10/10)100% (3/3)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.query;
17 
18import org.springframework.data.domain.PageRequest;
19import org.springframework.data.domain.Pageable;
20import org.springframework.data.domain.Sort;
21import org.springframework.util.Assert;
22 
23/**
24 * AbstractQuery
25 * 
26 */
27abstract class AbstractQuery  implements Query{
28 
29    private static final Pageable DEFAULT_PAGE = new PageRequest(0, DEFAULT_PAGE_SIZE);
30 
31    protected Pageable pageable = DEFAULT_PAGE;
32    protected Sort sort;
33 
34    @Override
35    public Sort getSort() {
36        return this.sort;
37    }
38 
39    @Override
40    public Pageable getPageable() {
41        return this.pageable;
42    }
43 
44    @Override
45    public final <T extends Query> T setPageable(Pageable pageable) {
46        Assert.notNull(pageable);
47 
48        this.pageable = pageable;
49        return (T) this.addSort(pageable.getSort());
50    }
51 
52    @SuppressWarnings("unchecked")
53    public final <T extends Query> T addSort(Sort sort) {
54        if (sort == null) {
55            return (T) this;
56        }
57 
58        if (this.sort == null) {
59            this.sort = sort;
60        } else {
61            this.sort = this.sort.and(sort);
62        }
63 
64        return (T) this;
65    }
66 
67}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/13.html b/site/emma/_files/13.html deleted file mode 100644 index ed529344..00000000 --- a/site/emma/_files/13.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [Criteria.java]

nameclass, %method, %block, %line, %
Criteria.java100% (4/4)73%  (36/49)70%  (419/600)74%  (77.9/106)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Criteria$OrCriteria100% (1/1)33%  (2/6)30%  (7/23)27%  (3/11)
Criteria$OrCriteria (): void 0%   (0/1)0%   (0/3)0%   (0/2)
Criteria$OrCriteria (Field): void 0%   (0/1)0%   (0/4)0%   (0/2)
Criteria$OrCriteria (List, String): void 0%   (0/1)0%   (0/5)0%   (0/2)
Criteria$OrCriteria (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
Criteria$OrCriteria (List, Field): void 100% (1/1)100% (5/5)100% (2/2)
getConjunctionOperator (): String 100% (1/1)100% (2/2)100% (1/1)
     
class Criteria100% (1/1)78%  (28/36)66%  (314/474)77%  (67/87)
and (Criteria []): Criteria 0%   (0/1)0%   (0/8)0%   (0/2)
and (Field): Criteria 0%   (0/1)0%   (0/7)0%   (0/1)
fuzzy (String): Criteria 0%   (0/1)0%   (0/11)0%   (0/2)
in (Iterable): Criteria 0%   (0/1)0%   (0/28)0%   (0/6)
in (Object []): Criteria 0%   (0/1)0%   (0/47)0%   (0/3)
isAnd (): boolean 0%   (0/1)0%   (0/8)0%   (0/1)
where (Field): Criteria 0%   (0/1)0%   (0/5)0%   (0/1)
where (String): Criteria 0%   (0/1)0%   (0/6)0%   (0/1)
assertNoBlankInWildcardedQuery (String, boolean, boolean): void 100% (1/1)14%  (5/35)67%  (2/3)
boost (float): Criteria 100% (1/1)64%  (9/14)75%  (3/4)
between (Object, Object): Criteria 100% (1/1)83%  (24/29)75%  (3/4)
Criteria (): void 100% (1/1)100% (20/20)100% (6/6)
Criteria (Field): void 100% (1/1)100% (35/35)100% (10/10)
Criteria (List, Field): void 100% (1/1)100% (43/43)100% (12/12)
Criteria (List, String): void 100% (1/1)100% (8/8)100% (2/2)
Criteria (String): void 100% (1/1)100% (7/7)100% (2/2)
and (Criteria): Criteria 100% (1/1)100% (7/7)100% (2/2)
and (String): Criteria 100% (1/1)100% (7/7)100% (1/1)
contains (String): Criteria 100% (1/1)100% (16/16)100% (3/3)
endsWith (String): Criteria 100% (1/1)100% (16/16)100% (3/3)
expression (String): Criteria 100% (1/1)100% (11/11)100% (2/2)
getBoost (): float 100% (1/1)100% (3/3)100% (1/1)
getConjunctionOperator (): String 100% (1/1)100% (2/2)100% (1/1)
getCriteriaChain (): List 100% (1/1)100% (4/4)100% (1/1)
getCriteriaEntries (): Set 100% (1/1)100% (4/4)100% (1/1)
getField (): Field 100% (1/1)100% (3/3)100% (1/1)
greaterThanEqual (Object): Criteria 100% (1/1)100% (7/7)100% (2/2)
is (Object): Criteria 100% (1/1)100% (11/11)100% (2/2)
isNegating (): boolean 100% (1/1)100% (3/3)100% (1/1)
isOr (): boolean 100% (1/1)100% (8/8)100% (1/1)
lessThanEqual (Object): Criteria 100% (1/1)100% (7/7)100% (2/2)
not (): Criteria 100% (1/1)100% (5/5)100% (2/2)
or (Criteria): Criteria 100% (1/1)100% (19/19)100% (4/4)
or (Field): Criteria 100% (1/1)100% (7/7)100% (1/1)
or (String): Criteria 100% (1/1)100% (7/7)100% (1/1)
startsWith (String): Criteria 100% (1/1)100% (16/16)100% (3/3)
     
class Criteria$OperationKey100% (1/1)75%  (3/4)94%  (83/88)97%  (1.9/2)
valueOf (String): Criteria$OperationKey 0%   (0/1)0%   (0/5)0%   (0/1)
<static initializer> 100% (1/1)100% (74/74)100% (2/2)
Criteria$OperationKey (String, int): void 100% (1/1)100% (5/5)100% (1/1)
values (): Criteria$OperationKey [] 100% (1/1)100% (4/4)100% (1/1)
     
class Criteria$CriteriaEntry100% (1/1)100% (3/3)100% (15/15)100% (6/6)
Criteria$CriteriaEntry (Criteria$OperationKey, Object): void 100% (1/1)100% (9/9)100% (4/4)
getKey (): Criteria$OperationKey 100% (1/1)100% (3/3)100% (1/1)
getValue (): Object 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.query;
17 
18import java.util.ArrayList;
19import java.util.Arrays;
20import java.util.Collection;
21import java.util.Collections;
22import java.util.LinkedHashSet;
23import java.util.List;
24import java.util.Set;
25 
26import org.apache.commons.lang.StringUtils;
27import org.springframework.dao.InvalidDataAccessApiUsageException;
28import org.springframework.util.Assert;
29 
30/**
31 * Criteria is the central class when constructing queries. It follows more or less a fluent API style, which allows to
32 * easily chain together multiple criteria.
33 *
34 */
35public class Criteria {
36 
37        public static final String WILDCARD = "*";
38        public static final String CRITERIA_VALUE_SEPERATOR = " ";
39 
40        private static final String OR_OPERATOR = " OR ";
41        private static final String AND_OPERATOR = " AND ";
42 
43        private Field field;
44        private float boost = Float.NaN;
45        private boolean negating = false;
46 
47        private List<Criteria> criteriaChain = new ArrayList<Criteria>(1);
48 
49        private Set<CriteriaEntry> criteria = new LinkedHashSet<CriteriaEntry>();
50 
51        public Criteria() {
52        }
53 
54        /**
55         * Creates a new CriterSimpleFieldia for the Filed with provided name
56         * 
57         * @param fieldname
58         */
59        public Criteria(String fieldname) {
60                this(new SimpleField(fieldname));
61        }
62 
63        /**
64         * Creates a new Criteria for the given field
65         * 
66         * @param field
67         */
68        public Criteria(Field field) {
69                Assert.notNull(field, "Field for criteria must not be null");
70                Assert.hasText(field.getName(), "Field.name for criteria must not be null/empty");
71 
72                this.criteriaChain.add(this);
73                this.field = field;
74        }
75 
76        protected Criteria(List<Criteria> criteriaChain, String fieldname) {
77                this(criteriaChain, new SimpleField(fieldname));
78        }
79 
80        protected Criteria(List<Criteria> criteriaChain, Field field) {
81                Assert.notNull(criteriaChain, "CriteriaChain must not be null");
82                Assert.notNull(field, "Field for criteria must not be null");
83                Assert.hasText(field.getName(), "Field.name for criteria must not be null/empty");
84 
85                this.criteriaChain.addAll(criteriaChain);
86                this.criteriaChain.add(this);
87                this.field = field;
88        }
89 
90        /**
91         * Static factory method to create a new Criteria for field with given name
92         * 
93         * @param field
94         * @return
95         */
96        public static Criteria where(String field) {
97                return where(new SimpleField(field));
98        }
99 
100        /**
101         * Static factory method to create a new Criteria for provided field
102         * 
103         * @param field
104         * @return
105         */
106        public static Criteria where(Field field) {
107                return new Criteria(field);
108        }
109 
110        /**
111         * Chain using {@code AND}
112         * 
113         * @param field
114         * @return
115         */
116        public Criteria and(Field field) {
117                return new Criteria(this.criteriaChain, field);
118        }
119 
120        /**
121         * Chain using {@code AND}
122         * 
123         * @param fieldName
124         * @return
125         */
126        public Criteria and(String fieldName) {
127                return new Criteria(this.criteriaChain, fieldName);
128        }
129 
130        /**
131         * Chain using {@code AND}
132         * 
133         * @param criteria
134         * @return
135         */
136        public Criteria and(Criteria criteria) {
137                this.criteriaChain.add(criteria);
138                return this;
139        }
140 
141        /**
142         * Chain using {@code AND}
143         * 
144         * @param criterias
145         * @return
146         */
147        public Criteria and(Criteria... criterias) {
148                this.criteriaChain.addAll(Arrays.asList(criterias));
149                return this;
150        }
151 
152        /**
153         * Chain using {@code OR}
154         * 
155         * @param field
156         * @return
157         */
158        public Criteria or(Field field) {
159                return new OrCriteria(this.criteriaChain, field);
160        }
161 
162        /**
163         * Chain using {@code OR}
164         * 
165         * @param criteria
166         * @return
167         */
168        public Criteria or(Criteria criteria) {
169                Assert.notNull(criteria, "Cannot chain 'null' criteria.");
170 
171                Criteria orConnectedCritiera = new OrCriteria(this.criteriaChain, criteria.getField());
172                orConnectedCritiera.criteria.addAll(criteria.criteria);
173                return orConnectedCritiera;
174        }
175 
176        /**
177         * Chain using {@code OR}
178         * 
179         * @param fieldName
180         * @return
181         */
182        public Criteria or(String fieldName) {
183                return or(new SimpleField(fieldName));
184        }
185 
186        /**
187         * Crates new CriteriaEntry without any wildcards
188         * 
189         * @param o
190         * @return
191         */
192        public Criteria is(Object o) {
193                criteria.add(new CriteriaEntry(OperationKey.EQUALS, o));
194                return this;
195        }
196 
197        /**
198         * Crates new CriteriaEntry with leading and trailing wildcards <br/>
199         * <strong>NOTE: </strong> mind your schema as leading wildcards may not be supported and/or execution might be slow.
200         * 
201         * @param s
202         * @return
203         */
204        public Criteria contains(String s) {
205                assertNoBlankInWildcardedQuery(s, true, true);
206                criteria.add(new CriteriaEntry(OperationKey.CONTAINS, s));
207                return this;
208        }
209 
210        /**
211         * Crates new CriteriaEntry with trailing wildcard
212         * 
213         * @param s
214         * @return
215         */
216        public Criteria startsWith(String s) {
217                assertNoBlankInWildcardedQuery(s, true, false);
218                criteria.add(new CriteriaEntry(OperationKey.STARTS_WITH, s));
219                return this;
220        }
221 
222        /**
223         * Crates new CriteriaEntry with leading wildcard <br />
224         * <strong>NOTE: </strong> mind your schema and execution times as leading wildcards may not be supported.
225         * 
226         * @param s
227         * @return
228         */
229        public Criteria endsWith(String s) {
230                assertNoBlankInWildcardedQuery(s, false, true);
231                criteria.add(new CriteriaEntry(OperationKey.ENDS_WITH, s));
232                return this;
233        }
234 
235        /**
236         * Crates new CriteriaEntry with trailing -
237         * 
238         * @return
239         */
240        public Criteria not() {
241                this.negating = true;
242                return this;
243        }
244 
245        /**
246         * Crates new CriteriaEntry with trailing ~
247         * 
248         * @param s
249         * @return
250         */
251        public Criteria fuzzy(String s) {
252        criteria.add(new CriteriaEntry(OperationKey.FUZZY, s));
253        return this;
254        }
255 
256 
257        /**
258         * Crates new CriteriaEntry allowing native elasticsearch expressions
259         * 
260         * @param s
261         * @return
262         */
263        public Criteria expression(String s) {
264                criteria.add(new CriteriaEntry(OperationKey.EXPRESSION, s));
265                return this;
266        }
267 
268        /**
269         * Boost positive hit with given factor. eg. ^2.3
270         * 
271         * @param boost
272         * @return
273         */
274        public Criteria boost(float boost) {
275                if (boost < 0) {
276                        throw new InvalidDataAccessApiUsageException("Boost must not be negative.");
277                }
278                this.boost = boost;
279                return this;
280        }
281 
282        /**
283         * Crates new CriteriaEntry for {@code RANGE [lowerBound TO upperBound]}
284         * 
285         * @param lowerBound
286         * @param upperBound
287         * @return
288         */
289        public Criteria between(Object lowerBound, Object upperBound) {
290                if (lowerBound == null && upperBound == null) {
291                        throw new InvalidDataAccessApiUsageException("Range [* TO *] is not allowed");
292                }
293 
294                criteria.add(new CriteriaEntry(OperationKey.BETWEEN, new Object[] { lowerBound, upperBound }));
295                return this;
296        }
297 
298        /**
299         * Crates new CriteriaEntry for {@code RANGE [* TO upperBound]}
300         * 
301         * @param upperBound
302         * @return
303         */
304        public Criteria lessThanEqual(Object upperBound) {
305                between(null, upperBound);
306                return this;
307        }
308 
309        /**
310         * Crates new CriteriaEntry for {@code RANGE [lowerBound TO *]}
311         * 
312         * @param lowerBound
313         * @return
314         */
315        public Criteria greaterThanEqual(Object lowerBound) {
316                between(lowerBound, null);
317                return this;
318        }
319 
320        /**
321         * Crates new CriteriaEntry for multiple values {@code (arg0 arg1 arg2 ...)}
322         * 
323         * @param values
324         * @return
325         */
326        public Criteria in(Object... values) {
327                if (values.length == 0 || (values.length > 1 && values[1] instanceof Collection)) {
328                        throw new InvalidDataAccessApiUsageException("At least one element "
329                                        + (values.length > 0 ? ("of argument of type " + values[1].getClass().getName()) : "")
330                                        + " has to be present.");
331                }
332                return in(Arrays.asList(values));
333        }
334 
335        /**
336         * Crates new CriteriaEntry for multiple values {@code (arg0 arg1 arg2 ...)}
337         * 
338         * @param values the collection containing the values to match against
339         * @return
340         */
341        public Criteria in(Iterable<?> values) {
342                Assert.notNull(values, "Collection of 'in' values must not be null");
343                for (Object value : values) {
344                        if (value instanceof Collection) {
345                                in((Collection<?>) value);
346                        } else {
347                                is(value);
348                        }
349                }
350                return this;
351        }
352 
353 
354        private void assertNoBlankInWildcardedQuery(String searchString, boolean leadingWildcard, boolean trailingWildcard) {
355                if (StringUtils.contains(searchString, CRITERIA_VALUE_SEPERATOR)) {
356                        throw new InvalidDataAccessApiUsageException("Cannot constructQuery '" + (leadingWildcard ? "*" : "") + "\""
357                                        + searchString + "\"" + (trailingWildcard ? "*" : "") + "'. Use epxression or mulitple clauses instead.");
358                }
359        }
360 
361        /**
362         * Field targeted by this Criteria
363         * 
364         * @return
365         */
366        public Field getField() {
367                return this.field;
368        }
369 
370        public Set<CriteriaEntry> getCriteriaEntries() {
371                return Collections.unmodifiableSet(this.criteria);
372        }
373 
374        /**
375         * Conjunction to be used with this criteria (AND | OR)
376         * 
377         * @return
378         */
379        public String getConjunctionOperator() {
380                return AND_OPERATOR;
381        }
382 
383        public List<Criteria> getCriteriaChain() {
384                return Collections.unmodifiableList(this.criteriaChain);
385        }
386 
387        public boolean isNegating() {
388                return this.negating;
389        }
390 
391    public boolean isAnd(){
392        return AND_OPERATOR == getConjunctionOperator();
393    }
394 
395    public boolean isOr(){
396        return OR_OPERATOR == getConjunctionOperator();
397    }
398 
399        public float getBoost() {
400                return this.boost;
401        }
402 
403        static class OrCriteria extends Criteria {
404 
405                public OrCriteria() {
406                        super();
407                }
408 
409                public OrCriteria(Field field) {
410                        super(field);
411                }
412 
413                public OrCriteria(List<Criteria> criteriaChain, Field field) {
414                        super(criteriaChain, field);
415                }
416 
417                public OrCriteria(List<Criteria> criteriaChain, String fieldname) {
418                        super(criteriaChain, fieldname);
419                }
420 
421                public OrCriteria(String fieldname) {
422                        super(fieldname);
423                }
424 
425                @Override
426                public String getConjunctionOperator() {
427                        return OR_OPERATOR;
428                }
429 
430        }
431 
432        public enum OperationKey {
433                EQUALS, CONTAINS, STARTS_WITH, ENDS_WITH, EXPRESSION, BETWEEN, FUZZY;
434        }
435 
436        public static class CriteriaEntry {
437 
438                private OperationKey  key;
439                private Object value;
440 
441                CriteriaEntry(OperationKey key, Object value) {
442                        this.key = key;
443                        this.value = value;
444                }
445 
446                public OperationKey getKey() {
447                        return key;
448                }
449 
450                public Object getValue() {
451                        return value;
452                }
453 
454        }
455 
456}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/14.html b/site/emma/_files/14.html deleted file mode 100644 index a4bdeb07..00000000 --- a/site/emma/_files/14.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [SimpleField.java]

nameclass, %method, %block, %line, %
SimpleField.java100% (1/1)67%  (2/3)75%  (9/12)80%  (4/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimpleField100% (1/1)67%  (2/3)75%  (9/12)80%  (4/5)
toString (): String 0%   (0/1)0%   (0/3)0%   (0/1)
SimpleField (String): void 100% (1/1)100% (6/6)100% (3/3)
getName (): String 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.query;
17 
18/**
19 * The most trivial implementation of a Field
20 * 
21 */
22public class SimpleField implements Field {
23 
24        private final String name;
25 
26        public SimpleField(String name) {
27                this.name = name;
28        }
29 
30        @Override
31        public String getName() {
32                return this.name;
33        }
34 
35        @Override
36        public String toString() {
37                return this.name;
38        }
39 
40}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/15.html b/site/emma/_files/15.html deleted file mode 100644 index 4d6bbf66..00000000 --- a/site/emma/_files/15.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [DeleteQuery.java]

nameclass, %method, %block, %line, %
DeleteQuery.java100% (1/1)100% (3/3)100% (10/10)100% (4/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DeleteQuery100% (1/1)100% (3/3)100% (10/10)100% (4/4)
DeleteQuery (): void 100% (1/1)100% (3/3)100% (1/1)
getElasticsearchQuery (): QueryBuilder 100% (1/1)100% (3/3)100% (1/1)
setElasticsearchQuery (QueryBuilder): void 100% (1/1)100% (4/4)100% (2/2)

1package org.springframework.data.elasticsearch.core.query;
2 
3 
4import org.elasticsearch.index.query.QueryBuilder;
5 
6public class DeleteQuery{
7 
8    private QueryBuilder elasticsearchQuery;
9 
10    public QueryBuilder getElasticsearchQuery() {
11        return elasticsearchQuery;
12    }
13 
14    public void setElasticsearchQuery(QueryBuilder elasticsearchQuery) {
15        this.elasticsearchQuery = elasticsearchQuery;
16    }
17}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/16.html b/site/emma/_files/16.html deleted file mode 100644 index 40e18391..00000000 --- a/site/emma/_files/16.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [GetQuery.java]

nameclass, %method, %block, %line, %
GetQuery.java100% (1/1)100% (3/3)100% (10/10)100% (4/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class GetQuery100% (1/1)100% (3/3)100% (10/10)100% (4/4)
GetQuery (): void 100% (1/1)100% (3/3)100% (1/1)
getId (): String 100% (1/1)100% (3/3)100% (1/1)
setId (String): void 100% (1/1)100% (4/4)100% (2/2)

1package org.springframework.data.elasticsearch.core.query;
2 
3 
4public class GetQuery{
5 
6    private String id;
7 
8    public String getId() {
9        return id;
10    }
11 
12    public void setId(String id) {
13        this.id = id;
14    }
15}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/17.html b/site/emma/_files/17.html deleted file mode 100644 index 1104d69d..00000000 --- a/site/emma/_files/17.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [IndexQuery.java]

nameclass, %method, %block, %line, %
IndexQuery.java100% (1/1)100% (5/5)100% (17/17)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class IndexQuery100% (1/1)100% (5/5)100% (17/17)100% (7/7)
IndexQuery (): void 100% (1/1)100% (3/3)100% (1/1)
getId (): String 100% (1/1)100% (3/3)100% (1/1)
getObject (): Object 100% (1/1)100% (3/3)100% (1/1)
setId (String): void 100% (1/1)100% (4/4)100% (2/2)
setObject (Object): void 100% (1/1)100% (4/4)100% (2/2)

1package org.springframework.data.elasticsearch.core.query;
2 
3 
4public class IndexQuery{
5 
6    private String id;
7    private Object object;
8 
9    public String getId() {
10        return id;
11    }
12 
13    public void setId(String id) {
14        this.id = id;
15    }
16 
17    public Object getObject() {
18        return object;
19    }
20 
21    public void setObject(Object object) {
22        this.object = object;
23    }
24}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/18.html b/site/emma/_files/18.html deleted file mode 100644 index a4f36750..00000000 --- a/site/emma/_files/18.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.query]

COVERAGE SUMMARY FOR SOURCE FILE [SearchQuery.java]

nameclass, %method, %block, %line, %
SearchQuery.java100% (1/1)100% (5/5)100% (17/17)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SearchQuery100% (1/1)100% (5/5)100% (17/17)100% (7/7)
SearchQuery (): void 100% (1/1)100% (3/3)100% (1/1)
getElasticsearchFilter (): FilterBuilder 100% (1/1)100% (3/3)100% (1/1)
getElasticsearchQuery (): QueryBuilder 100% (1/1)100% (3/3)100% (1/1)
setElasticsearchFilter (FilterBuilder): void 100% (1/1)100% (4/4)100% (2/2)
setElasticsearchQuery (QueryBuilder): void 100% (1/1)100% (4/4)100% (2/2)

1package org.springframework.data.elasticsearch.core.query;
2 
3 
4import org.elasticsearch.index.query.FilterBuilder;
5import org.elasticsearch.index.query.QueryBuilder;
6 
7public class SearchQuery extends AbstractQuery{
8 
9    private QueryBuilder elasticsearchQuery;
10    private FilterBuilder elasticsearchFilter;
11 
12    public QueryBuilder getElasticsearchQuery() {
13        return elasticsearchQuery;
14    }
15 
16    public void setElasticsearchQuery(QueryBuilder elasticsearchQuery) {
17        this.elasticsearchQuery = elasticsearchQuery;
18    }
19 
20    public FilterBuilder getElasticsearchFilter() {
21        return elasticsearchFilter;
22    }
23 
24    public void setElasticsearchFilter(FilterBuilder elasticsearchFilter) {
25        this.elasticsearchFilter = elasticsearchFilter;
26    }
27 
28}

[all classes][org.springframework.data.elasticsearch.core.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/19.html b/site/emma/_files/19.html deleted file mode 100644 index 4ae97e10..00000000 --- a/site/emma/_files/19.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.support]

COVERAGE SUMMARY FOR SOURCE FILE [MappingElasticsearchEntityInformation.java]

nameclass, %method, %block, %line, %
MappingElasticsearchEntityInformation.java100% (1/1)71%  (5/7)55%  (46/84)65%  (10.4/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MappingElasticsearchEntityInformation100% (1/1)71%  (5/7)55%  (46/84)65%  (10.4/16)
getIdAttribute (): String 0%   (0/1)0%   (0/23)0%   (0/2)
getIdType (): Class 0%   (0/1)0%   (0/2)0%   (0/1)
getId (Object): Serializable 100% (1/1)63%  (12/19)50%  (2/4)
getIndexName (): String 100% (1/1)70%  (7/10)70%  (0.7/1)
getType (): String 100% (1/1)70%  (7/10)70%  (0.7/1)
MappingElasticsearchEntityInformation (ElasticsearchPersistentEntity): void 100% (1/1)100% (6/6)100% (2/2)
MappingElasticsearchEntityInformation (ElasticsearchPersistentEntity, String,... 100% (1/1)100% (14/14)100% (5/5)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.support;
17 
18import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity;
19import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty;
20import org.springframework.data.mapping.model.BeanWrapper;
21import org.springframework.data.repository.core.support.AbstractEntityInformation;
22import org.springframework.util.Assert;
23 
24import java.io.Serializable;
25 
26/**
27 * Elasticsearch specific implementation of {@link org.springframework.data.repository.core.support.AbstractEntityInformation}
28 *
29 * @param <T>
30 * @param <ID>
31 */
32public class MappingElasticsearchEntityInformation<T, ID extends Serializable> extends AbstractEntityInformation<T, ID>
33        implements ElasticsearchEntityInformation<T, ID> {
34 
35    private final ElasticsearchPersistentEntity<T> entityMetadata;
36    private final String indexName;
37    private final String type;
38 
39    public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity) {
40        this(entity, null, null);
41    }
42 
43    public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity, String indexName, String type) {
44        super(entity.getType());
45        this.entityMetadata = entity;
46        this.indexName = indexName;
47        this.type = type;
48    }
49 
50    @SuppressWarnings("unchecked")
51    @Override
52    public ID getId(T entity) {
53        ElasticsearchPersistentProperty id = entityMetadata.getIdProperty();
54        try {
55            return (ID) BeanWrapper.create(entity, null).getProperty(id);
56        } catch (Exception e) {
57            throw new IllegalStateException("ID could not be resolved", e);
58        }
59    }
60 
61    @SuppressWarnings("unchecked")
62    @Override
63    public Class<ID> getIdType() {
64        return (Class<ID>) String.class;
65    }
66 
67    @Override
68    public String getIdAttribute() {
69        Assert.notNull(entityMetadata.getIdProperty(),"Unable to identify 'id' property in class " + entityMetadata.getType().getSimpleName() +". Make sure the 'id' property is annotated with @Id or named as 'id' or 'documentId' ");
70        return entityMetadata.getIdProperty().getFieldName();
71    }
72 
73    @Override
74    public String getIndexName() {
75        return indexName != null?  indexName : entityMetadata.getIndexName();
76    }
77 
78    @Override
79    public String getType() {
80        return type != null? type : entityMetadata.getIndexType();
81    }
82}

[all classes][org.springframework.data.elasticsearch.repository.support]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1a.html b/site/emma/_files/1a.html deleted file mode 100644 index 7704f988..00000000 --- a/site/emma/_files/1a.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.support]

COVERAGE SUMMARY FOR SOURCE FILE [SimpleElasticsearchRepository.java]

nameclass, %method, %block, %line, %
SimpleElasticsearchRepository.java100% (1/1)80%  (24/30)75%  (349/465)75%  (81.7/109)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimpleElasticsearchRepository100% (1/1)80%  (24/30)75%  (349/465)75%  (81.7/109)
SimpleElasticsearchRepository (): void 0%   (0/1)0%   (0/3)0%   (0/2)
createIndex (): void 0%   (0/1)0%   (0/7)0%   (0/2)
findAll (Iterable): Iterable 0%   (0/1)0%   (0/23)0%   (0/3)
findAll (Sort): Iterable 0%   (0/1)0%   (0/23)0%   (0/4)
resolveReturnedClassFromGenericType (): Class 0%   (0/1)0%   (0/11)0%   (0/2)
resolveReturnedClassFromGenericType (Class): ParameterizedType 0%   (0/1)0%   (0/23)0%   (0/7)
getEntityClass (): Class 100% (1/1)33%  (6/18)33%  (2/6)
findAll (): Iterable 100% (1/1)76%  (16/21)75%  (3/4)
extractIdFromBean (Object): String 100% (1/1)82%  (9/11)67%  (2/3)
isEntityClassSet (): boolean 100% (1/1)86%  (6/7)85%  (0.8/1)
exists (String): boolean 100% (1/1)88%  (7/8)87%  (0.9/1)
save (Iterable): Iterable 100% (1/1)89%  (39/44)89%  (8/9)
SimpleElasticsearchRepository (ElasticsearchEntityInformation, ElasticsearchO... 100% (1/1)100% (14/14)100% (5/5)
SimpleElasticsearchRepository (ElasticsearchOperations): void 100% (1/1)100% (8/8)100% (4/4)
count (): long 100% (1/1)100% (11/11)100% (2/2)
createIndexQuery (Object): IndexQuery 100% (1/1)100% (14/14)100% (4/4)
delete (Iterable): void 100% (1/1)100% (17/17)100% (4/4)
delete (Object): void 100% (1/1)100% (16/16)100% (4/4)
delete (String): void 100% (1/1)100% (22/22)100% (4/4)
deleteAll (): void 100% (1/1)100% (21/21)100% (5/5)
findAll (Pageable): Page 100% (1/1)100% (14/14)100% (3/3)
findOne (String): Object 100% (1/1)100% (14/14)100% (3/3)
index (Object): Object 100% (1/1)100% (4/4)100% (1/1)
save (List): List 100% (1/1)100% (39/39)100% (8/8)
save (Object): Object 100% (1/1)100% (19/19)100% (4/4)
search (QueryBuilder): Iterable 100% (1/1)100% (14/14)100% (3/3)
search (QueryBuilder, Pageable): Page 100% (1/1)100% (18/18)100% (4/4)
search (SearchQuery): Page 100% (1/1)100% (7/7)100% (1/1)
setElasticsearchOperations (ElasticsearchOperations): void 100% (1/1)100% (7/7)100% (3/3)
setEntityClass (Class): void 100% (1/1)100% (7/7)100% (3/3)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.support;
17 
18import org.elasticsearch.index.query.QueryBuilder;
19import org.springframework.dao.InvalidDataAccessApiUsageException;
20import org.springframework.data.domain.*;
21import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
22import org.springframework.data.elasticsearch.core.query.DeleteQuery;
23import org.springframework.data.elasticsearch.core.query.GetQuery;
24import org.springframework.data.elasticsearch.core.query.IndexQuery;
25import org.springframework.data.elasticsearch.core.query.SearchQuery;
26import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
27import org.springframework.util.Assert;
28 
29import javax.annotation.PostConstruct;
30import java.lang.reflect.ParameterizedType;
31import java.lang.reflect.Type;
32import java.util.ArrayList;
33import java.util.Collection;
34import java.util.Collections;
35import java.util.List;
36 
37import static org.elasticsearch.index.query.QueryBuilders.inQuery;
38import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
39 
40/**
41 * Elasticsearch specific repository implementation. Likely to be used as target within {@link ElasticsearchRepositoryFactory}
42 *
43 * @param <T>
44 */
45public class SimpleElasticsearchRepository<T> implements ElasticsearchRepository<T, String> {
46 
47 
48    private ElasticsearchOperations elasticsearchOperations;
49    private Class<T> entityClass;
50    private ElasticsearchEntityInformation<T, String> entityInformation;
51 
52    public SimpleElasticsearchRepository() {
53    }
54 
55    public SimpleElasticsearchRepository(ElasticsearchOperations elasticsearchOperations) {
56        Assert.notNull(elasticsearchOperations);
57        this.setElasticsearchOperations(elasticsearchOperations);
58    }
59 
60    public SimpleElasticsearchRepository(ElasticsearchEntityInformation<T, String> metadata, ElasticsearchOperations elasticsearchOperations) {
61        this(elasticsearchOperations);
62        Assert.notNull(metadata);
63        this.entityInformation = metadata;
64        setEntityClass(this.entityInformation.getJavaType());
65    }
66 
67    @PostConstruct
68    public void createIndex(){
69        elasticsearchOperations.createIndex(getEntityClass());
70    }
71 
72    @Override
73    public T findOne(String id) {
74        GetQuery query = new GetQuery();
75        query.setId(id);
76        return elasticsearchOperations.queryForObject(query, getEntityClass());
77    }
78 
79    @Override
80    public Iterable<T> findAll() {
81        int itemCount = (int) this.count();
82        if (itemCount == 0) {
83            return new PageImpl<T>(Collections.<T> emptyList());
84        }
85        return this.findAll(new PageRequest(0, Math.max(1, itemCount)));
86    }
87 
88    @Override
89    public Page<T> findAll(Pageable pageable) {
90        SearchQuery query = new SearchQuery();
91        query.setElasticsearchQuery(matchAllQuery());
92        return elasticsearchOperations.queryForPage(query, getEntityClass());
93    }
94 
95    @Override
96    public Iterable<T> findAll(Sort sort) {
97        SearchQuery query = new SearchQuery();
98        query.setElasticsearchQuery(matchAllQuery());
99        query.setPageable(new PageRequest(0,Integer.MAX_VALUE, sort));
100        return elasticsearchOperations.queryForPage(query, getEntityClass());
101    }
102 
103    @Override
104    public Iterable<T> findAll(Iterable<String> ids) {
105        SearchQuery query = new SearchQuery();
106        query.setElasticsearchQuery(inQuery(entityInformation.getIdAttribute(), ids));
107        return elasticsearchOperations.queryForPage(query, getEntityClass());
108    }
109 
110    @Override
111    public long count() {
112        SearchQuery query = new SearchQuery();
113        return elasticsearchOperations.count(query,getEntityClass());
114    }
115 
116    @Override
117    public <S extends T> S save(S entity) {
118        Assert.notNull(entity, "Cannot save 'null' entity.");
119        elasticsearchOperations.index(createIndexQuery(entity));
120        elasticsearchOperations.refresh(entityInformation.getIndexName(), true);
121        return entity;
122    }
123 
124    public <S extends T> List<S> save(List<S> entities) {
125        Assert.notNull(entities, "Cannot insert 'null' as a List.");
126        Assert.notEmpty(entities,"Cannot insert empty List.");
127        List<IndexQuery> queries = new ArrayList<IndexQuery>();
128        for(S  s:entities){
129            queries.add(createIndexQuery(s));
130        }
131        elasticsearchOperations.bulkIndex(queries);
132        elasticsearchOperations.refresh(entityInformation.getIndexName(), true);
133        return entities;
134    }
135 
136    @Override
137    public <S extends T> S index(S entity) {
138        return save(entity);
139    }
140 
141    @Override
142    public <S extends T> Iterable<S> save(Iterable<S> entities) {
143        Assert.notNull(entities, "Cannot insert 'null' as a List.");
144        if (!(entities instanceof Collection<?>)) {
145            throw new InvalidDataAccessApiUsageException("Entities have to be inside a collection");
146        }
147        List<IndexQuery> queries = new ArrayList<IndexQuery>();
148        for(S s: entities){
149            queries.add(createIndexQuery(s));
150        }
151        elasticsearchOperations.bulkIndex(queries);
152        elasticsearchOperations.refresh(entityInformation.getIndexName(), true);
153        return entities;
154    }
155 
156    @Override
157    public boolean exists(String id) {
158        return findOne(id) != null;
159    }
160 
161    @Override
162    public Iterable<T> search(QueryBuilder elasticsearchQuery) {
163        SearchQuery query = new SearchQuery();
164        query.setElasticsearchQuery(elasticsearchQuery);
165        return elasticsearchOperations.queryForPage(query, getEntityClass());
166    }
167 
168    @Override
169    public Page<T> search(QueryBuilder elasticsearchQuery, Pageable pageable) {
170        SearchQuery query = new SearchQuery();
171        query.setElasticsearchQuery(elasticsearchQuery);
172        query.setPageable(pageable);
173        return elasticsearchOperations.queryForPage(query, getEntityClass());
174    }
175 
176    @Override
177    public Page<T> search(SearchQuery query){
178        return elasticsearchOperations.queryForPage(query, getEntityClass());
179    }
180 
181    @Override
182    public void delete(String id) {
183        Assert.notNull(id, "Cannot delete entity with id 'null'.");
184        elasticsearchOperations.delete(entityInformation.getIndexName(), entityInformation.getType(),id);
185        elasticsearchOperations.refresh(entityInformation.getIndexName(),true);
186    }
187 
188    @Override
189    public void delete(T entity) {
190        Assert.notNull(entity, "Cannot delete 'null' entity.");
191        delete(extractIdFromBean(entity));
192        elasticsearchOperations.refresh(entityInformation.getIndexName(), true);
193    }
194 
195    @Override
196    public void delete(Iterable<? extends T> entities) {
197        Assert.notNull(entities, "Cannot delete 'null' list.");
198        for (T entity : entities) {
199            delete(entity);
200        }
201    }
202 
203    @Override
204    public void deleteAll() {
205        DeleteQuery query = new DeleteQuery();
206        query.setElasticsearchQuery(matchAllQuery());
207        elasticsearchOperations.delete(query, getEntityClass());
208        elasticsearchOperations.refresh(entityInformation.getIndexName(),true);
209    }
210 
211    private IndexQuery createIndexQuery(T entity){
212        IndexQuery query = new IndexQuery();
213        query.setObject(entity);
214        query.setId(extractIdFromBean(entity));
215        return query;
216    }
217 
218    @SuppressWarnings("unchecked")
219    private Class<T> resolveReturnedClassFromGenericType() {
220        ParameterizedType parameterizedType = resolveReturnedClassFromGenericType(getClass());
221        return (Class<T>) parameterizedType.getActualTypeArguments()[0];
222    }
223 
224    private ParameterizedType resolveReturnedClassFromGenericType(Class<?> clazz) {
225        Object genericSuperclass = clazz.getGenericSuperclass();
226        if (genericSuperclass instanceof ParameterizedType) {
227            ParameterizedType parameterizedType = (ParameterizedType) genericSuperclass;
228            Type rawtype = parameterizedType.getRawType();
229            if (SimpleElasticsearchRepository.class.equals(rawtype)) {
230                return parameterizedType;
231            }
232        }
233        return resolveReturnedClassFromGenericType(clazz.getSuperclass());
234    }
235 
236    public Class<T> getEntityClass() {
237        if (!isEntityClassSet()) {
238            try {
239                this.entityClass = resolveReturnedClassFromGenericType();
240            } catch (Exception e) {
241                throw new InvalidDataAccessApiUsageException("Unable to resolve EntityClass. Please use according setter!", e);
242            }
243        }
244        return entityClass;
245    }
246 
247    private boolean isEntityClassSet() {
248        return entityClass != null;
249    }
250 
251    public final void setEntityClass(Class<T> entityClass) {
252        Assert.notNull(entityClass, "EntityClass must not be null.");
253        this.entityClass = entityClass;
254    }
255 
256    public final void setElasticsearchOperations(ElasticsearchOperations elasticsearchOperations) {
257        Assert.notNull(elasticsearchOperations, "ElasticsearchOperations must not be null.");
258        this.elasticsearchOperations = elasticsearchOperations;
259    }
260 
261 
262    private String extractIdFromBean(T entity) {
263        if (entityInformation != null) {
264            return entityInformation.getId(entity);
265        }
266        return null;
267    }
268 
269}

[all classes][org.springframework.data.elasticsearch.repository.support]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1b.html b/site/emma/_files/1b.html deleted file mode 100644 index 3647d5c9..00000000 --- a/site/emma/_files/1b.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.support]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchRepositoryFactory.java]

nameclass, %method, %block, %line, %
ElasticsearchRepositoryFactory.java67%  (2/3)100% (11/11)82%  (106/130)85%  (20.4/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchRepositoryFactory$ElasticsearchQueryLookupStrategy100% (1/1)100% (3/3)78%  (47/60)78%  (7/9)
resolveQuery (Method, RepositoryMetadata, NamedQueries): RepositoryQuery 100% (1/1)74%  (37/50)75%  (6/8)
ElasticsearchRepositoryFactory$ElasticsearchQueryLookupStrategy (Elasticsearc... 100% (1/1)100% (6/6)100% (1/1)
ElasticsearchRepositoryFactory$ElasticsearchQueryLookupStrategy (Elasticsearc... 100% (1/1)100% (4/4)100% (1/1)
     
class ElasticsearchRepositoryFactory100% (1/1)100% (8/8)84%  (59/70)89%  (13.4/15)
isQueryDslRepository (Class): boolean 100% (1/1)40%  (4/10)40%  (0.4/1)
getRepositoryBaseClass (RepositoryMetadata): Class 100% (1/1)55%  (6/11)67%  (2/3)
ElasticsearchRepositoryFactory (ElasticsearchOperations): void 100% (1/1)100% (16/16)100% (5/5)
access$100 (ElasticsearchRepositoryFactory): ElasticsearchEntityInformationCr... 100% (1/1)100% (3/3)100% (1/1)
access$200 (ElasticsearchRepositoryFactory): ElasticsearchOperations 100% (1/1)100% (3/3)100% (1/1)
getEntityInformation (Class): ElasticsearchEntityInformation 100% (1/1)100% (5/5)100% (1/1)
getQueryLookupStrategy (QueryLookupStrategy$Key): QueryLookupStrategy 100% (1/1)100% (6/6)100% (1/1)
getTargetRepository (RepositoryMetadata): Object 100% (1/1)100% (16/16)100% (3/3)
     
class ElasticsearchRepositoryFactory$10%   (0/1)100% (0/0)100% (0/0)100% (0/0)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.support;
17 
18import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
19import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
20import org.springframework.data.elasticsearch.repository.query.ElasticsearchPartQuery;
21import org.springframework.data.elasticsearch.repository.query.ElasticsearchQueryMethod;
22import org.springframework.data.elasticsearch.repository.query.ElasticsearchStringQuery;
23import org.springframework.data.querydsl.QueryDslPredicateExecutor;
24import org.springframework.data.repository.core.NamedQueries;
25import org.springframework.data.repository.core.RepositoryMetadata;
26import org.springframework.data.repository.core.support.RepositoryFactorySupport;
27import org.springframework.data.repository.query.QueryLookupStrategy;
28import org.springframework.data.repository.query.RepositoryQuery;
29import org.springframework.util.Assert;
30 
31import java.io.Serializable;
32import java.lang.reflect.Method;
33 
34import static org.springframework.data.querydsl.QueryDslUtils.QUERY_DSL_PRESENT;
35 
36/**
37 * Factory to create {@link ElasticsearchRepository}
38 *
39 */
40public class ElasticsearchRepositoryFactory extends RepositoryFactorySupport {
41 
42    private final ElasticsearchOperations elasticsearchOperations;
43    private final ElasticsearchEntityInformationCreator entityInformationCreator;
44 
45    public ElasticsearchRepositoryFactory(ElasticsearchOperations elasticsearchOperations) {
46        Assert.notNull(elasticsearchOperations);
47        this.elasticsearchOperations = elasticsearchOperations;
48        this.entityInformationCreator = new ElasticsearchEntityInformationCreatorImpl(elasticsearchOperations.getElasticsearchConverter()
49                .getMappingContext());
50    }
51 
52    @Override
53    public <T, ID extends Serializable> ElasticsearchEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
54        return entityInformationCreator.getEntityInformation(domainClass);
55    }
56 
57    @Override
58    @SuppressWarnings({ "rawtypes", "unchecked" })
59    protected Object getTargetRepository(RepositoryMetadata metadata) {
60        SimpleElasticsearchRepository repository = new SimpleElasticsearchRepository(getEntityInformation(metadata.getDomainType()), elasticsearchOperations);
61        repository.setEntityClass(metadata.getDomainType());
62        return repository;
63    }
64 
65    @Override
66    protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) {
67        if (isQueryDslRepository(metadata.getRepositoryInterface())) {
68            throw new IllegalArgumentException("QueryDsl Support has not been implemented yet.");
69        }
70        return SimpleElasticsearchRepository.class;
71    }
72 
73    private static boolean isQueryDslRepository(Class<?> repositoryInterface) {
74        return QUERY_DSL_PRESENT && QueryDslPredicateExecutor.class.isAssignableFrom(repositoryInterface);
75    }
76 
77    @Override
78    protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key) {
79        return new ElasticsearchQueryLookupStrategy();
80    }
81 
82    private class ElasticsearchQueryLookupStrategy implements QueryLookupStrategy {
83 
84        @Override
85        public RepositoryQuery resolveQuery(Method method, RepositoryMetadata metadata, NamedQueries namedQueries) {
86 
87            ElasticsearchQueryMethod queryMethod = new ElasticsearchQueryMethod(method, metadata, entityInformationCreator);
88            String namedQueryName = queryMethod.getNamedQueryName();
89 
90            if (namedQueries.hasQuery(namedQueryName)) {
91                String namedQuery = namedQueries.getQuery(namedQueryName);
92                return new ElasticsearchStringQuery(queryMethod, elasticsearchOperations, namedQuery);
93            }
94            else if (queryMethod.hasAnnotatedQuery()) {
95                return new ElasticsearchStringQuery(queryMethod, elasticsearchOperations, queryMethod.getAnnotatedQuery());
96            }
97            return new ElasticsearchPartQuery(queryMethod, elasticsearchOperations);
98        }
99    }
100 
101}

[all classes][org.springframework.data.elasticsearch.repository.support]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1c.html b/site/emma/_files/1c.html deleted file mode 100644 index 7fc51d66..00000000 --- a/site/emma/_files/1c.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.support]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchEntityInformationCreatorImpl.java]

nameclass, %method, %block, %line, %
ElasticsearchEntityInformationCreatorImpl.java100% (1/1)100% (2/2)100% (19/19)100% (6/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchEntityInformationCreatorImpl100% (1/1)100% (2/2)100% (19/19)100% (6/6)
ElasticsearchEntityInformationCreatorImpl (MappingContext): void 100% (1/1)100% (8/8)100% (4/4)
getEntityInformation (Class): ElasticsearchEntityInformation 100% (1/1)100% (11/11)100% (2/2)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.support;
17 
18import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity;
19import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty;
20import org.springframework.data.mapping.context.MappingContext;
21import org.springframework.util.Assert;
22 
23import java.io.Serializable;
24 
25public class ElasticsearchEntityInformationCreatorImpl implements ElasticsearchEntityInformationCreator {
26 
27        private final MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext;
28 
29        public ElasticsearchEntityInformationCreatorImpl(
30            MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) {
31                Assert.notNull(mappingContext);
32                this.mappingContext = mappingContext;
33        }
34 
35        @Override
36        @SuppressWarnings("unchecked")
37        public <T, ID extends Serializable> ElasticsearchEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
38        ElasticsearchPersistentEntity<T> persistentEntity = (ElasticsearchPersistentEntity<T>) mappingContext
39                                .getPersistentEntity(domainClass);
40                return new MappingElasticsearchEntityInformation<T, ID>(persistentEntity);
41        }
42 
43}

[all classes][org.springframework.data.elasticsearch.repository.support]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1d.html b/site/emma/_files/1d.html deleted file mode 100644 index 80fb3b4a..00000000 --- a/site/emma/_files/1d.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.support]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchRepositoryFactoryBean.java]

nameclass, %method, %block, %line, %
ElasticsearchRepositoryFactoryBean.java100% (1/1)100% (4/4)100% (22/22)100% (8/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchRepositoryFactoryBean100% (1/1)100% (4/4)100% (22/22)100% (8/8)
ElasticsearchRepositoryFactoryBean (): void 100% (1/1)100% (3/3)100% (1/1)
afterPropertiesSet (): void 100% (1/1)100% (7/7)100% (3/3)
createRepositoryFactory (): RepositoryFactorySupport 100% (1/1)100% (6/6)100% (1/1)
setElasticsearchOperations (ElasticsearchOperations): void 100% (1/1)100% (6/6)100% (3/3)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.support;
17 
18import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
19import org.springframework.data.repository.Repository;
20import org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport;
21import org.springframework.data.repository.core.support.RepositoryFactorySupport;
22import org.springframework.util.Assert;
23 
24import java.io.Serializable;
25 
26/**
27 * Spring {@link org.springframework.beans.factory.FactoryBean} implementation to ease container based configuration for XML namespace and JavaConfig.
28 * 
29 */
30public class ElasticsearchRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable> extends
31        RepositoryFactoryBeanSupport<T, S, ID> {
32 
33        private ElasticsearchOperations operations;
34 
35        /**
36         * Configures the {@link ElasticsearchOperations} to be used to create Elasticsearch repositories.
37         * 
38         * @param operations the operations to set
39         */
40        public void setElasticsearchOperations(ElasticsearchOperations operations) {
41                Assert.notNull(operations);
42                this.operations = operations;
43        }
44 
45        /*
46         * (non-Javadoc)
47         * @see org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport#afterPropertiesSet()
48         */
49        @Override
50        public void afterPropertiesSet() {
51        super.afterPropertiesSet();
52                Assert.notNull(operations, "ElasticsearchOperations must be configured!");
53        }
54 
55 
56    @Override
57    protected RepositoryFactorySupport createRepositoryFactory() {
58        return new ElasticsearchRepositoryFactory(operations);
59    }
60 
61}

[all classes][org.springframework.data.elasticsearch.repository.support]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1e.html b/site/emma/_files/1e.html deleted file mode 100644 index 70a46c62..00000000 --- a/site/emma/_files/1e.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.convert]

COVERAGE SUMMARY FOR SOURCE FILE [DateTimeConverters.java]

nameclass, %method, %block, %line, %
DateTimeConverters.java100% (4/4)61%  (11/18)75%  (91/121)90%  (15.4/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DateTimeConverters100% (1/1)67%  (2/3)70%  (7/10)47%  (1.4/3)
DateTimeConverters (): void 0%   (0/1)0%   (0/3)0%   (0/2)
<static initializer> 100% (1/1)100% (5/5)100% (1/1)
access$000 (): DateTimeFormatter 100% (1/1)100% (2/2)100% (1/1)
     
class DateTimeConverters$JodaDateTimeConverter100% (1/1)60%  (3/5)75%  (27/36)93%  (4.7/5)
valueOf (String): DateTimeConverters$JodaDateTimeConverter 0%   (0/1)0%   (0/5)0%   (0/1)
values (): DateTimeConverters$JodaDateTimeConverter [] 0%   (0/1)0%   (0/4)0%   (0/1)
<static initializer> 100% (1/1)100% (14/14)100% (2/2)
DateTimeConverters$JodaDateTimeConverter (String, int): void 100% (1/1)100% (5/5)100% (1/1)
convert (ReadableInstant): String 100% (1/1)100% (8/8)100% (3/3)
     
class DateTimeConverters$JavaDateConverter100% (1/1)60%  (3/5)76%  (28/37)93%  (4.7/5)
valueOf (String): DateTimeConverters$JavaDateConverter 0%   (0/1)0%   (0/5)0%   (0/1)
values (): DateTimeConverters$JavaDateConverter [] 0%   (0/1)0%   (0/4)0%   (0/1)
<static initializer> 100% (1/1)100% (14/14)100% (2/2)
DateTimeConverters$JavaDateConverter (String, int): void 100% (1/1)100% (5/5)100% (1/1)
convert (Date): String 100% (1/1)100% (9/9)100% (3/3)
     
class DateTimeConverters$JodaLocalDateTimeConverter100% (1/1)60%  (3/5)76%  (29/38)93%  (4.7/5)
valueOf (String): DateTimeConverters$JodaLocalDateTimeConverter 0%   (0/1)0%   (0/5)0%   (0/1)
values (): DateTimeConverters$JodaLocalDateTimeConverter [] 0%   (0/1)0%   (0/4)0%   (0/1)
<static initializer> 100% (1/1)100% (14/14)100% (2/2)
DateTimeConverters$JodaLocalDateTimeConverter (String, int): void 100% (1/1)100% (5/5)100% (1/1)
convert (LocalDateTime): String 100% (1/1)100% (10/10)100% (3/3)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.convert;
17 
18import org.joda.time.DateTimeZone;
19import org.joda.time.LocalDateTime;
20import org.joda.time.ReadableInstant;
21import org.joda.time.format.DateTimeFormatter;
22import org.joda.time.format.ISODateTimeFormat;
23import org.springframework.core.convert.converter.Converter;
24 
25import java.util.Date;
26 
27public final class DateTimeConverters {
28 
29        private static DateTimeFormatter formatter =  ISODateTimeFormat.dateTime().withZone(DateTimeZone.UTC);
30 
31        public enum JodaDateTimeConverter implements Converter<ReadableInstant, String> {
32                INSTANCE;
33 
34                @Override
35                public String convert(ReadableInstant source) {
36                        if (source == null) {
37                                return null;
38                        }
39                        return formatter.print(source);
40                }
41 
42        }
43 
44        public enum JodaLocalDateTimeConverter implements Converter<LocalDateTime, String> {
45                INSTANCE;
46 
47                @Override
48                public String convert(LocalDateTime source) {
49                        if (source == null) {
50                                return null;
51                        }
52                        return formatter.print(source.toDateTime(DateTimeZone.UTC));
53                }
54 
55        }
56 
57        public enum JavaDateConverter implements Converter<Date, String> {
58                INSTANCE;
59 
60                @Override
61                public String convert(Date source) {
62                        if (source == null) {
63                                return null;
64                        }
65 
66                        return formatter.print(source.getTime());
67                }
68 
69        }
70 
71}

[all classes][org.springframework.data.elasticsearch.core.convert]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/1f.html b/site/emma/_files/1f.html deleted file mode 100644 index 235cd1eb..00000000 --- a/site/emma/_files/1f.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.convert]

COVERAGE SUMMARY FOR SOURCE FILE [MappingElasticsearchConverter.java]

nameclass, %method, %block, %line, %
MappingElasticsearchConverter.java100% (1/1)75%  (3/4)83%  (19/23)78%  (7/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MappingElasticsearchConverter100% (1/1)75%  (3/4)83%  (19/23)78%  (7/9)
setApplicationContext (ApplicationContext): void 0%   (0/1)0%   (0/4)0%   (0/2)
MappingElasticsearchConverter (MappingContext): void 100% (1/1)100% (13/13)100% (5/5)
getConversionService (): ConversionService 100% (1/1)100% (3/3)100% (1/1)
getMappingContext (): MappingContext 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.convert;
17 
18import org.springframework.beans.BeansException;
19import org.springframework.context.ApplicationContext;
20import org.springframework.context.ApplicationContextAware;
21import org.springframework.core.convert.ConversionService;
22import org.springframework.core.convert.support.DefaultConversionService;
23import org.springframework.core.convert.support.GenericConversionService;
24import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity;
25import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty;
26import org.springframework.data.mapping.context.MappingContext;
27import org.springframework.util.Assert;
28 
29 
30public class MappingElasticsearchConverter implements ElasticsearchConverter, ApplicationContextAware{
31 
32        private final MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext;
33        private final GenericConversionService conversionService;
34 
35        @SuppressWarnings("unused")
36        private ApplicationContext applicationContext;
37 
38        public MappingElasticsearchConverter(MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) {
39                Assert.notNull(mappingContext);
40                this.mappingContext = mappingContext;
41                this.conversionService = new DefaultConversionService();
42        }
43 
44        @Override
45        public MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> getMappingContext() {
46                return mappingContext;
47        }
48 
49        @Override
50        public ConversionService getConversionService() {
51                return this.conversionService;
52        }
53 
54        @Override
55        public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
56                this.applicationContext = applicationContext;
57        }
58 
59}

[all classes][org.springframework.data.elasticsearch.core.convert]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2.html b/site/emma/_files/2.html deleted file mode 100644 index c4b9d19a..00000000 --- a/site/emma/_files/2.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.repository.query.parser]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.repository.query.parser100% (2/2)56%  (5/9)58%  (197/338)43%  (16.9/39)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchQueryCreator.java100% (2/2)56%  (5/9)58%  (197/338)43%  (16.9/39)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/20.html b/site/emma/_files/20.html deleted file mode 100644 index 97397d83..00000000 --- a/site/emma/_files/20.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.mapping]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchPersistentProperty.java]

nameclass, %method, %block, %line, %
ElasticsearchPersistentProperty.java100% (1/1)60%  (3/5)71%  (22/31)89%  (2.7/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchPersistentProperty$PropertyToFieldNameConverter100% (1/1)60%  (3/5)71%  (22/31)89%  (2.7/3)
valueOf (String): ElasticsearchPersistentProperty$PropertyToFieldNameConverter 0%   (0/1)0%   (0/5)0%   (0/1)
values (): ElasticsearchPersistentProperty$PropertyToFieldNameConverter [] 0%   (0/1)0%   (0/4)0%   (0/1)
<static initializer> 100% (1/1)100% (14/14)100% (2/2)
ElasticsearchPersistentProperty$PropertyToFieldNameConverter (String, int): void 100% (1/1)100% (5/5)100% (1/1)
convert (ElasticsearchPersistentProperty): String 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.mapping;
17 
18import org.springframework.core.convert.converter.Converter;
19import org.springframework.data.mapping.PersistentProperty;
20 
21public interface ElasticsearchPersistentProperty extends PersistentProperty<ElasticsearchPersistentProperty>{
22 
23        String getFieldName();
24 
25    public enum PropertyToFieldNameConverter implements Converter<ElasticsearchPersistentProperty, String> {
26 
27        INSTANCE;
28 
29        public String convert(ElasticsearchPersistentProperty source) {
30            return source.getFieldName();
31        }
32    }
33 
34}

[all classes][org.springframework.data.elasticsearch.core.mapping]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/21.html b/site/emma/_files/21.html deleted file mode 100644 index 3ee7542c..00000000 --- a/site/emma/_files/21.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.mapping]

COVERAGE SUMMARY FOR SOURCE FILE [SimpleElasticsearchPersistentEntity.java]

nameclass, %method, %block, %line, %
SimpleElasticsearchPersistentEntity.java100% (1/1)75%  (3/4)72%  (57/79)73%  (10.9/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimpleElasticsearchPersistentEntity100% (1/1)75%  (3/4)72%  (57/79)73%  (10.9/15)
setApplicationContext (ApplicationContext): void 0%   (0/1)0%   (0/18)0%   (0/4)
SimpleElasticsearchPersistentEntity (TypeInformation): void 100% (1/1)93%  (51/55)99%  (8.9/9)
getIndexName (): String 100% (1/1)100% (3/3)100% (1/1)
getIndexType (): String 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.mapping;
17 
18import org.springframework.beans.BeansException;
19import org.springframework.context.ApplicationContext;
20import org.springframework.context.ApplicationContextAware;
21import org.springframework.context.expression.BeanFactoryAccessor;
22import org.springframework.context.expression.BeanFactoryResolver;
23import org.springframework.data.elasticsearch.annotations.Document;
24import org.springframework.data.mapping.model.BasicPersistentEntity;
25import org.springframework.data.util.TypeInformation;
26import org.springframework.expression.spel.support.StandardEvaluationContext;
27import org.springframework.util.Assert;
28 
29import java.util.Locale;
30 
31import static org.springframework.util.StringUtils.hasText;
32 
33/**
34 * Elasticsearch specific {@link org.springframework.data.mapping.PersistentEntity} implementation holding
35 *
36 * @param <T>
37 */
38public class SimpleElasticsearchPersistentEntity<T> extends BasicPersistentEntity<T, ElasticsearchPersistentProperty> implements
39        ElasticsearchPersistentEntity<T>, ApplicationContextAware {
40 
41    private final StandardEvaluationContext context;
42    private String indexName;
43    private String indexType;
44 
45    public SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation) {
46        super(typeInformation);
47        this.context = new StandardEvaluationContext();
48        Class<T> clazz = typeInformation.getType();
49        Assert.isTrue(clazz.isAnnotationPresent(Document.class),
50                clazz.getSimpleName() + " is not a Document. Make sure the document class is annotated with @Document(indexName=\"foo\")");
51        Document document = clazz.getAnnotation(Document.class);
52        Assert.hasText(document.indexName(), " Unknown indexName. Make sure the indexName is defined. e.g @Document(indexName=\"foo\")");
53        this.indexName = typeInformation.getType().getAnnotation(Document.class).indexName();
54        this.indexType = hasText(document.type())? document.type() : clazz.getSimpleName().toLowerCase(Locale.ENGLISH);
55    }
56 
57    @Override
58    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
59        context.addPropertyAccessor(new BeanFactoryAccessor());
60        context.setBeanResolver(new BeanFactoryResolver(applicationContext));
61        context.setRootObject(applicationContext);
62    }
63 
64    @Override
65    public String getIndexName() {
66        return indexName;
67    }
68 
69    @Override
70    public String getIndexType() {
71        return indexType;
72    }
73}

[all classes][org.springframework.data.elasticsearch.core.mapping]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/22.html b/site/emma/_files/22.html deleted file mode 100644 index d4daa2dd..00000000 --- a/site/emma/_files/22.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.mapping]

COVERAGE SUMMARY FOR SOURCE FILE [SimpleElasticsearchPersistentProperty.java]

nameclass, %method, %block, %line, %
SimpleElasticsearchPersistentProperty.java100% (1/1)80%  (4/5)96%  (44/46)91%  (10/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimpleElasticsearchPersistentProperty100% (1/1)80%  (4/5)96%  (44/46)91%  (10/11)
createAssociation (): Association 0%   (0/1)0%   (0/2)0%   (0/1)
<static initializer> 100% (1/1)100% (21/21)100% (6/6)
SimpleElasticsearchPersistentProperty (Field, PropertyDescriptor, PersistentE... 100% (1/1)100% (7/7)100% (2/2)
getFieldName (): String 100% (1/1)100% (4/4)100% (1/1)
isIdProperty (): boolean 100% (1/1)100% (12/12)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.mapping;
17 
18import org.springframework.data.mapping.Association;
19import org.springframework.data.mapping.PersistentEntity;
20import org.springframework.data.mapping.model.AnnotationBasedPersistentProperty;
21import org.springframework.data.mapping.model.SimpleTypeHolder;
22 
23import java.beans.PropertyDescriptor;
24import java.lang.reflect.Field;
25import java.util.HashSet;
26import java.util.Set;
27 
28/**
29 * Elasticsearch specific {@link org.springframework.data.mapping.PersistentProperty} implementation processing
30 */
31public class SimpleElasticsearchPersistentProperty extends AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty> implements
32                ElasticsearchPersistentProperty {
33 
34        private static final Set<Class<?>> SUPPORTED_ID_TYPES = new HashSet<Class<?>>();
35        private static final Set<String> SUPPORTED_ID_PROPERTY_NAMES = new HashSet<String>();
36 
37        static {
38                SUPPORTED_ID_TYPES.add(String.class);
39                SUPPORTED_ID_PROPERTY_NAMES.add("id");
40        SUPPORTED_ID_PROPERTY_NAMES.add("documentId");
41        }
42 
43        public SimpleElasticsearchPersistentProperty(Field field, PropertyDescriptor propertyDescriptor,
44                                                 PersistentEntity<?, ElasticsearchPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder) {
45                super(field, propertyDescriptor, owner, simpleTypeHolder);
46        }
47 
48        @Override
49        public String getFieldName() {
50                return field.getName();
51        }
52 
53        @Override
54        public boolean isIdProperty() {
55                return super.isIdProperty() || SUPPORTED_ID_PROPERTY_NAMES.contains(getFieldName());
56        }
57 
58        @Override
59        protected Association<ElasticsearchPersistentProperty> createAssociation() {
60                return null;
61        }
62 
63}

[all classes][org.springframework.data.elasticsearch.core.mapping]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/23.html b/site/emma/_files/23.html deleted file mode 100644 index 27c1b8c5..00000000 --- a/site/emma/_files/23.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core.mapping]

COVERAGE SUMMARY FOR SOURCE FILE [SimpleElasticsearchMappingContext.java]

nameclass, %method, %block, %line, %
SimpleElasticsearchMappingContext.java100% (1/1)100% (3/3)100% (16/16)100% (3/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimpleElasticsearchMappingContext100% (1/1)100% (3/3)100% (16/16)100% (3/3)
SimpleElasticsearchMappingContext (): void 100% (1/1)100% (3/3)100% (1/1)
createPersistentEntity (TypeInformation): SimpleElasticsearchPersistentEntity 100% (1/1)100% (5/5)100% (1/1)
createPersistentProperty (Field, PropertyDescriptor, SimpleElasticsearchPersi... 100% (1/1)100% (8/8)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core.mapping;
17 
18import org.springframework.data.mapping.context.AbstractMappingContext;
19import org.springframework.data.mapping.model.SimpleTypeHolder;
20import org.springframework.data.util.TypeInformation;
21 
22import java.beans.PropertyDescriptor;
23import java.lang.reflect.Field;
24 
25 
26public class SimpleElasticsearchMappingContext extends
27                AbstractMappingContext<SimpleElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> {
28 
29        @Override
30        protected <T> SimpleElasticsearchPersistentEntity<?> createPersistentEntity(TypeInformation<T> typeInformation) {
31                return new SimpleElasticsearchPersistentEntity<T>(typeInformation);
32        }
33 
34        @Override
35        protected ElasticsearchPersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor,
36                        SimpleElasticsearchPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) {
37                return new SimpleElasticsearchPersistentProperty(field, descriptor, owner, simpleTypeHolder);
38        }
39 
40}

[all classes][org.springframework.data.elasticsearch.core.mapping]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/24.html b/site/emma/_files/24.html deleted file mode 100644 index 8b24ce9a..00000000 --- a/site/emma/_files/24.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.client]

COVERAGE SUMMARY FOR SOURCE FILE [NodeClientFactoryBean.java]

nameclass, %method, %block, %line, %
NodeClientFactoryBean.java100% (1/1)86%  (6/7)80%  (24/30)75%  (9/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NodeClientFactoryBean100% (1/1)86%  (6/7)80%  (24/30)75%  (9/12)
NodeClientFactoryBean (boolean): void 0%   (0/1)0%   (0/6)0%   (0/3)
NodeClientFactoryBean (): void 100% (1/1)100% (3/3)100% (2/2)
afterPropertiesSet (): void 100% (1/1)100% (10/10)100% (2/2)
getObject (): NodeClient 100% (1/1)100% (3/3)100% (1/1)
getObjectType (): Class 100% (1/1)100% (2/2)100% (1/1)
isSingleton (): boolean 100% (1/1)100% (2/2)100% (1/1)
setLocal (boolean): void 100% (1/1)100% (4/4)100% (2/2)

1package org.springframework.data.elasticsearch.client;
2 
3import org.elasticsearch.client.Client;
4import org.elasticsearch.client.node.NodeClient;
5import org.springframework.beans.factory.FactoryBean;
6import org.springframework.beans.factory.InitializingBean;
7 
8import static org.elasticsearch.node.NodeBuilder.nodeBuilder;
9 
10public class NodeClientFactoryBean implements FactoryBean<NodeClient>, InitializingBean{
11 
12    private boolean local;
13    private NodeClient nodeClient;
14 
15    NodeClientFactoryBean() {
16    }
17 
18    public NodeClientFactoryBean(boolean local) {
19        this.local = local;
20    }
21 
22    @Override
23    public NodeClient getObject() throws Exception {
24        return nodeClient;
25    }
26 
27    @Override
28    public Class<? extends Client> getObjectType() {
29        return NodeClient.class;
30    }
31 
32    @Override
33    public boolean isSingleton() {
34        return true;
35    }
36 
37    @Override
38    public void afterPropertiesSet() throws Exception {
39        nodeClient = (NodeClient) nodeBuilder().local(this.local).node().client();
40    }
41 
42    public void setLocal(boolean local) {
43        this.local = local;
44    }
45}

[all classes][org.springframework.data.elasticsearch.client]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/25.html b/site/emma/_files/25.html deleted file mode 100644 index f4b72a8b..00000000 --- a/site/emma/_files/25.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.client]

COVERAGE SUMMARY FOR SOURCE FILE [TransportClientFactoryBean.java]

nameclass, %method, %block, %line, %
TransportClientFactoryBean.java100% (1/1)82%  (9/11)81%  (101/124)72%  (23/32)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TransportClientFactoryBean100% (1/1)82%  (9/11)81%  (101/124)72%  (23/32)
getObject (): TransportClient 0%   (0/1)0%   (0/3)0%   (0/1)
setProperties (Properties): void 0%   (0/1)0%   (0/4)0%   (0/2)
destroy (): void 100% (1/1)38%  (6/16)29%  (2/7)
settings (): Settings 100% (1/1)60%  (9/15)67%  (2/3)
<static initializer> 100% (1/1)100% (4/4)100% (1/1)
TransportClientFactoryBean (): void 100% (1/1)100% (3/3)100% (1/1)
afterPropertiesSet (): void 100% (1/1)100% (3/3)100% (2/2)
buildClient (): void 100% (1/1)100% (68/68)100% (11/11)
getObjectType (): Class 100% (1/1)100% (2/2)100% (1/1)
isSingleton (): boolean 100% (1/1)100% (2/2)100% (1/1)
setClusterNodes (String []): void 100% (1/1)100% (4/4)100% (2/2)

1package org.springframework.data.elasticsearch.client;
2 
3import org.elasticsearch.client.transport.TransportClient;
4import org.elasticsearch.common.settings.Settings;
5import org.elasticsearch.common.transport.InetSocketTransportAddress;
6import org.slf4j.Logger;
7import org.slf4j.LoggerFactory;
8import org.springframework.beans.factory.DisposableBean;
9import org.springframework.beans.factory.FactoryBean;
10import org.springframework.beans.factory.InitializingBean;
11import org.springframework.util.Assert;
12 
13import java.util.Properties;
14 
15import static org.apache.commons.lang.StringUtils.substringAfter;
16import static org.apache.commons.lang.StringUtils.substringBefore;
17import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
18 
19 
20public class TransportClientFactoryBean implements FactoryBean<TransportClient>, InitializingBean, DisposableBean {
21 
22    private static final Logger logger = LoggerFactory.getLogger(TransportClientFactoryBean.class);
23    private String[] clusterNodes;
24    private TransportClient client;
25    private Properties properties;
26    static final String COLON = ":";
27 
28    @Override
29    public void destroy() throws Exception {
30        try {
31            logger.info("Closing elasticSearch  client");
32            if (client != null) {
33                client.close();
34            }
35        } catch (final Exception e) {
36            logger.error("Error closing ElasticSearch client: ", e);
37        }
38    }
39 
40    @Override
41    public TransportClient getObject() throws Exception {
42        return client;
43    }
44 
45    @Override
46    public Class<TransportClient> getObjectType() {
47        return TransportClient.class;
48    }
49 
50    @Override
51    public boolean isSingleton() {
52        return false;
53    }
54 
55    @Override
56    public void afterPropertiesSet() throws Exception {
57        buildClient();
58    }
59 
60    protected void buildClient() throws Exception {
61        client =  new TransportClient(settings());
62        Assert.notEmpty(clusterNodes,"[Assertion failed] clusterNodes settings missing.");
63        for (String clusterNode : clusterNodes) {
64            String hostName = substringBefore(clusterNode, COLON);
65            String port = substringAfter(clusterNode, COLON);
66            Assert.hasText(hostName,"[Assertion failed] missing host name in 'clusterNodes'");
67            Assert.hasText(port,"[Assertion failed] missing port in 'clusterNodes'");
68            logger.info("adding transport node : " + clusterNode);
69            client.addTransportAddress(new InetSocketTransportAddress(hostName, Integer.valueOf(port)));
70        }
71        client.connectedNodes();
72    }
73 
74    private Settings settings(){
75        if(properties != null){
76            return settingsBuilder().put(properties).build();
77        }
78        return settingsBuilder()
79                .put("client.transport.sniff",true).build();
80    }
81 
82    public void setClusterNodes(String[] clusterNodes) {
83        this.clusterNodes = clusterNodes;
84    }
85 
86    public void setProperties(Properties properties) {
87        this.properties = properties;
88    }
89}

[all classes][org.springframework.data.elasticsearch.client]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/26.html b/site/emma/_files/26.html deleted file mode 100644 index c0e223ea..00000000 --- a/site/emma/_files/26.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchTemplate.java]

nameclass, %method, %block, %line, %
ElasticsearchTemplate.java100% (2/2)97%  (28/29)81%  (565/700)86%  (76.4/89)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchTemplate100% (1/1)96%  (26/27)79%  (513/648)85%  (70.4/83)
createIndex (String): boolean 0%   (0/1)0%   (0/19)0%   (0/1)
mapResult (String, Class): Object 100% (1/1)37%  (11/30)60%  (3/5)
bulkIndex (List): void 100% (1/1)39%  (30/76)55%  (6/11)
prepareIndex (IndexQuery): IndexRequestBuilder 100% (1/1)56%  (22/39)50%  (2/4)
createIndexIfNotCreated (String): boolean 100% (1/1)58%  (7/12)58%  (0.6/1)
prepareSearch (Query, Class): SearchRequestBuilder 100% (1/1)71%  (60/84)78%  (7/9)
queryForObject (CriteriaQuery, Class): Object 100% (1/1)95%  (35/37)97%  (2.9/3)
queryForObject (StringQuery, Class): Object 100% (1/1)95%  (35/37)97%  (2.9/3)
ElasticsearchTemplate (Client, ElasticsearchConverter): void 100% (1/1)97%  (28/29)99%  (6/6)
ElasticsearchTemplate (Client): void 100% (1/1)100% (5/5)100% (2/2)
access$000 (ElasticsearchTemplate, String, Class): Object 100% (1/1)100% (5/5)100% (1/1)
count (SearchQuery, Class): long 100% (1/1)100% (37/37)100% (5/5)
createIndex (Class): boolean 100% (1/1)100% (9/9)100% (2/2)
delete (Class, String): String 100% (1/1)100% (12/12)100% (2/2)
delete (DeleteQuery, Class): void 100% (1/1)100% (29/29)100% (3/3)
delete (String, String, String): String 100% (1/1)100% (11/11)100% (1/1)
getElasticsearchConverter (): ElasticsearchConverter 100% (1/1)100% (3/3)100% (1/1)
getPersistentEntityFor (Class): ElasticsearchPersistentEntity 100% (1/1)100% (7/7)100% (1/1)
index (IndexQuery): String 100% (1/1)100% (8/8)100% (1/1)
indexExists (String): boolean 100% (1/1)100% (16/16)100% (1/1)
mapResults (SearchResponse, Class, Pageable): Page 100% (1/1)100% (11/11)100% (2/2)
queryForObject (GetQuery, Class): Object 100% (1/1)100% (23/23)100% (3/3)
queryForPage (CriteriaQuery, Class): Page 100% (1/1)100% (24/24)100% (3/3)
queryForPage (SearchQuery, Class): Page 100% (1/1)100% (28/28)100% (5/5)
queryForPage (StringQuery, Class): Page 100% (1/1)100% (18/18)100% (2/2)
refresh (Class, boolean): void 100% (1/1)100% (22/22)100% (3/3)
refresh (String, boolean): void 100% (1/1)100% (17/17)100% (2/2)
     
class ElasticsearchTemplate$1100% (1/1)100% (2/2)100% (52/52)100% (7/7)
ElasticsearchTemplate$1 (ElasticsearchTemplate, Class, Pageable): void 100% (1/1)100% (12/12)100% (1/1)
mapResults (SearchResponse): Page 100% (1/1)100% (40/40)100% (6/6)

1package org.springframework.data.elasticsearch.core;
2 
3import org.codehaus.jackson.map.DeserializationConfig;
4import org.codehaus.jackson.map.ObjectMapper;
5import org.elasticsearch.action.bulk.BulkItemResponse;
6import org.elasticsearch.action.bulk.BulkRequestBuilder;
7import org.elasticsearch.action.bulk.BulkResponse;
8import org.elasticsearch.action.count.CountRequestBuilder;
9import org.elasticsearch.action.get.GetResponse;
10import org.elasticsearch.action.index.IndexRequestBuilder;
11import org.elasticsearch.action.search.SearchRequestBuilder;
12import org.elasticsearch.action.search.SearchResponse;
13import org.elasticsearch.client.Client;
14import org.elasticsearch.client.Requests;
15import org.elasticsearch.common.collect.MapBuilder;
16import org.elasticsearch.index.query.QueryBuilder;
17import org.elasticsearch.search.SearchHit;
18import org.elasticsearch.search.sort.SortOrder;
19import org.springframework.data.domain.Page;
20import org.springframework.data.domain.PageImpl;
21import org.springframework.data.domain.Pageable;
22import org.springframework.data.domain.Sort;
23import org.springframework.data.elasticsearch.ElasticsearchException;
24import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter;
25import org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter;
26import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentEntity;
27import org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext;
28import org.springframework.data.elasticsearch.core.query.*;
29import org.springframework.util.Assert;
30 
31import java.io.IOException;
32import java.util.ArrayList;
33import java.util.HashMap;
34import java.util.List;
35import java.util.Map;
36 
37import static org.apache.commons.lang.StringUtils.isBlank;
38import static org.elasticsearch.action.search.SearchType.DFS_QUERY_THEN_FETCH;
39import static org.elasticsearch.client.Requests.indicesExistsRequest;
40import static org.elasticsearch.client.Requests.refreshRequest;
41 
42 
43public class ElasticsearchTemplate implements ElasticsearchOperations {
44 
45    private Client client;
46    private ElasticsearchConverter elasticsearchConverter;
47 
48    private ObjectMapper objectMapper = new ObjectMapper();
49 
50    {
51        objectMapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
52    }
53 
54    public ElasticsearchTemplate(Client client) {
55        this(client, null);
56    }
57 
58    public ElasticsearchTemplate(Client client, ElasticsearchConverter elasticsearchConverter) {
59        this.client = client;
60        this.elasticsearchConverter = (elasticsearchConverter == null)? new MappingElasticsearchConverter(new SimpleElasticsearchMappingContext()) : elasticsearchConverter ;
61    }
62 
63 
64    @Override
65    public <T> boolean createIndex(Class<T> clazz) {
66        ElasticsearchPersistentEntity<T> persistentEntity = getPersistentEntityFor(clazz);
67        return createIndexIfNotCreated(persistentEntity.getIndexName());
68    }
69 
70    @Override
71    public ElasticsearchConverter getElasticsearchConverter() {
72        return elasticsearchConverter;
73    }
74 
75    @Override
76    public <T> T queryForObject(GetQuery query, Class<T> clazz) {
77        ElasticsearchPersistentEntity<T> persistentEntity = getPersistentEntityFor(clazz);
78        GetResponse response = client.prepareGet(persistentEntity.getIndexName(), persistentEntity.getIndexType(), query.getId())
79                .execute().actionGet();
80        return mapResult(response.getSourceAsString(), clazz);
81    }
82 
83    @Override
84    public <T> T queryForObject(CriteriaQuery query, Class<T> clazz) {
85        Page<T> page =  queryForPage(query,clazz);
86        Assert.isTrue(page.getTotalElements() < 2, "Expected 1 but found "+  page.getTotalElements() +" results");
87        return page.getTotalElements() > 0? page.getContent().get(0) : null;
88    }
89 
90    @Override
91    public <T> T queryForObject(StringQuery query, Class<T> clazz) {
92        Page<T> page =  queryForPage(query,clazz);
93        Assert.isTrue(page.getTotalElements() < 2, "Expected 1 but found "+  page.getTotalElements() +" results");
94        return page.getTotalElements() > 0? page.getContent().get(0) : null;
95    }
96 
97    @Override
98    public <T> Page<T> queryForPage(SearchQuery query, Class<T> clazz) {
99        SearchRequestBuilder searchRequestBuilder = prepareSearch(query,clazz);
100        if(query.getElasticsearchFilter() != null){
101            searchRequestBuilder.setFilter(query.getElasticsearchFilter());
102        }
103        SearchResponse response = searchRequestBuilder.setQuery(query.getElasticsearchQuery()).execute().actionGet();
104        return  mapResults(response, clazz, query.getPageable());
105    }
106 
107    @Override
108    public <T> Page<T> queryForPage(CriteriaQuery query, Class<T> clazz) {
109        QueryBuilder elasticsearchQuery = new CriteriaQueryProcessor().createQueryFromCriteria(query.getCriteria());
110        SearchResponse response =  prepareSearch(query,clazz)
111                .setQuery(elasticsearchQuery)
112                .execute().actionGet();
113        return  mapResults(response, clazz, query.getPageable());
114    }
115 
116    @Override
117    public <T> Page<T> queryForPage(StringQuery query, Class<T> clazz) {
118        SearchResponse response =  prepareSearch(query,clazz)
119                .setQuery(query.getSource())
120                .execute().actionGet();
121        return  mapResults(response, clazz, query.getPageable());
122    }
123 
124    @Override
125    public <T> long count(SearchQuery query, Class<T> clazz) {
126        ElasticsearchPersistentEntity<T> persistentEntity = getPersistentEntityFor(clazz);
127        CountRequestBuilder countRequestBuilder = client.prepareCount(persistentEntity.getIndexName())
128                .setTypes(persistentEntity.getIndexType());
129        if(query.getElasticsearchQuery() != null){
130            countRequestBuilder.setQuery(query.getElasticsearchQuery());
131        }
132        return countRequestBuilder.execute().actionGet().count();
133    }
134 
135    @Override
136    public String index(IndexQuery query) {
137        return  prepareIndex(query)
138                .execute()
139                .actionGet().getId();
140    }
141 
142    @Override
143    public void bulkIndex(List<IndexQuery> queries) {
144        BulkRequestBuilder bulkRequest = client.prepareBulk();
145        for(IndexQuery query : queries){
146            bulkRequest.add(prepareIndex(query));
147        }
148        BulkResponse bulkResponse = bulkRequest.execute().actionGet();
149        if (bulkResponse.hasFailures()) {
150            Map<String, String> failedDocuments = new HashMap<String, String>();
151            for (BulkItemResponse item : bulkResponse.items()) {
152                if (item.failed())
153                    failedDocuments.put(item.getId(), item.failureMessage());
154            }
155            throw new ElasticsearchException("Bulk indexing has failures. Use ElasticsearchException.getFailedDocuments() for detailed messages [" + failedDocuments+"]", failedDocuments);
156        }
157    }
158 
159    @Override
160    public String delete(String indexName, String type, String id) {
161        return client.prepareDelete(indexName, type, id)
162                .execute().actionGet().getId();
163    }
164 
165    @Override
166    public <T> String delete(Class<T> clazz, String id) {
167        ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(clazz);
168        return delete(persistentEntity.getIndexName(), persistentEntity.getIndexType(), id);
169    }
170 
171    @Override
172    public <T> void delete(DeleteQuery query, Class<T> clazz) {
173        ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(clazz);
174        client.prepareDeleteByQuery(persistentEntity.getIndexName())
175                .setTypes(persistentEntity.getIndexType())
176                .setQuery(query.getElasticsearchQuery())
177                .execute().actionGet();
178    }
179 
180    private boolean createIndexIfNotCreated(String indexName) {
181        return  indexExists(indexName) ||  createIndex(indexName);
182    }
183 
184    private boolean indexExists(String indexName) {
185        return client.admin()
186                .indices()
187                .exists(indicesExistsRequest(indexName)).actionGet().exists();
188    }
189 
190    private boolean createIndex(String indexName) {
191        return client.admin().indices().create(Requests.createIndexRequest(indexName).
192                settings(new MapBuilder<String, String>().put("index.refresh_interval", "-1").map())).actionGet().acknowledged();
193    }
194 
195    private <T> SearchRequestBuilder prepareSearch(Query query, Class<T> clazz){
196        int startRecord=0;
197        if(query.getPageable() != null){
198            startRecord = ((query.getPageable().getPageNumber() - 1) * query.getPageable().getPageSize());
199        }
200        ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(clazz);
201        SearchRequestBuilder searchRequestBuilder = client.prepareSearch(persistentEntity.getIndexName())
202                .setSearchType(DFS_QUERY_THEN_FETCH)
203                .setTypes(persistentEntity.getIndexType())
204                .setFrom(startRecord < 0 ? 0 : startRecord)
205                .setSize(query.getPageable() != null ? query.getPageable().getPageSize() : 10);
206 
207        if(query.getSort() != null){
208            for(Sort.Order order : query.getSort()){
209                searchRequestBuilder.addSort(order.getProperty(), order.getDirection() == Sort.Direction.DESC? SortOrder.DESC : SortOrder.ASC);
210            }
211        }
212        return searchRequestBuilder;
213    }
214 
215    private IndexRequestBuilder prepareIndex(IndexQuery query){
216        try {
217            ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(query.getObject().getClass());
218            return client.prepareIndex(persistentEntity.getIndexName(), persistentEntity.getIndexType(), query.getId())
219                    .setSource(objectMapper.writeValueAsString(query.getObject()));
220        } catch (IOException e) {
221            throw new ElasticsearchException("failed to index the document [id: " + query.getId() +"]",e);
222        }
223    }
224 
225    public void refresh(String indexName, boolean waitForOperation) {
226        client.admin().indices()
227                .refresh(refreshRequest(indexName).waitForOperations(waitForOperation)).actionGet();
228    }
229 
230    public <T> void refresh(Class<T> clazz, boolean waitForOperation) {
231        ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(clazz);
232        client.admin().indices()
233                .refresh(refreshRequest(persistentEntity.getIndexName()).waitForOperations(waitForOperation)).actionGet();
234    }
235 
236    private ElasticsearchPersistentEntity getPersistentEntityFor(Class clazz){
237        return elasticsearchConverter.getMappingContext().getPersistentEntity(clazz);
238    }
239 
240    private <T> Page<T> mapResults(SearchResponse response, final Class<T> elementType,final Pageable pageable){
241        ResultsMapper<T> resultsMapper =  new ResultsMapper<T>(){
242            @Override
243            public Page<T> mapResults(SearchResponse response) {
244                long totalHits =  response.getHits().totalHits();
245                List<T> results = new ArrayList<T>();
246                for (SearchHit hit : response.getHits()) {
247                    if (hit != null) {
248                        results.add(mapResult(hit.sourceAsString(), elementType));
249                    }
250                }
251                return new PageImpl<T>(results, pageable, totalHits);
252            }
253        };
254        return resultsMapper.mapResults(response);
255    }
256 
257    private <T> T mapResult(String source, Class<T> clazz){
258        if(isBlank(source)){
259            return null;
260        }
261        try {
262            return objectMapper.readValue(source, clazz);
263        } catch (IOException e) {
264            throw new ElasticsearchException("failed to map source [ " + source + "] to class " + clazz.getSimpleName() , e);
265        }
266    }
267}

[all classes][org.springframework.data.elasticsearch.core]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/27.html b/site/emma/_files/27.html deleted file mode 100644 index 1ba3fc61..00000000 --- a/site/emma/_files/27.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.core]

COVERAGE SUMMARY FOR SOURCE FILE [CriteriaQueryProcessor.java]

nameclass, %method, %block, %line, %
CriteriaQueryProcessor.java100% (2/2)86%  (6/7)89%  (253/284)88%  (44.2/50)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CriteriaQueryProcessor$1100% (1/1)100% (1/1)87%  (47/54)87%  (0.9/1)
<static initializer> 100% (1/1)87%  (47/54)87%  (0.9/1)
     
class CriteriaQueryProcessor100% (1/1)83%  (5/6)90%  (206/230)89%  (44.4/50)
buildNegationQuery (String, Iterator): QueryBuilder 0%   (0/1)0%   (0/17)0%   (0/4)
processCriteriaEntry (Criteria$OperationKey, Object, String): QueryBuilder 100% (1/1)92%  (83/90)85%  (11/13)
CriteriaQueryProcessor (): void 100% (1/1)100% (3/3)100% (2/2)
addBoost (QueryBuilder, float): void 100% (1/1)100% (13/13)100% (5/5)
createQueryFragmentForCriteria (Criteria): QueryBuilder 100% (1/1)100% (65/65)100% (16/16)
createQueryFromCriteria (Criteria): QueryBuilder 100% (1/1)100% (42/42)100% (11/11)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.core;
17 
18import org.elasticsearch.index.query.BoolQueryBuilder;
19import org.elasticsearch.index.query.BoostableQueryBuilder;
20import org.elasticsearch.index.query.QueryBuilder;
21import org.springframework.data.elasticsearch.core.query.Criteria;
22import org.springframework.util.Assert;
23 
24import java.util.Iterator;
25import java.util.ListIterator;
26 
27import static org.elasticsearch.index.query.QueryBuilders.*;
28import static org.springframework.data.elasticsearch.core.query.Criteria.OperationKey;
29 
30class CriteriaQueryProcessor {
31 
32 
33    QueryBuilder createQueryFromCriteria(Criteria criteria) {
34        BoolQueryBuilder query = boolQuery();
35 
36        ListIterator<Criteria> chainIterator = criteria.getCriteriaChain().listIterator();
37        while (chainIterator.hasNext()) {
38            Criteria chainedCriteria = chainIterator.next();
39            if(chainedCriteria.isOr()){
40                query.should(createQueryFragmentForCriteria(chainedCriteria));
41            }else if(chainedCriteria.isNegating()){
42                query.mustNot(createQueryFragmentForCriteria(chainedCriteria));
43            }else{
44                query.must(createQueryFragmentForCriteria(chainedCriteria));
45            }
46        }
47        return query;
48    }
49 
50 
51    private QueryBuilder createQueryFragmentForCriteria(Criteria chainedCriteria) {
52        Iterator<Criteria.CriteriaEntry> it = chainedCriteria.getCriteriaEntries().iterator();
53        boolean singeEntryCriteria = (chainedCriteria.getCriteriaEntries().size() == 1);
54 
55        String fieldName = chainedCriteria.getField().getName();
56        Assert.notNull(fieldName,"Unknown field");
57        QueryBuilder query = null;
58 
59        if(singeEntryCriteria){
60            Criteria.CriteriaEntry entry = it.next();
61            query = processCriteriaEntry(entry.getKey(), entry.getValue(), fieldName);
62        }else{
63            query = boolQuery();
64            while (it.hasNext()){
65                Criteria.CriteriaEntry entry = it.next();
66                ((BoolQueryBuilder)query).must(processCriteriaEntry(entry.getKey(), entry.getValue(), fieldName));
67            }
68        }
69 
70        addBoost(query, chainedCriteria.getBoost());
71        return query;
72    }
73 
74 
75    private QueryBuilder processCriteriaEntry(OperationKey key, Object value, String fieldName) {
76        if (value == null) {
77            return null;
78        }
79        QueryBuilder query = null;
80 
81        switch (key){
82            case  EQUALS:
83                query = fieldQuery(fieldName, value); break;
84            case CONTAINS:
85                query = fieldQuery(fieldName,"*" + value + "*").analyzeWildcard(true); break;
86            case STARTS_WITH:
87                query = fieldQuery(fieldName,value +"*").analyzeWildcard(true); break;
88            case ENDS_WITH:
89                query = fieldQuery(fieldName, "*"+value).analyzeWildcard(true); break;
90            case EXPRESSION:
91                query = queryString((String)value).field(fieldName); break;
92            case BETWEEN:
93                Object[] ranges = (Object[]) value;
94                query = rangeQuery(fieldName).from(ranges[0]).to(ranges[1]); break;
95            case FUZZY:
96                query = fuzzyQuery(fieldName, (String) value); break;
97 
98        }
99 
100        return query;
101    }
102 
103    private QueryBuilder buildNegationQuery(String fieldName, Iterator<Criteria.CriteriaEntry> it){
104        BoolQueryBuilder notQuery =  boolQuery();
105        while (it.hasNext()){
106            notQuery.mustNot(fieldQuery(fieldName, it.next().getValue()));
107        }
108        return notQuery;
109    }
110 
111    private void addBoost(QueryBuilder query, float boost){
112        if(Float.isNaN(boost)){
113            return;
114        }
115        if(query instanceof BoostableQueryBuilder){
116            ((BoostableQueryBuilder)query).boost(boost);
117        }
118 
119    }
120 
121 
122}

[all classes][org.springframework.data.elasticsearch.core]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/28.html b/site/emma/_files/28.html deleted file mode 100644 index 5e9ece99..00000000 --- a/site/emma/_files/28.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.query]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchPartQuery.java]

nameclass, %method, %block, %line, %
ElasticsearchPartQuery.java100% (1/1)100% (3/3)86%  (56/65)90%  (9/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchPartQuery100% (1/1)100% (3/3)86%  (56/65)90%  (9/10)
execute (Object []): Object 100% (1/1)74%  (25/34)80%  (4/5)
ElasticsearchPartQuery (ElasticsearchQueryMethod, ElasticsearchOperations): void 100% (1/1)100% (20/20)100% (4/4)
createQuery (ParametersParameterAccessor): CriteriaQuery 100% (1/1)100% (11/11)100% (1/1)

1package org.springframework.data.elasticsearch.repository.query;
2 
3 
4import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
5import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty;
6import org.springframework.data.elasticsearch.core.query.CriteriaQuery;
7import org.springframework.data.elasticsearch.repository.query.parser.ElasticsearchQueryCreator;
8import org.springframework.data.mapping.context.MappingContext;
9import org.springframework.data.repository.query.ParametersParameterAccessor;
10import org.springframework.data.repository.query.parser.PartTree;
11 
12public class ElasticsearchPartQuery extends AbstractElasticsearchRepositoryQuery{
13 
14    private final PartTree tree;
15    private final MappingContext<?, ElasticsearchPersistentProperty> mappingContext;
16 
17 
18    public ElasticsearchPartQuery(ElasticsearchQueryMethod method, ElasticsearchOperations elasticsearchOperations) {
19        super(method, elasticsearchOperations);
20        this.tree = new PartTree(method.getName(), method.getEntityInformation().getJavaType());
21        this.mappingContext = elasticsearchOperations.getElasticsearchConverter().getMappingContext();
22    }
23 
24    @Override
25    public Object execute(Object[] parameters) {
26        ParametersParameterAccessor accessor = new ParametersParameterAccessor(queryMethod.getParameters(), parameters);
27        CriteriaQuery query = createQuery(accessor);
28        if(queryMethod.isPageQuery()){
29            return  elasticsearchOperations.queryForPage(query, queryMethod.getEntityInformation().getJavaType());
30        }
31        return elasticsearchOperations.queryForObject(query, queryMethod.getEntityInformation().getJavaType());
32    }
33 
34    public CriteriaQuery createQuery(ParametersParameterAccessor accessor) {
35        return new ElasticsearchQueryCreator(tree, accessor, mappingContext).createQuery();
36    }
37}

[all classes][org.springframework.data.elasticsearch.repository.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/29.html b/site/emma/_files/29.html deleted file mode 100644 index af5fd673..00000000 --- a/site/emma/_files/29.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.query]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchStringQuery.java]

nameclass, %method, %block, %line, %
ElasticsearchStringQuery.java100% (1/1)100% (6/6)91%  (134/148)91%  (30/33)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchStringQuery100% (1/1)100% (6/6)91%  (134/148)91%  (30/33)
execute (Object []): Object 100% (1/1)74%  (25/34)80%  (4/5)
getParameterWithIndex (ParametersParameterAccessor, int): String 100% (1/1)80%  (20/25)67%  (4/6)
<static initializer> 100% (1/1)100% (4/4)100% (1/1)
ElasticsearchStringQuery (ElasticsearchQueryMethod, ElasticsearchOperations, ... 100% (1/1)100% (46/46)100% (11/11)
createQuery (ParametersParameterAccessor): StringQuery 100% (1/1)100% (11/11)100% (2/2)
replacePlaceholders (String, ParametersParameterAccessor): String 100% (1/1)100% (28/28)100% (8/8)

1package org.springframework.data.elasticsearch.repository.query;
2 
3 
4import org.springframework.core.convert.support.GenericConversionService;
5import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
6import org.springframework.data.elasticsearch.core.convert.DateTimeConverters;
7import org.springframework.data.elasticsearch.core.query.StringQuery;
8import org.springframework.data.repository.query.ParametersParameterAccessor;
9import org.springframework.util.Assert;
10 
11import java.util.regex.Matcher;
12import java.util.regex.Pattern;
13 
14public class ElasticsearchStringQuery extends AbstractElasticsearchRepositoryQuery{
15 
16    private static final Pattern PARAMETER_PLACEHOLDER = Pattern.compile("\\?(\\d+)");
17    private String query;
18 
19    private final GenericConversionService conversionService = new GenericConversionService();
20 
21    {
22        if (!conversionService.canConvert(java.util.Date.class, String.class)) {
23            conversionService.addConverter(DateTimeConverters.JavaDateConverter.INSTANCE);
24        }
25        if (!conversionService.canConvert(org.joda.time.ReadableInstant.class, String.class)) {
26            conversionService.addConverter(DateTimeConverters.JodaDateTimeConverter.INSTANCE);
27        }
28        if (!conversionService.canConvert(org.joda.time.LocalDateTime.class, String.class)) {
29            conversionService.addConverter(DateTimeConverters.JodaLocalDateTimeConverter.INSTANCE);
30        }
31 
32    }
33 
34    public ElasticsearchStringQuery(ElasticsearchQueryMethod queryMethod, ElasticsearchOperations elasticsearchOperations, String query) {
35        super(queryMethod, elasticsearchOperations);
36        Assert.notNull(query, "Query cannot be empty");
37        this.query = query;
38    }
39 
40    @Override
41    public Object execute(Object[] parameters) {
42        ParametersParameterAccessor accessor = new ParametersParameterAccessor(queryMethod.getParameters(), parameters);
43        StringQuery stringQuery = createQuery(accessor);
44        if(queryMethod.isPageQuery()){
45            return  elasticsearchOperations.queryForPage(stringQuery, queryMethod.getEntityInformation().getJavaType());
46        }
47        return elasticsearchOperations.queryForObject(stringQuery, queryMethod.getEntityInformation().getJavaType());
48    }
49 
50 
51    protected StringQuery createQuery(ParametersParameterAccessor parameterAccessor) {
52        String queryString = replacePlaceholders(this.query, parameterAccessor);
53        return new StringQuery(queryString);
54    }
55 
56    private String replacePlaceholders(String input, ParametersParameterAccessor accessor) {
57        Matcher matcher = PARAMETER_PLACEHOLDER.matcher(input);
58        String result = input;
59        while (matcher.find()) {
60            String group = matcher.group();
61            int index = Integer.parseInt(matcher.group(1));
62            result = result.replace(group, getParameterWithIndex(accessor, index));
63        }
64        return result;
65    }
66 
67    private String getParameterWithIndex(ParametersParameterAccessor accessor, int index) {
68        Object parameter = accessor.getBindableValue(index);
69        if (parameter == null) {
70            return "null";
71        }
72        if (conversionService.canConvert(parameter.getClass(), String.class)) {
73            return conversionService.convert(parameter, String.class);
74        }
75        return parameter.toString();
76    }
77}

[all classes][org.springframework.data.elasticsearch.repository.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2a.html b/site/emma/_files/2a.html deleted file mode 100644 index c9de2373..00000000 --- a/site/emma/_files/2a.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.query]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchQueryMethod.java]

nameclass, %method, %block, %line, %
ElasticsearchQueryMethod.java100% (1/1)100% (4/4)98%  (40/41)99%  (7.9/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchQueryMethod100% (1/1)100% (4/4)98%  (40/41)99%  (7.9/8)
getAnnotatedQuery (): String 100% (1/1)92%  (12/13)96%  (1.9/2)
ElasticsearchQueryMethod (Method, RepositoryMetadata, ElasticsearchEntityInfo... 100% (1/1)100% (15/15)100% (4/4)
getQueryAnnotation (): Query 100% (1/1)100% (6/6)100% (1/1)
hasAnnotatedQuery (): boolean 100% (1/1)100% (7/7)100% (1/1)

1package org.springframework.data.elasticsearch.repository.query;
2 
3import org.springframework.core.annotation.AnnotationUtils;
4import org.springframework.data.elasticsearch.annotations.Query;
5import org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformation;
6import org.springframework.data.elasticsearch.repository.support.ElasticsearchEntityInformationCreator;
7import org.springframework.data.repository.core.RepositoryMetadata;
8import org.springframework.data.repository.query.QueryMethod;
9import org.springframework.util.StringUtils;
10 
11import java.lang.reflect.Method;
12 
13 
14public class ElasticsearchQueryMethod extends QueryMethod {
15 
16    private final ElasticsearchEntityInformation<?, ?> entityInformation;
17    private Method method;
18 
19    public ElasticsearchQueryMethod(Method method, RepositoryMetadata metadata, ElasticsearchEntityInformationCreator elasticsearchEntityInformationCreator) {
20        super(method, metadata);
21        this.entityInformation = elasticsearchEntityInformationCreator.getEntityInformation(metadata.getReturnedDomainClass(method));
22        this.method = method;
23    }
24 
25    public boolean hasAnnotatedQuery() {
26        return getQueryAnnotation() != null;
27    }
28 
29    public String getAnnotatedQuery() {
30        String query = (String) AnnotationUtils.getValue(getQueryAnnotation(), "value");
31        return StringUtils.hasText(query) ? query : null;
32    }
33 
34    private Query getQueryAnnotation() {
35        return this.method.getAnnotation(Query.class);
36    }
37 
38}

[all classes][org.springframework.data.elasticsearch.repository.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2b.html b/site/emma/_files/2b.html deleted file mode 100644 index 1e557648..00000000 --- a/site/emma/_files/2b.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.query]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractElasticsearchRepositoryQuery.java]

nameclass, %method, %block, %line, %
AbstractElasticsearchRepositoryQuery.java100% (1/1)100% (2/2)100% (12/12)100% (5/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractElasticsearchRepositoryQuery100% (1/1)100% (2/2)100% (12/12)100% (5/5)
AbstractElasticsearchRepositoryQuery (ElasticsearchQueryMethod, Elasticsearch... 100% (1/1)100% (9/9)100% (4/4)
getQueryMethod (): QueryMethod 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.query;
17 
18import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
19import org.springframework.data.repository.query.QueryMethod;
20import org.springframework.data.repository.query.RepositoryQuery;
21 
22 
23public abstract class AbstractElasticsearchRepositoryQuery implements RepositoryQuery {
24 
25    protected ElasticsearchQueryMethod queryMethod;
26    protected ElasticsearchOperations elasticsearchOperations;
27 
28    public AbstractElasticsearchRepositoryQuery(ElasticsearchQueryMethod queryMethod, ElasticsearchOperations elasticsearchOperations) {
29        this.queryMethod = queryMethod;
30        this.elasticsearchOperations = elasticsearchOperations;
31    }
32 
33    @Override
34    public QueryMethod getQueryMethod() {
35        return queryMethod;
36    }
37 
38}

[all classes][org.springframework.data.elasticsearch.repository.query]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2c.html b/site/emma/_files/2c.html deleted file mode 100644 index 195218d2..00000000 --- a/site/emma/_files/2c.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.config]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchNamespaceHandler.java]

nameclass, %method, %block, %line, %
ElasticsearchNamespaceHandler.java100% (1/1)100% (2/2)100% (29/29)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchNamespaceHandler100% (1/1)100% (2/2)100% (29/29)100% (7/7)
ElasticsearchNamespaceHandler (): void 100% (1/1)100% (3/3)100% (1/1)
init (): void 100% (1/1)100% (26/26)100% (6/6)

1package org.springframework.data.elasticsearch.config;
2 
3import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
4import org.springframework.data.elasticsearch.repository.config.ElasticsearchRepositoryConfigExtension;
5import org.springframework.data.repository.config.RepositoryBeanDefinitionParser;
6import org.springframework.data.repository.config.RepositoryConfigurationExtension;
7 
8 
9public class ElasticsearchNamespaceHandler extends NamespaceHandlerSupport{
10 
11    @Override
12    public void init() {
13        RepositoryConfigurationExtension extension = new ElasticsearchRepositoryConfigExtension();
14                RepositoryBeanDefinitionParser parser = new RepositoryBeanDefinitionParser(extension);
15 
16                registerBeanDefinitionParser("repositories", parser);
17                registerBeanDefinitionParser("node-client", new NodeClientBeanDefinitionParser());
18                registerBeanDefinitionParser("transport-client", new TransportClientBeanDefinitionParser());
19    }
20}

[all classes][org.springframework.data.elasticsearch.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2d.html b/site/emma/_files/2d.html deleted file mode 100644 index f5480b38..00000000 --- a/site/emma/_files/2d.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.config]

COVERAGE SUMMARY FOR SOURCE FILE [NodeClientBeanDefinitionParser.java]

nameclass, %method, %block, %line, %
NodeClientBeanDefinitionParser.java100% (1/1)100% (4/4)100% (35/35)100% (9/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NodeClientBeanDefinitionParser100% (1/1)100% (4/4)100% (35/35)100% (9/9)
NodeClientBeanDefinitionParser (): void 100% (1/1)100% (3/3)100% (1/1)
getSourcedBeanDefinition (BeanDefinitionBuilder, Element, ParserContext): Abs... 100% (1/1)100% (10/10)100% (3/3)
parseInternal (Element, ParserContext): AbstractBeanDefinition 100% (1/1)100% (13/13)100% (3/3)
setLocalSettings (Element, BeanDefinitionBuilder): void 100% (1/1)100% (9/9)100% (2/2)

1package org.springframework.data.elasticsearch.config;
2 
3import org.springframework.beans.factory.support.AbstractBeanDefinition;
4import org.springframework.beans.factory.support.BeanDefinitionBuilder;
5import org.springframework.beans.factory.xml.AbstractBeanDefinitionParser;
6import org.springframework.beans.factory.xml.ParserContext;
7import org.springframework.data.elasticsearch.client.NodeClientFactoryBean;
8import org.w3c.dom.Element;
9 
10 
11public class NodeClientBeanDefinitionParser extends AbstractBeanDefinitionParser {
12 
13    @Override
14    protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
15        BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(NodeClientFactoryBean.class);
16        setLocalSettings(element,builder);
17        return getSourcedBeanDefinition(builder, element, parserContext);
18    }
19 
20    private void setLocalSettings(Element element, BeanDefinitionBuilder builder) {
21        builder.addPropertyValue("local", Boolean.valueOf(element.getAttribute("local")));
22    }
23 
24 
25    private AbstractBeanDefinition getSourcedBeanDefinition(BeanDefinitionBuilder builder, Element source,
26                                                            ParserContext context) {
27        AbstractBeanDefinition definition = builder.getBeanDefinition();
28        definition.setSource(context.extractSource(source));
29        return definition;
30    }
31}

[all classes][org.springframework.data.elasticsearch.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2e.html b/site/emma/_files/2e.html deleted file mode 100644 index 8c5f1e5e..00000000 --- a/site/emma/_files/2e.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.config]

COVERAGE SUMMARY FOR SOURCE FILE [TransportClientBeanDefinitionParser.java]

nameclass, %method, %block, %line, %
TransportClientBeanDefinitionParser.java100% (1/1)100% (4/4)100% (36/36)100% (9/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TransportClientBeanDefinitionParser100% (1/1)100% (4/4)100% (36/36)100% (9/9)
TransportClientBeanDefinitionParser (): void 100% (1/1)100% (3/3)100% (1/1)
getSourcedBeanDefinition (BeanDefinitionBuilder, Element, ParserContext): Abs... 100% (1/1)100% (10/10)100% (3/3)
parseInternal (Element, ParserContext): AbstractBeanDefinition 100% (1/1)100% (13/13)100% (3/3)
setClusterNodes (Element, BeanDefinitionBuilder): void 100% (1/1)100% (10/10)100% (2/2)

1package org.springframework.data.elasticsearch.config;
2 
3import org.springframework.beans.factory.support.AbstractBeanDefinition;
4import org.springframework.beans.factory.support.BeanDefinitionBuilder;
5import org.springframework.beans.factory.xml.AbstractBeanDefinitionParser;
6import org.springframework.beans.factory.xml.ParserContext;
7import org.springframework.data.elasticsearch.client.TransportClientFactoryBean;
8import org.w3c.dom.Element;
9 
10import static org.apache.commons.lang.StringUtils.split;
11 
12 
13public class TransportClientBeanDefinitionParser extends AbstractBeanDefinitionParser {
14 
15    private static final String SEPARATOR_CHARS = ",";
16 
17    @Override
18    protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
19        BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(TransportClientFactoryBean.class);
20        setClusterNodes(element, builder);
21        return getSourcedBeanDefinition(builder,element, parserContext);
22    }
23 
24    private void setClusterNodes(Element element, BeanDefinitionBuilder builder){
25        builder.addPropertyValue("clusterNodes", split(element.getAttribute("cluster-nodes"), SEPARATOR_CHARS));
26    }
27 
28    private AbstractBeanDefinition getSourcedBeanDefinition(BeanDefinitionBuilder builder, Element source,
29                                                            ParserContext context) {
30        AbstractBeanDefinition definition = builder.getBeanDefinition();
31        definition.setSource(context.extractSource(source));
32        return definition;
33    }
34}

[all classes][org.springframework.data.elasticsearch.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/2f.html b/site/emma/_files/2f.html deleted file mode 100644 index 51d1f27e..00000000 --- a/site/emma/_files/2f.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.config]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchRepositoriesRegistrar.java]

nameclass, %method, %block, %line, %
ElasticsearchRepositoriesRegistrar.java100% (1/1)100% (3/3)100% (9/9)100% (3/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchRepositoriesRegistrar100% (1/1)100% (3/3)100% (9/9)100% (3/3)
ElasticsearchRepositoriesRegistrar (): void 100% (1/1)100% (3/3)100% (1/1)
getAnnotation (): Class 100% (1/1)100% (2/2)100% (1/1)
getExtension (): RepositoryConfigurationExtension 100% (1/1)100% (4/4)100% (1/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.config;
17 
18import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport;
19import org.springframework.data.repository.config.RepositoryConfigurationExtension;
20 
21import java.lang.annotation.Annotation;
22 
23/**
24 * {@link org.springframework.context.annotation.ImportBeanDefinitionRegistrar} implementation to trigger configuration of the {@link EnableElasticsearchRepositories}
25 * annotation.
26 * 
27 */
28class ElasticsearchRepositoriesRegistrar extends RepositoryBeanDefinitionRegistrarSupport {
29 
30        /* 
31         * (non-Javadoc)
32         * @see org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport#getAnnotation()
33         */
34        @Override
35        protected Class<? extends Annotation> getAnnotation() {
36                return EnableElasticsearchRepositories.class;
37        }
38 
39        /* 
40         * (non-Javadoc)
41         * @see org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport#getExtension()
42         */
43        @Override
44        protected RepositoryConfigurationExtension getExtension() {
45                return new ElasticsearchRepositoryConfigExtension();
46        }
47}

[all classes][org.springframework.data.elasticsearch.repository.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/3.html b/site/emma/_files/3.html deleted file mode 100644 index 408ba038..00000000 --- a/site/emma/_files/3.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.core.query]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.core.query100% (12/12)78%  (66/85)67%  (552/818)71%  (129.9/184)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
CriteriaQuery.java100% (1/1)43%  (3/7)26%  (19/74)33%  (8/24)
StringQuery.java100% (1/1)75%  (3/4)60%  (18/30)62%  (8/13)
AbstractQuery.java100% (1/1)100% (6/6)69%  (33/48)71%  (10/14)
Criteria.java100% (4/4)73%  (36/49)70%  (419/600)74%  (77.9/106)
SimpleField.java100% (1/1)67%  (2/3)75%  (9/12)80%  (4/5)
DeleteQuery.java100% (1/1)100% (3/3)100% (10/10)100% (4/4)
GetQuery.java100% (1/1)100% (3/3)100% (10/10)100% (4/4)
IndexQuery.java100% (1/1)100% (5/5)100% (17/17)100% (7/7)
SearchQuery.java100% (1/1)100% (5/5)100% (17/17)100% (7/7)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/30.html b/site/emma/_files/30.html deleted file mode 100644 index 664161b7..00000000 --- a/site/emma/_files/30.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.config]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchRepositoryConfigExtension.java]

nameclass, %method, %block, %line, %
ElasticsearchRepositoryConfigExtension.java100% (1/1)100% (5/5)100% (30/30)100% (9/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchRepositoryConfigExtension100% (1/1)100% (5/5)100% (30/30)100% (9/9)
ElasticsearchRepositoryConfigExtension (): void 100% (1/1)100% (3/3)100% (1/1)
getModulePrefix (): String 100% (1/1)100% (2/2)100% (1/1)
getRepositoryFactoryClassName (): String 100% (1/1)100% (3/3)100% (1/1)
postProcess (BeanDefinitionBuilder, AnnotationRepositoryConfigurationSource):... 100% (1/1)100% (11/11)100% (3/3)
postProcess (BeanDefinitionBuilder, XmlRepositoryConfigurationSource): void 100% (1/1)100% (11/11)100% (3/3)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.config;
17 
18import org.springframework.beans.factory.support.BeanDefinitionBuilder;
19import org.springframework.core.annotation.AnnotationAttributes;
20import org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean;
21import org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource;
22import org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport;
23import org.springframework.data.repository.config.XmlRepositoryConfigurationSource;
24import org.w3c.dom.Element;
25 
26 
27 
28/**
29 * {@link org.springframework.data.repository.config.RepositoryConfigurationExtension} implementation to configure Elasticsearch repository configuration support,
30 * evaluating the {@link EnableElasticsearchRepositories} annotation or the equivalent XML element.
31 * 
32 */
33public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurationExtensionSupport {
34 
35        /*
36         * (non-Javadoc)
37         * @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getRepositoryFactoryClassName()
38         */
39        @Override
40        public String getRepositoryFactoryClassName() {
41                return ElasticsearchRepositoryFactoryBean.class.getName();
42        }
43 
44        /*
45         * (non-Javadoc)
46         * @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#getModulePrefix()
47         */
48        @Override
49        protected String getModulePrefix() {
50                return "elasticsearch";
51        }
52 
53        /* 
54         * (non-Javadoc)
55         * @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource)
56         */
57        @Override
58        public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {
59 
60                AnnotationAttributes attributes = config.getAttributes();
61                builder.addPropertyReference("elasticsearchOperations", attributes.getString("elasticsearchTemplateRef"));
62        }
63 
64        /* 
65         * (non-Javadoc)
66         * @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.data.repository.config.XmlRepositoryConfigurationSource)
67         */
68        @Override
69        public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {
70 
71                Element element = config.getElement();
72                builder.addPropertyReference("elasticsearchOperations", element.getAttribute("elasticsearch-template-ref"));
73        }
74}

[all classes][org.springframework.data.elasticsearch.repository.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/4.html b/site/emma/_files/4.html deleted file mode 100644 index f897a766..00000000 --- a/site/emma/_files/4.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.repository.support]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.repository.support86%  (6/7)85%  (46/54)75%  (542/720)78%  (126.5/163)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
MappingElasticsearchEntityInformation.java100% (1/1)71%  (5/7)55%  (46/84)65%  (10.4/16)
SimpleElasticsearchRepository.java100% (1/1)80%  (24/30)75%  (349/465)75%  (81.7/109)
ElasticsearchRepositoryFactory.java67%  (2/3)100% (11/11)82%  (106/130)85%  (20.4/24)
ElasticsearchEntityInformationCreatorImpl.java100% (1/1)100% (2/2)100% (19/19)100% (6/6)
ElasticsearchRepositoryFactoryBean.java100% (1/1)100% (4/4)100% (22/22)100% (8/8)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/5.html b/site/emma/_files/5.html deleted file mode 100644 index d2ee5ab4..00000000 --- a/site/emma/_files/5.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.core.convert]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.core.convert100% (5/5)64%  (14/22)76%  (110/144)86%  (22.4/26)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
DateTimeConverters.java100% (4/4)61%  (11/18)75%  (91/121)90%  (15.4/17)
MappingElasticsearchConverter.java100% (1/1)75%  (3/4)83%  (19/23)78%  (7/9)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/6.html b/site/emma/_files/6.html deleted file mode 100644 index dc61c1e9..00000000 --- a/site/emma/_files/6.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.core.mapping]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.core.mapping100% (4/4)76%  (13/17)81%  (139/172)83%  (26.6/32)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchPersistentProperty.java100% (1/1)60%  (3/5)71%  (22/31)89%  (2.7/3)
SimpleElasticsearchPersistentEntity.java100% (1/1)75%  (3/4)72%  (57/79)73%  (10.9/15)
SimpleElasticsearchPersistentProperty.java100% (1/1)80%  (4/5)96%  (44/46)91%  (10/11)
SimpleElasticsearchMappingContext.java100% (1/1)100% (3/3)100% (16/16)100% (3/3)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/7.html b/site/emma/_files/7.html deleted file mode 100644 index e65b8148..00000000 --- a/site/emma/_files/7.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.client]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.client100% (2/2)83%  (15/18)81%  (125/154)73%  (32/44)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
NodeClientFactoryBean.java100% (1/1)86%  (6/7)80%  (24/30)75%  (9/12)
TransportClientFactoryBean.java100% (1/1)82%  (9/11)81%  (101/124)72%  (23/32)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/8.html b/site/emma/_files/8.html deleted file mode 100644 index 84cd155a..00000000 --- a/site/emma/_files/8.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.core]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.core100% (4/4)94%  (34/36)83%  (818/984)87%  (120.6/139)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchTemplate.java100% (2/2)97%  (28/29)81%  (565/700)86%  (76.4/89)
CriteriaQueryProcessor.java100% (2/2)86%  (6/7)89%  (253/284)88%  (44.2/50)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/9.html b/site/emma/_files/9.html deleted file mode 100644 index 1815892c..00000000 --- a/site/emma/_files/9.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.repository.query]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.repository.query100% (4/4)100% (15/15)91%  (242/266)93%  (51.9/56)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchPartQuery.java100% (1/1)100% (3/3)86%  (56/65)90%  (9/10)
ElasticsearchStringQuery.java100% (1/1)100% (6/6)91%  (134/148)91%  (30/33)
ElasticsearchQueryMethod.java100% (1/1)100% (4/4)98%  (40/41)99%  (7.9/8)
AbstractElasticsearchRepositoryQuery.java100% (1/1)100% (2/2)100% (12/12)100% (5/5)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/a.html b/site/emma/_files/a.html deleted file mode 100644 index 45ba1fa1..00000000 --- a/site/emma/_files/a.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.config]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.config100% (3/3)100% (10/10)100% (100/100)100% (25/25)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchNamespaceHandler.java100% (1/1)100% (2/2)100% (29/29)100% (7/7)
NodeClientBeanDefinitionParser.java100% (1/1)100% (4/4)100% (35/35)100% (9/9)
TransportClientBeanDefinitionParser.java100% (1/1)100% (4/4)100% (36/36)100% (9/9)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/b.html b/site/emma/_files/b.html deleted file mode 100644 index 89de2f03..00000000 --- a/site/emma/_files/b.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

COVERAGE SUMMARY FOR PACKAGE [org.springframework.data.elasticsearch.repository.config]

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch.repository.config100% (2/2)100% (8/8)100% (39/39)100% (12/12)

COVERAGE BREAKDOWN BY SOURCE FILE

nameclass, %method, %block, %line, %
ElasticsearchRepositoriesRegistrar.java100% (1/1)100% (3/3)100% (9/9)100% (3/3)
ElasticsearchRepositoryConfigExtension.java100% (1/1)100% (5/5)100% (30/30)100% (9/9)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/c.html b/site/emma/_files/c.html deleted file mode 100644 index 031373fa..00000000 --- a/site/emma/_files/c.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchException.java]

nameclass, %method, %block, %line, %
ElasticsearchException.java0%   (0/1)0%   (0/5)0%   (0/27)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchException0%   (0/1)0%   (0/5)0%   (0/27)0%   (0/11)
ElasticsearchException (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
ElasticsearchException (String, Map): void 0%   (0/1)0%   (0/7)0%   (0/3)
ElasticsearchException (String, Throwable): void 0%   (0/1)0%   (0/5)0%   (0/2)
ElasticsearchException (String, Throwable, Map): void 0%   (0/1)0%   (0/8)0%   (0/3)
getFailedDocuments (): Map 0%   (0/1)0%   (0/3)0%   (0/1)

1package org.springframework.data.elasticsearch;
2 
3 
4import java.util.Map;
5 
6public class ElasticsearchException extends RuntimeException{
7 
8    private Map<String, String> failedDocuments;
9 
10    public ElasticsearchException(String message) {
11        super(message);
12    }
13 
14    public ElasticsearchException(String message, Throwable cause) {
15        super(message, cause);
16    }
17 
18    public ElasticsearchException(String message, Throwable cause, Map<String, String> failedDocuments) {
19        super(message, cause);
20        this.failedDocuments = failedDocuments;
21    }
22 
23    public ElasticsearchException(String message, Map<String, String> failedDocuments) {
24        super(message);
25        this.failedDocuments = failedDocuments;
26    }
27 
28    public Map<String, String> getFailedDocuments() {
29        return failedDocuments;
30    }
31}

[all classes][org.springframework.data.elasticsearch]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/d.html b/site/emma/_files/d.html deleted file mode 100644 index a99df146..00000000 --- a/site/emma/_files/d.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.cdi]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchRepositoryBean.java]

nameclass, %method, %block, %line, %
ElasticsearchRepositoryBean.java0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchRepositoryBean0%   (0/1)0%   (0/3)0%   (0/30)0%   (0/7)
ElasticsearchRepositoryBean (Bean, Set, Class, BeanManager): void 0%   (0/1)0%   (0/12)0%   (0/4)
create (CreationalContext, Class): Object 0%   (0/1)0%   (0/14)0%   (0/2)
getScope (): Class 0%   (0/1)0%   (0/4)0%   (0/1)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.cdi;
17 
18import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
19import org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory;
20import org.springframework.data.repository.cdi.CdiRepositoryBean;
21import org.springframework.util.Assert;
22 
23import javax.enterprise.context.spi.CreationalContext;
24import javax.enterprise.inject.spi.Bean;
25import javax.enterprise.inject.spi.BeanManager;
26import java.lang.annotation.Annotation;
27import java.util.Set;
28 
29/**
30 * Uses CdiRepositoryBean to create ElasticsearchRepository instances.
31 * 
32 */
33public class ElasticsearchRepositoryBean<T> extends CdiRepositoryBean<T> {
34 
35        private final Bean<ElasticsearchOperations> elasticsearchOperationsBean;
36 
37        public ElasticsearchRepositoryBean(Bean<ElasticsearchOperations> operations, Set<Annotation> qualifiers, Class<T> repositoryType,
38                                       BeanManager beanManager) {
39                super(qualifiers, repositoryType, beanManager);
40 
41                Assert.notNull(operations, "Cannot create repository with 'null' for ElasticsearchOperations.");
42                this.elasticsearchOperationsBean = operations;
43        }
44 
45        @Override
46        protected T create(CreationalContext<T> creationalContext, Class<T> repositoryType) {
47        ElasticsearchOperations elasticsearchOperations = getDependencyInstance(elasticsearchOperationsBean, ElasticsearchOperations.class);
48                return new ElasticsearchRepositoryFactory(elasticsearchOperations).getRepository(repositoryType);
49        }
50 
51        @Override
52        public Class<? extends Annotation> getScope() {
53                return elasticsearchOperationsBean.getScope();
54        }
55 
56}

[all classes][org.springframework.data.elasticsearch.repository.cdi]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/e.html b/site/emma/_files/e.html deleted file mode 100644 index b5959734..00000000 --- a/site/emma/_files/e.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.cdi]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchRepositoryExtension.java]

nameclass, %method, %block, %line, %
ElasticsearchRepositoryExtension.java0%   (0/1)0%   (0/4)0%   (0/104)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchRepositoryExtension0%   (0/1)0%   (0/4)0%   (0/104)0%   (0/18)
ElasticsearchRepositoryExtension (): void 0%   (0/1)0%   (0/8)0%   (0/2)
afterBeanDiscovery (AfterBeanDiscovery, BeanManager): void 0%   (0/1)0%   (0/30)0%   (0/7)
createRepositoryBean (Class, Set, BeanManager): Bean 0%   (0/1)0%   (0/34)0%   (0/4)
processBean (ProcessBean): void 0%   (0/1)0%   (0/32)0%   (0/5)

1/*
2 * Copyright 2012 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.springframework.data.elasticsearch.repository.cdi;
17 
18import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
19import org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport;
20 
21import javax.enterprise.event.Observes;
22import javax.enterprise.inject.UnsatisfiedResolutionException;
23import javax.enterprise.inject.spi.AfterBeanDiscovery;
24import javax.enterprise.inject.spi.Bean;
25import javax.enterprise.inject.spi.BeanManager;
26import javax.enterprise.inject.spi.ProcessBean;
27import java.lang.annotation.Annotation;
28import java.lang.reflect.Type;
29import java.util.HashMap;
30import java.util.Map;
31import java.util.Map.Entry;
32import java.util.Set;
33 
34 
35public class ElasticsearchRepositoryExtension extends CdiRepositoryExtensionSupport {
36 
37        private final Map<String, Bean<ElasticsearchOperations>> elasticsearchOperationsMap = new HashMap<String, Bean<ElasticsearchOperations>>();
38 
39        @SuppressWarnings("unchecked")
40        <T> void processBean(@Observes ProcessBean<T> processBean) {
41                Bean<T> bean = processBean.getBean();
42                for (Type type : bean.getTypes()) {
43                        if (type instanceof Class<?> && ElasticsearchOperations.class.isAssignableFrom((Class<?>) type)) {
44                                elasticsearchOperationsMap.put(bean.getQualifiers().toString(), ((Bean<ElasticsearchOperations>) bean));
45                        }
46                }
47        }
48 
49        void afterBeanDiscovery(@Observes AfterBeanDiscovery afterBeanDiscovery, BeanManager beanManager) {
50        for (Entry<Class<?>, Set<Annotation>> entry : getRepositoryTypes()) {
51 
52                        Class<?> repositoryType = entry.getKey();
53                        Set<Annotation> qualifiers = entry.getValue();
54 
55                        Bean<?> repositoryBean = createRepositoryBean(repositoryType, qualifiers, beanManager);
56            afterBeanDiscovery.addBean(repositoryBean);
57                }
58        }
59 
60        private <T> Bean<T> createRepositoryBean(Class<T> repositoryType, Set<Annotation> qualifiers, BeanManager beanManager) {
61                Bean<ElasticsearchOperations> elasticsearchOperationsBean = this.elasticsearchOperationsMap.get(qualifiers.toString());
62 
63                if (elasticsearchOperationsBean == null) {
64                        throw new UnsatisfiedResolutionException(String.format("Unable to resolve a bean for '%s' with qualifiers %s.",
65                    ElasticsearchOperations.class.getName(), qualifiers));
66                }
67        return new ElasticsearchRepositoryBean<T>(elasticsearchOperationsBean, qualifiers, repositoryType, beanManager);
68        }
69 
70}

[all classes][org.springframework.data.elasticsearch.repository.cdi]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/_files/f.html b/site/emma/_files/f.html deleted file mode 100644 index 216d7e62..00000000 --- a/site/emma/_files/f.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes][org.springframework.data.elasticsearch.repository.query.parser]

COVERAGE SUMMARY FOR SOURCE FILE [ElasticsearchQueryCreator.java]

nameclass, %method, %block, %line, %
ElasticsearchQueryCreator.java100% (2/2)56%  (5/9)58%  (197/338)43%  (16.9/39)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElasticsearchQueryCreator100% (1/1)50%  (4/8)41%  (84/207)44%  (17/39)
ElasticsearchQueryCreator (PartTree, MappingContext): void 0%   (0/1)0%   (0/7)0%   (0/3)
and (Part, CriteriaQuery, Iterator): CriteriaQuery 0%   (0/1)0%   (0/27)0%   (0/4)
asArray (Object): Object [] 0%   (0/1)0%   (0/22)0%   (0/5)
or (CriteriaQuery, CriteriaQuery): CriteriaQuery 0%   (0/1)0%   (0/9)0%   (0/1)
from (Part$Type, Criteria, Iterator): Criteria 100% (1/1)46%  (48/104)56%  (10/18)
complete (CriteriaQuery, Sort): CriteriaQuery 100% (1/1)78%  (7/9)67%  (2/3)
ElasticsearchQueryCreator (PartTree, ParameterAccessor, MappingContext): void 100% (1/1)100% (8/8)100% (3/3)
create (Part, Iterator): CriteriaQuery 100% (1/1)100% (21/21)100% (2/2)
     
class ElasticsearchQueryCreator$1100% (1/1)100% (1/1)86%  (113/131)86%  (0.9/1)
<static initializer> 100% (1/1)86%  (113/131)86%  (0.9/1)

1package org.springframework.data.elasticsearch.repository.query.parser;
2 
3 
4import org.springframework.dao.InvalidDataAccessApiUsageException;
5import org.springframework.data.domain.Sort;
6import org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty;
7import org.springframework.data.elasticsearch.core.query.Criteria;
8import org.springframework.data.elasticsearch.core.query.CriteriaQuery;
9import org.springframework.data.mapping.context.MappingContext;
10import org.springframework.data.mapping.context.PersistentPropertyPath;
11import org.springframework.data.repository.query.ParameterAccessor;
12import org.springframework.data.repository.query.parser.AbstractQueryCreator;
13import org.springframework.data.repository.query.parser.Part;
14import org.springframework.data.repository.query.parser.PartTree;
15 
16import java.util.Collection;
17import java.util.Iterator;
18 
19public class ElasticsearchQueryCreator extends AbstractQueryCreator<CriteriaQuery,CriteriaQuery>{
20 
21    private final MappingContext<?, ElasticsearchPersistentProperty> context;
22 
23    public ElasticsearchQueryCreator(PartTree tree, ParameterAccessor parameters, MappingContext<?, ElasticsearchPersistentProperty> context) {
24        super(tree, parameters);
25        this.context = context;
26    }
27 
28    public ElasticsearchQueryCreator(PartTree tree, MappingContext<?, ElasticsearchPersistentProperty> context) {
29        super(tree);
30        this.context = context;
31    }
32 
33    @Override
34    protected CriteriaQuery create(Part part, Iterator<Object> iterator) {
35        PersistentPropertyPath<ElasticsearchPersistentProperty> path = context.getPersistentPropertyPath(part.getProperty());
36        return new CriteriaQuery(from(part.getType(),
37                new Criteria(path.toDotPath(ElasticsearchPersistentProperty.PropertyToFieldNameConverter.INSTANCE)), iterator));
38    }
39 
40    @Override
41    protected CriteriaQuery and(Part part, CriteriaQuery base, Iterator<Object> iterator) {
42        if (base == null) {
43            return create(part, iterator);
44        }
45        PersistentPropertyPath<ElasticsearchPersistentProperty> path = context.getPersistentPropertyPath(part.getProperty());
46        return base.addCriteria(from(part.getType(),
47                new Criteria(path.toDotPath(ElasticsearchPersistentProperty.PropertyToFieldNameConverter.INSTANCE)), iterator));
48    }
49 
50    @Override
51    protected CriteriaQuery or(CriteriaQuery base, CriteriaQuery query) {
52        return new CriteriaQuery(base.getCriteria().or(query.getCriteria()));
53    }
54 
55    @Override
56    protected CriteriaQuery complete(CriteriaQuery query, Sort sort) {
57        if (query == null) {
58            return null;
59        }
60        return query.addSort(sort);
61    }
62 
63 
64    private Criteria from(Part.Type type, Criteria instance, Iterator<?> parameters) {
65        Criteria criteria = instance;
66        if (criteria == null) {
67            criteria = new Criteria();
68        }
69        switch (type) {
70            case TRUE:
71                return criteria.is(true);
72            case FALSE:
73                return criteria.is(false);
74            case SIMPLE_PROPERTY:
75                return criteria.is(parameters.next());
76            case NEGATING_SIMPLE_PROPERTY:
77                return criteria.is(parameters.next()).not();
78            case REGEX:
79                return criteria.expression(parameters.next().toString());
80            case LIKE:
81            case STARTING_WITH:
82                return criteria.startsWith(parameters.next().toString());
83            case ENDING_WITH:
84                return criteria.endsWith(parameters.next().toString());
85            case CONTAINING:
86                return criteria.contains(parameters.next().toString());
87            case AFTER:
88            case GREATER_THAN:
89            case GREATER_THAN_EQUAL:
90                return criteria.greaterThanEqual(parameters.next());
91            case BEFORE:
92            case LESS_THAN:
93            case LESS_THAN_EQUAL:
94                return criteria.lessThanEqual(parameters.next());
95            case BETWEEN:
96                return criteria.between(parameters.next(), parameters.next());
97            case IN:
98                return criteria.in(asArray(parameters.next()));
99            case NOT_IN:
100                return criteria.in(asArray(parameters.next())).not();
101            default:
102                throw new InvalidDataAccessApiUsageException("Illegal criteria found '" + type + "'.");
103        }
104    }
105 
106    private Object[] asArray(Object o) {
107        if (o instanceof Collection) {
108            return ((Collection<?>) o).toArray();
109        } else if (o.getClass().isArray()) {
110            return (Object[]) o;
111        }
112        return new Object[] { o };
113    }
114 
115}

[all classes][org.springframework.data.elasticsearch.repository.query.parser]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/emma/index.html b/site/emma/index.html deleted file mode 100644 index 5af5ce46..00000000 --- a/site/emma/index.html +++ /dev/null @@ -1 +0,0 @@ -EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
EMMA Coverage Report (generated Mon Jan 28 10:01:43 GMT 2013)
[all classes]

OVERALL COVERAGE SUMMARY

nameclass, %method, %block, %line, %
all classes92%  (44/48)79%  (226/286)74%  (2864/3896)75%  (563.8/756)

OVERALL STATS SUMMARY

total packages:12
total executable files:37
total classes:48
total methods:286
total executable lines:756

COVERAGE BREAKDOWN BY PACKAGE

nameclass, %method, %block, %line, %
org.springframework.data.elasticsearch0%   (0/1)0%   (0/5)0%   (0/27)0%   (0/11)
org.springframework.data.elasticsearch.repository.cdi0%   (0/2)0%   (0/7)0%   (0/134)0%   (0/25)
org.springframework.data.elasticsearch.repository.query.parser100% (2/2)56%  (5/9)58%  (197/338)43%  (16.9/39)
org.springframework.data.elasticsearch.core.query100% (12/12)78%  (66/85)67%  (552/818)71%  (129.9/184)
org.springframework.data.elasticsearch.repository.support86%  (6/7)85%  (46/54)75%  (542/720)78%  (126.5/163)
org.springframework.data.elasticsearch.core.convert100% (5/5)64%  (14/22)76%  (110/144)86%  (22.4/26)
org.springframework.data.elasticsearch.core.mapping100% (4/4)76%  (13/17)81%  (139/172)83%  (26.6/32)
org.springframework.data.elasticsearch.client100% (2/2)83%  (15/18)81%  (125/154)73%  (32/44)
org.springframework.data.elasticsearch.core100% (4/4)94%  (34/36)83%  (818/984)87%  (120.6/139)
org.springframework.data.elasticsearch.repository.query100% (4/4)100% (15/15)91%  (242/266)93%  (51.9/56)
org.springframework.data.elasticsearch.config100% (3/3)100% (10/10)100% (100/100)100% (25/25)
org.springframework.data.elasticsearch.repository.config100% (2/2)100% (8/8)100% (39/39)100% (12/12)

[all classes]
EMMA 2.0.5312 (C) Vladimir Roubtsov
\ No newline at end of file diff --git a/site/reference.rar b/site/reference.rar new file mode 100644 index 00000000..7ea3c0d5 Binary files /dev/null and b/site/reference.rar differ diff --git a/site/reference/html/css/highlight.css b/site/reference/html/css/highlight.css deleted file mode 100644 index b1727f35..00000000 --- a/site/reference/html/css/highlight.css +++ /dev/null @@ -1,36 +0,0 @@ -/* - borrowed from: https://raw.github.com/SpringSource/spring-data-jpa/master/src/docbkx/resources/css/highlight.css - code highlight CSS resemblign the Eclipse IDE default color schema - @author Costin Leau -*/ - -.hl-keyword { - color: #7F0055; - font-weight: bold; -} - -.hl-comment { - color: #3F5F5F; - font-style: italic; -} - -.hl-multiline-comment { - color: #3F5FBF; - font-style: italic; -} - -.hl-tag { - color: #3F7F7F; -} - -.hl-attribute { - color: #7F007F; -} - -.hl-value { - color: #2A00FF; -} - -.hl-string { - color: #2A00FF; -} \ No newline at end of file diff --git a/site/reference/html/css/html.css b/site/reference/html/css/html.css deleted file mode 100644 index de5467a5..00000000 --- a/site/reference/html/css/html.css +++ /dev/null @@ -1,114 +0,0 @@ -/* - borrowed from: https://raw.github.com/SpringSource/spring-data-jpa/master/src/docbkx/resources/css/html.css -*/ - -@IMPORT url("highlight.css"); - -html { - padding: 0pt; - margin: 0pt; -} - -body { - margin-left: 15%; - margin-right: 15%; - font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; -} - -div { - margin: 0pt; -} - -p { - text-align: justify; - line-height: 1.3em; -} - -hr { - border: 1px solid gray; - background: gray; -} - -h1,h2,h3,h4,h5 { - color: #234623; - font-weight: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; - margin-bottom: 0em; - margin-top: 2em; -} - -pre { - line-height: 1.0; - color: black; -} - -table code { - font-size: 110%; -} - -pre.programlisting { - font-size: 1em; - padding: 3pt 3pt; - border: 1pt solid black; - background: #eeeeee; - clear: both; -} - -div.table { - margin: 1em; - padding: 0.5em; - text-align: center; -} - -div.table table { - display: table; - width: 100%; -} - -div.table td { - padding-left: 7px; - padding-right: 7px; -} - -.sidebar { - float: right; - margin: 10px 0 10px 30px; - padding: 10px 20px 20px 20px; - width: 33%; - border: 1px solid black; - background-color: #F4F4F4; - font-size: 14px; -} - -.mediaobject { - padding-top: 30px; - padding-bottom: 30px; -} - -.legalnotice { - font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; - font-size: 12px; - font-style: italic; -} - -p.releaseinfo { - font-size: 100%; - font-weight: bold; - font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; - padding-top: 10px; -} - -p.pubdate { - font-size: 120%; - font-weight: bold; - font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; -} - -span.productname { - font-size: 200%; - font-weight: bold; - font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; -} - -code { - font-size: 125%; -} \ No newline at end of file diff --git a/site/reference/html/images/admons/blank.png b/site/reference/html/images/admons/blank.png deleted file mode 100644 index 764bf4f0..00000000 Binary files a/site/reference/html/images/admons/blank.png and /dev/null differ diff --git a/site/reference/html/images/admons/caution.gif b/site/reference/html/images/admons/caution.gif deleted file mode 100644 index d9f5e5b1..00000000 Binary files a/site/reference/html/images/admons/caution.gif and /dev/null differ diff --git a/site/reference/html/images/admons/caution.png b/site/reference/html/images/admons/caution.png deleted file mode 100644 index 5b7809ca..00000000 Binary files a/site/reference/html/images/admons/caution.png and /dev/null differ diff --git a/site/reference/html/images/admons/draft.png b/site/reference/html/images/admons/draft.png deleted file mode 100644 index 0084708c..00000000 Binary files a/site/reference/html/images/admons/draft.png and /dev/null differ diff --git a/site/reference/html/images/admons/home.gif b/site/reference/html/images/admons/home.gif deleted file mode 100644 index 6784f5bb..00000000 Binary files a/site/reference/html/images/admons/home.gif and /dev/null differ diff --git a/site/reference/html/images/admons/home.png b/site/reference/html/images/admons/home.png deleted file mode 100644 index cbb711de..00000000 Binary files a/site/reference/html/images/admons/home.png and /dev/null differ diff --git a/site/reference/html/images/admons/important.gif b/site/reference/html/images/admons/important.gif deleted file mode 100644 index 6795d9a8..00000000 Binary files a/site/reference/html/images/admons/important.gif and /dev/null differ diff --git a/site/reference/html/images/admons/important.png b/site/reference/html/images/admons/important.png deleted file mode 100644 index ad57f6f7..00000000 Binary files a/site/reference/html/images/admons/important.png and /dev/null differ diff --git a/site/reference/html/images/admons/next.gif b/site/reference/html/images/admons/next.gif deleted file mode 100644 index aa1516e6..00000000 Binary files a/site/reference/html/images/admons/next.gif and /dev/null differ diff --git a/site/reference/html/images/admons/next.png b/site/reference/html/images/admons/next.png deleted file mode 100644 index 45835bf8..00000000 Binary files a/site/reference/html/images/admons/next.png and /dev/null differ diff --git a/site/reference/html/images/admons/note.gif b/site/reference/html/images/admons/note.gif deleted file mode 100644 index f329d359..00000000 Binary files a/site/reference/html/images/admons/note.gif and /dev/null differ diff --git a/site/reference/html/images/admons/note.png b/site/reference/html/images/admons/note.png deleted file mode 100644 index ad57f6f7..00000000 Binary files a/site/reference/html/images/admons/note.png and /dev/null differ diff --git a/site/reference/html/images/admons/prev.gif b/site/reference/html/images/admons/prev.gif deleted file mode 100644 index 64ca8f3c..00000000 Binary files a/site/reference/html/images/admons/prev.gif and /dev/null differ diff --git a/site/reference/html/images/admons/prev.png b/site/reference/html/images/admons/prev.png deleted file mode 100644 index cf24654f..00000000 Binary files a/site/reference/html/images/admons/prev.png and /dev/null differ diff --git a/site/reference/html/images/admons/tip.gif b/site/reference/html/images/admons/tip.gif deleted file mode 100644 index 823f2b41..00000000 Binary files a/site/reference/html/images/admons/tip.gif and /dev/null differ diff --git a/site/reference/html/images/admons/tip.png b/site/reference/html/images/admons/tip.png deleted file mode 100644 index ad57f6f7..00000000 Binary files a/site/reference/html/images/admons/tip.png and /dev/null differ diff --git a/site/reference/html/images/admons/toc-blank.png b/site/reference/html/images/admons/toc-blank.png deleted file mode 100644 index 6ffad17a..00000000 Binary files a/site/reference/html/images/admons/toc-blank.png and /dev/null differ diff --git a/site/reference/html/images/admons/toc-minus.png b/site/reference/html/images/admons/toc-minus.png deleted file mode 100644 index abbb020c..00000000 Binary files a/site/reference/html/images/admons/toc-minus.png and /dev/null differ diff --git a/site/reference/html/images/admons/toc-plus.png b/site/reference/html/images/admons/toc-plus.png deleted file mode 100644 index 941312ce..00000000 Binary files a/site/reference/html/images/admons/toc-plus.png and /dev/null differ diff --git a/site/reference/html/images/admons/up.gif b/site/reference/html/images/admons/up.gif deleted file mode 100644 index aabc2d01..00000000 Binary files a/site/reference/html/images/admons/up.gif and /dev/null differ diff --git a/site/reference/html/images/admons/up.png b/site/reference/html/images/admons/up.png deleted file mode 100644 index 07634de2..00000000 Binary files a/site/reference/html/images/admons/up.png and /dev/null differ diff --git a/site/reference/html/images/admons/warning.gif b/site/reference/html/images/admons/warning.gif deleted file mode 100644 index c6acdec6..00000000 Binary files a/site/reference/html/images/admons/warning.gif and /dev/null differ diff --git a/site/reference/html/images/admons/warning.png b/site/reference/html/images/admons/warning.png deleted file mode 100644 index ef3e10f4..00000000 Binary files a/site/reference/html/images/admons/warning.png and /dev/null differ diff --git a/site/reference/html/images/callouts/1.png b/site/reference/html/images/callouts/1.png deleted file mode 100644 index 7d473430..00000000 Binary files a/site/reference/html/images/callouts/1.png and /dev/null differ diff --git a/site/reference/html/images/callouts/10.png b/site/reference/html/images/callouts/10.png deleted file mode 100644 index 997bbc82..00000000 Binary files a/site/reference/html/images/callouts/10.png and /dev/null differ diff --git a/site/reference/html/images/callouts/11.png b/site/reference/html/images/callouts/11.png deleted file mode 100644 index ce47dac3..00000000 Binary files a/site/reference/html/images/callouts/11.png and /dev/null differ diff --git a/site/reference/html/images/callouts/12.png b/site/reference/html/images/callouts/12.png deleted file mode 100644 index 31daf4e2..00000000 Binary files a/site/reference/html/images/callouts/12.png and /dev/null differ diff --git a/site/reference/html/images/callouts/13.png b/site/reference/html/images/callouts/13.png deleted file mode 100644 index 14021a89..00000000 Binary files a/site/reference/html/images/callouts/13.png and /dev/null differ diff --git a/site/reference/html/images/callouts/14.png b/site/reference/html/images/callouts/14.png deleted file mode 100644 index 64014b75..00000000 Binary files a/site/reference/html/images/callouts/14.png and /dev/null differ diff --git a/site/reference/html/images/callouts/15.png b/site/reference/html/images/callouts/15.png deleted file mode 100644 index 0d65765f..00000000 Binary files a/site/reference/html/images/callouts/15.png and /dev/null differ diff --git a/site/reference/html/images/callouts/2.png b/site/reference/html/images/callouts/2.png deleted file mode 100644 index 5d09341b..00000000 Binary files a/site/reference/html/images/callouts/2.png and /dev/null differ diff --git a/site/reference/html/images/callouts/3.png b/site/reference/html/images/callouts/3.png deleted file mode 100644 index ef7b7004..00000000 Binary files a/site/reference/html/images/callouts/3.png and /dev/null differ diff --git a/site/reference/html/images/callouts/4.png b/site/reference/html/images/callouts/4.png deleted file mode 100644 index adb8364e..00000000 Binary files a/site/reference/html/images/callouts/4.png and /dev/null differ diff --git a/site/reference/html/images/callouts/5.png b/site/reference/html/images/callouts/5.png deleted file mode 100644 index 4d7eb460..00000000 Binary files a/site/reference/html/images/callouts/5.png and /dev/null differ diff --git a/site/reference/html/images/callouts/6.png b/site/reference/html/images/callouts/6.png deleted file mode 100644 index 0ba694af..00000000 Binary files a/site/reference/html/images/callouts/6.png and /dev/null differ diff --git a/site/reference/html/images/callouts/7.png b/site/reference/html/images/callouts/7.png deleted file mode 100644 index 472e96f8..00000000 Binary files a/site/reference/html/images/callouts/7.png and /dev/null differ diff --git a/site/reference/html/images/callouts/8.png b/site/reference/html/images/callouts/8.png deleted file mode 100644 index 5e60973c..00000000 Binary files a/site/reference/html/images/callouts/8.png and /dev/null differ diff --git a/site/reference/html/images/callouts/9.png b/site/reference/html/images/callouts/9.png deleted file mode 100644 index a0676d26..00000000 Binary files a/site/reference/html/images/callouts/9.png and /dev/null differ diff --git a/site/reference/html/images/logo.png b/site/reference/html/images/logo.png deleted file mode 100644 index a9f6d959..00000000 Binary files a/site/reference/html/images/logo.png and /dev/null differ diff --git a/site/reference/html/images/xdev-spring_logo.jpg b/site/reference/html/images/xdev-spring_logo.jpg deleted file mode 100644 index 622962ee..00000000 Binary files a/site/reference/html/images/xdev-spring_logo.jpg and /dev/null differ diff --git a/site/reference/html/index.html b/site/reference/html/index.html deleted file mode 100644 index fdc3f9e5..00000000 --- a/site/reference/html/index.html +++ /dev/null @@ -1,1088 +0,0 @@ - - - Spring Data Elasticsearch

Spring Data Elasticsearch

Authors

BioMed Central Development Team

- Copies of this document may be made for your own use and for - distribution to others, provided that you do not - charge any fee for - such copies and further provided that each copy - contains this - Copyright Notice, whether - distributed in print or electronically. -


Preface
1. Project Metadata
2. Requirements
I. Reference Documentation
1. Repositories
1.1. Introduction
1.2. Core concepts
1.3. Query methods
1.3.1. Defining repository interfaces
1.3.1.1. Fine tuning repository definition
1.3.2. Defining query methods
1.3.2.1. Query lookup strategies
1.3.2.2. Query creation
1.3.2.3. Special parameter handling
1.3.3. Creating repository instances
1.3.3.1. XML Configuration
1.3.3.2. JavaConfig
1.3.3.3. Standalone usage
1.4. Custom implementations
1.4.1. Adding behaviour to single repositories
1.4.2. Adding custom behaviour to all repositories
1.5. Extensions
1.5.1. Domain class web binding for Spring MVC
1.5.2. Web pagination
1.5.3. Repository populators
2. Elasticsearch Repositories
2.1. Introduction
2.1.1. Spring Namespace
2.1.2. Annotation based configuration
2.1.3. Elasticsearch Repositores using CDI
2.2. Query methods
2.2.1. Query lookup strategies
2.2.2. Query creation
2.2.3. Using @Query Annotation
3. Miscellaneous Elasticsearch Operation Support
3.1. Filter Builder
II. Appendix
A. Namespace reference
A.1. The <repositories /> element
B. Repository query keywords
B.1. Supported query keywords

Preface

The Spring Data Elasticsearch project applies core Spring concepts to - the - development of solutions using the Elasticsearch Search Engine. - We have povided a "template" as a high-level abstraction for - storing,querying,sorting and faceting documents. You will notice similarities - to the Spring data solr and - mongodb support in the Spring Framework. -

1. Project Metadata

2. Requirements

- Requires - Elasticsearch - 0.20.2 and above or optional dependency or not even that if you are using Embedded Node Client -

Part I. Reference Documentation

Chapter 1. Repositories

1.1. Introduction

Implementing a data access layer of an application has been - cumbersome for quite a while. Too much boilerplate code had to be written. - Domain classes were anemic and not designed in a real object oriented or - domain driven manner.

Using both of these technologies makes developers life a lot easier - regarding rich domain model's persistence. Nevertheless the amount of - boilerplate code to implement repositories especially is still quite high. - So the goal of the repository abstraction of Spring Data is to reduce the - effort to implement data access layers for various persistence stores - significantly.

The following chapters will introduce the core concepts and - interfaces of Spring Data repositories in general for detailled - information on the specific features of a particular store consult the - later chapters of this document.

[Note]Note

As this part of the documentation is pulled in from Spring Data - Commons we have to decide for a particular module to be used as example. - The configuration and code samples in this chapter are using the JPA - module. Make sure you adapt e.g. the XML namespace declaration, types to - be extended to the equivalents of the module you're actually - using.

1.2. Core concepts

The central interface in Spring Data repository abstraction is - Repository (probably not that much of a - surprise). It is typeable to the domain class to manage as well as the id - type of the domain class. This interface mainly acts as marker interface - to capture the types to deal with and help us when discovering interfaces - that extend this one. Beyond that there's - CrudRepository which provides some - sophisticated functionality around CRUD for the entity being - managed.

Example 1.1. CrudRepository interface

public interface CrudRepository<T, ID extends Serializable>
-    extends Repository<T, ID> {
-                                                                                         (1)
-    T save(T entity);
-                                                                                         (2)
-    T findOne(ID primaryKey);
-                                                                                         (3)
-    Iterable<T> findAll();
-
-    Long count();
-                                                                                         (4)
-    void delete(T entity);
-                                                                                         (5)
-    boolean exists(ID primaryKey);
-                                                                                         (6)
-    // … more functionality omitted.
-}
1

Saves the given entity.

2

Returns the entity identified by the given id.

3

Returns all entities.

4

Returns the number of entities.

5

Deletes the given entity.

6

Returns whether an entity with the given id exists.


Usually we will have persistence technology specific sub-interfaces - to include additional technology specific methods. We will now ship - implementations for a variety of Spring Data modules that implement this - interface.

On top of the CrudRepository there is - a PagingAndSortingRepository abstraction - that adds additional methods to ease paginated access to entities:

Example 1.2. PagingAndSortingRepository

public interface PagingAndSortingRepository<T, ID extends Serializable> extends CrudRepository<T, ID> {
-
-    Iterable<T> findAll(Sort sort);
-
-    Page<T> findAll(Pageable pageable);
-}

Accessing the second page of User by a page - size of 20 you could simply do something like this:

PagingAndSortingRepository<User, Long> repository = // … get access to a bean
-Page<User> users = repository.findAll(new PageRequest(1, 20));

1.3. Query methods

Next to standard CRUD functionality repositories are usually queries - on the underlying datastore. With Spring Data declaring those queries - becomes a four-step process:

  1. Declare an interface extending - Repository or one of its sub-interfaces - and type it to the domain class it shall handle.

    public interface PersonRepository extends Repository<User, Long> { … }
  2. Declare query methods on the interface.

    List<Person> findByLastname(String lastname);
  3. Setup Spring to create proxy instances for those - interfaces.

    <?xml version="1.0" encoding="UTF-8"?>
    -<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
    -  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    -  xmlns="http://www.springframework.org/schema/data/jpa"
    -  xsi:schemaLocation="http://www.springframework.org/schema/beans
    -    http://www.springframework.org/schema/beans/spring-beans.xsd
    -    http://www.springframework.org/schema/data/jpa
    -    http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
    -
    -  <repositories base-package="com.acme.repositories" />
    -
    -</beans>
    [Note]Note

    Note that we use the JPA namespace here just by example. If - you're using the repository abstraction for any other store you need - to change this to the appropriate namespace declaration of your - store module which should be exchanging jpa in favor of - e.g. mongodb.

  4. Get the repository instance injected and use it.

    public class SomeClient {
    -
    -  @Autowired
    -  private PersonRepository repository;
    -
    -  public void doSomething() {
    -    List<Person> persons = repository.findByLastname("Matthews");
    -  }

At this stage we barely scratched the surface of what's possible - with the repositories but the general approach should be clear. Let's go - through each of these steps and figure out details and various options - that you have at each stage.

1.3.1. Defining repository interfaces

As a very first step you define a domain class specific repository - interface. It's got to extend Repository - and be typed to the domain class and an ID type. If you want to expose - CRUD methods for that domain type, extend - CrudRepository instead of - Repository.

1.3.1.1. Fine tuning repository definition

Usually you will have your repository interface extend - Repository, - CrudRepository or - PagingAndSortingRepository. If you - don't like extending Spring Data interfaces at all you can also - annotate your repository interface with - @RepositoryDefinition. Extending - CrudRepository will expose a complete - set of methods to manipulate your entities. If you would rather be - selective about the methods being exposed, simply copy the ones you - want to expose from CrudRepository into - your domain repository.

Example 1.3. Selectively exposing CRUD methods

interface MyBaseRepository<T, ID extends Serializable> extends Repository<T, ID> {
-  T findOne(ID id);
-  T save(T entity);
-}
-
-interface UserRepository extends MyBaseRepository<User, Long> {
-
-  User findByEmailAddress(EmailAddress emailAddress);
-}

In the first step we define a common base interface for all our - domain repositories and expose findOne(…) as - well as save(…).These methods will be routed - into the base repository implementation of the store of your choice - because they are matching the method signatures in - CrudRepository. So our - UserRepository will now be able to save - users, find single ones by id as well as triggering a query to find - Users by their email address.

1.3.2. Defining query methods

1.3.2.1. Query lookup strategies

The next thing we have to discuss is the definition of query - methods. There are two main ways that the repository proxy is able to - come up with the store specific query from the method name. The first - option is to derive the query from the method name directly, the - second is using some kind of additionally created query. What detailed - options are available pretty much depends on the actual store, - however, there's got to be some algorithm that decides what actual - query is created.

There are three strategies available for the repository - infrastructure to resolve the query. The strategy to be used can be - configured at the namespace through the - query-lookup-strategy attribute. However, It might be the - case that some of the strategies are not supported for specific - datastores. Here are your options:

CREATE

This strategy will try to construct a store specific query - from the query method's name. The general approach is to remove a - given set of well-known prefixes from the method name and parse the - rest of the method. Read more about query construction in Section 1.3.2.2, “Query creation”.

USE_DECLARED_QUERY

This strategy tries to find a declared query which will be - used for execution first. The query could be defined by an - annotation somewhere or declared by other means. Please consult the - documentation of the specific store to find out what options are - available for that store. If the repository infrastructure does not - find a declared query for the method at bootstrap time it will - fail.

CREATE_IF_NOT_FOUND (default)

This strategy is actually a combination of CREATE - and USE_DECLARED_QUERY. It will try to lookup a - declared query first but create a custom method name based query if - no declared query was found. This is the default lookup strategy and - thus will be used if you don't configure anything explicitly. It - allows quick query definition by method names but also custom tuning - of these queries by introducing declared queries as needed.

1.3.2.2. Query creation

The query builder mechanism built into Spring Data repository - infrastructure is useful to build constraining queries over entities - of the repository. We will strip the prefixes findBy, - find, readBy, read, - getBy as well as get from the method and - start parsing the rest of it. At a very basic level you can define - conditions on entity properties and concatenate them with - AND and OR.

Example 1.4. Query creation from method names

public interface PersonRepository extends Repository<User, Long> {
-
-  List<Person> findByEmailAddressAndLastname(EmailAddress emailAddress, String lastname);
-}

The actual result of parsing that method will of course depend - on the persistence store we create the query for, however, there are - some general things to notice. The expressions are usually property - traversals combined with operators that can be concatenated. As you - can see in the example you can combine property expressions with And - and Or. Beyond that you also get support for various operators like - Between, LessThan, - GreaterThan, Like for the - property expressions. As the operators supported can vary from - datastore to datastore please consult the according part of the - reference documentation.

1.3.2.2.1. Property expressions

Property expressions can just refer to a direct property of - the managed entity (as you just saw in the example above). On query - creation time we already make sure that the parsed property is at a - property of the managed domain class. However, you can also define - constraints by traversing nested properties. Assume - Persons have Addresses - with ZipCodes. In that case a method name - of

List<Person> findByAddressZipCode(ZipCode zipCode);

will create the property traversal - x.address.zipCode. The resolution algorithm starts with - interpreting the entire part (AddressZipCode) as - property and checks the domain class for a property with that name - (uncapitalized). If it succeeds it just uses that. If not it starts - splitting up the source at the camel case parts from the right side - into a head and a tail and tries to find the according property, - e.g. AddressZip and Code. If - we find a property with that head we take the tail and continue - building the tree down from there. As in our case the first split - does not match we move the split point to the left - (Address, ZipCode).

Although this should work for most cases, there might be cases - where the algorithm could select the wrong property. Suppose our - Person class has an addressZip - property as well. Then our algorithm would match in the first split - round already and essentially choose the wrong property and finally - fail (as the type of addressZip probably has - no code property). To resolve this ambiguity you can use - _ inside your method name to manually define - traversal points. So our method name would end up like so:

List<Person> findByAddress_ZipCode(ZipCode zipCode);
-

1.3.2.3. Special parameter handling

To hand parameters to your query you simply define method - parameters as already seen in the examples above. Besides that we will - recognizes certain specific types to apply pagination and sorting to - your queries dynamically.

Example 1.5. Using Pageable and Sort in query methods

Page<User> findByLastname(String lastname, Pageable pageable);
-
-List<User> findByLastname(String lastname, Sort sort);
-
-List<User> findByLastname(String lastname, Pageable pageable);

The first method allows you to pass a Pageable - instance to the query method to dynamically add paging to your - statically defined query. Sorting options are handed via - the Pageable instance too. If you only - need sorting, simply add a Sort parameter to your method. - As you also can see, simply returning a - List is possible as well. We will then - not retrieve the additional metadata required to build the actual - Page instance but rather simply - restrict the query to lookup only the given range of entities.

[Note]Note

To find out how many pages you get for a query entirely we - have to trigger an additional count query. This will be derived from - the query you actually trigger by default.

1.3.3. Creating repository instances

So now the question is how to create instances and bean - definitions for the repository interfaces defined.

1.3.3.1. XML Configuration

The easiest way to do so is by using the Spring namespace that - is shipped with each Spring Data module that supports the repository - mechanism. Each of those includes a repositories element that allows - you to simply define a base package that Spring will scan for - you.

<?xml version="1.0" encoding="UTF-8"?>
-<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns="http://www.springframework.org/schema/data/jpa"
-  xsi:schemaLocation="http://www.springframework.org/schema/beans
-    http://www.springframework.org/schema/beans/spring-beans.xsd
-    http://www.springframework.org/schema/data/jpa
-    http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
-
-  <repositories base-package="com.acme.repositories" />
-
-</beans:beans>

In this case we instruct Spring to scan - com.acme.repositories and all its sub packages for - interfaces extending Repository or one - of its sub-interfaces. For each interface found it will register the - persistence technology specific - FactoryBean to create the according - proxies that handle invocations of the query methods. Each of these - beans will be registered under a bean name that is derived from the - interface name, so an interface of - UserRepository would be registered - under userRepository. The base-package - attribute allows the use of wildcards, so that you can have a pattern - of scanned packages.

Using filters

By default we will pick up every interface extending the - persistence technology specific - Repository sub-interface located - underneath the configured base package and create a bean instance - for it. However, you might want finer grained control over which - interfaces bean instances get created for. To do this we support the - use of <include-filter /> and - <exclude-filter /> elements inside - <repositories />. The semantics are exactly - equivalent to the elements in Spring's context namespace. For - details see Spring reference documentation on these - elements.

E.g. to exclude certain interfaces from instantiation as - repository, you could use the following configuration:

Example 1.6. Using exclude-filter element

<repositories base-package="com.acme.repositories">
-  <context:exclude-filter type="regex" expression=".*SomeRepository" />
-</repositories>

This would exclude all interfaces ending in - SomeRepository from being - instantiated.


1.3.3.2. JavaConfig

The repository infrastructure can also be triggered using a - store-specific - @Enable${store}Repositories annotation - on a JavaConfig class. For an introduction into Java based - configuration of the Spring container please have a look at the - reference documentation.[1]

A sample configuration to enable Spring Data repositories would - look something like this.

Example 1.7. Sample annotation based repository configuration

@Configuration
-@EnableJpaRepositories("com.acme.repositories")
-class ApplicationConfiguration {
-
-  @Bean
-  public EntityManagerFactory entityManagerFactory() {
-    // …
-  }
-}

Note that the sample uses the JPA specific annotation which - would have to be exchanged dependingon which store module you actually - use. The same applies to the definition of the - EntityManagerFactory bean. Please - consult the sections covering the store-specific configuration.

1.3.3.3. Standalone usage

You can also use the repository infrastructure outside of a - Spring container usage. You will still need to have some of the Spring - libraries on your classpath but you can generally setup repositories - programmatically as well. The Spring Data modules providing repository - support ship a persistence technology specific - RepositoryFactory that can be used as - follows:

Example 1.8. Standalone usage of repository factory

RepositoryFactorySupport factory = … // Instantiate factory here
-UserRepository repository = factory.getRepository(UserRepository.class);

1.4. Custom implementations

1.4.1. Adding behaviour to single repositories

Often it is necessary to provide a custom implementation for a few - repository methods. Spring Data repositories easily allow you to provide - custom repository code and integrate it with generic CRUD abstraction - and query method functionality. To enrich a repository with custom - functionality you have to define an interface and an implementation for - that functionality first and let the repository interface you provided - so far extend that custom interface.

Example 1.9. Interface for custom repository functionality

interface UserRepositoryCustom {
-
-  public void someCustomMethod(User user);
-}

Example 1.10. Implementation of custom repository functionality

class UserRepositoryImpl implements UserRepositoryCustom {
-
-  public void someCustomMethod(User user) {
-    // Your custom implementation
-  }
-}

Note that the implementation itself does not depend on - Spring Data and can be a regular Spring bean. So you can use standard - dependency injection behaviour to inject references to other beans, - take part in aspects and so on.


Example 1.11. Changes to the your basic repository interface

public interface UserRepository extends CrudRepository<User, Long>, UserRepositoryCustom {
-
-  // Declare query methods here
-}

Let your standard repository interface extend the custom - one. This makes CRUD and custom functionality available to - clients.


Configuration

If you use namespace configuration the repository infrastructure - tries to autodetect custom implementations by looking up classes in - the package we found a repository using the naming conventions - appending the namespace element's attribute - repository-impl-postfix to the classname. This suffix - defaults to Impl.

Example 1.12. Configuration example

<repositories base-package="com.acme.repository" />
-
-<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar" />

The first configuration example will try to lookup a class - com.acme.repository.UserRepositoryImpl to act - as custom repository implementation, where the second example will try - to lookup - com.acme.repository.UserRepositoryFooBar.

Manual wiring

The approach above works perfectly well if your custom - implementation uses annotation based configuration and autowiring - entirely as it will be treated as any other Spring bean. If your - custom implementation bean needs some special wiring you simply - declare the bean and name it after the conventions just described. We - will then pick up the custom bean by name rather than creating an - instance.

Example 1.13. Manual wiring of custom implementations (I)

<repositories base-package="com.acme.repository" />
-
-<beans:bean id="userRepositoryImpl" class="…">
-  <!-- further configuration -->
-</beans:bean>

1.4.2. Adding custom behaviour to all repositories

In other cases you might want to add a single method to all of - your repository interfaces. So the approach just shown is not feasible. - The first step to achieve this is adding and intermediate interface to - declare the shared behaviour

Example 1.14. An interface declaring custom shared behaviour

-public interface MyRepository<T, ID extends Serializable>
-  extends JpaRepository<T, ID> {
-
-  void sharedCustomMethod(ID id);
-}

Now your individual repository interfaces will extend this - intermediate interface instead of the - Repository interface to include the - functionality declared. The second step is to create an implementation - of this interface that extends the persistence technology specific - repository base class which will then act as a custom base class for the - repository proxies.

[Note]Note

The default behaviour of the Spring <repositories - /> namespace is to provide an implementation for all - interfaces that fall under the base-package. This means - that if left in it's current state, an implementation instance of - MyRepository will be created by Spring. - This is of course not desired as it is just supposed to act as an - intermediary between Repository and the - actual repository interfaces you want to define for each entity. To - exclude an interface extending - Repository from being instantiated as a - repository instance it can either be annotate it with - @NoRepositoryBean or moved out side of - the configured base-package.

Example 1.15. Custom repository base class

-public class MyRepositoryImpl<T, ID extends Serializable>
-  extends SimpleJpaRepository<T, ID> implements MyRepository<T, ID> {
-
-  private EntityManager entityManager;
-
-  // There are two constructors to choose from, either can be used.
-  public MyRepositoryImpl(Class<T> domainClass, EntityManager entityManager) {
-    super(domainClass, entityManager);
-
-    // This is the recommended method for accessing inherited class dependencies.
-    this.entityManager = entityManager;
-  }
-
-  public void sharedCustomMethod(ID id) {
-    // implementation goes here
-  }
-}

The last step is to create a custom repository factory to replace - the default RepositoryFactoryBean that will in - turn produce a custom RepositoryFactory. The new - repository factory will then provide your - MyRepositoryImpl as the implementation of any - interfaces that extend the Repository - interface, replacing the SimpleJpaRepository - implementation you just extended.

Example 1.16. Custom repository factory bean

-public class MyRepositoryFactoryBean<R extends JpaRepository<T, I>, T, I extends Serializable>
-  extends JpaRepositoryFactoryBean<R, T, I> {
-
-  protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
-
-    return new MyRepositoryFactory(entityManager);
-  }
-
-  private static class MyRepositoryFactory<T, I extends Serializable> extends JpaRepositoryFactory {
-
-    private EntityManager entityManager;
-
-    public MyRepositoryFactory(EntityManager entityManager) {
-      super(entityManager);
-
-      this.entityManager = entityManager;
-    }
-
-    protected Object getTargetRepository(RepositoryMetadata metadata) {
-
-      return new MyRepositoryImpl<T, I>((Class<T>) metadata.getDomainClass(), entityManager);
-    }
-
-    protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) {
-
-      // The RepositoryMetadata can be safely ignored, it is used by the JpaRepositoryFactory
-      //to check for QueryDslJpaRepository's which is out of scope.
-      return MyRepository.class;
-    }
-  }
-}

Finally you can either declare beans of the custom factory - directly or use the factory-class attribute of the Spring - namespace to tell the repository infrastructure to use your custom - factory implementation.

Example 1.17. Using the custom factory with the namespace

<repositories base-package="com.acme.repository"
-  factory-class="com.acme.MyRepositoryFactoryBean" />

1.5. Extensions

This chapter documents a set of Spring Data extensions that enable - Spring Data usage in a variety of contexts. Currently most of the - integration is targeted towards Spring MVC.

1.5.1. Domain class web binding for Spring MVC

Given you are developing a Spring MVC web applications you - typically have to resolve domain class ids from URLs. By default it's - your task to transform that request parameter or URL part into the - domain class to hand it layers below then or execute business logic on - the entities directly. This should look something like this:

@Controller
-@RequestMapping("/users")
-public class UserController {
-
-  private final UserRepository userRepository;
-
-  public UserController(UserRepository userRepository) {
-    userRepository = userRepository;
-  }
-
-  @RequestMapping("/{id}")
-  public String showUserForm(@PathVariable("id") Long id, Model model) {
-    
-    // Do null check for id
-    User user = userRepository.findOne(id);
-    // Do null check for user
-    // Populate model
-    return "user";
-  }
-}

First you pretty much have to declare a repository dependency for - each controller to lookup the entity managed by the controller or - repository respectively. Beyond that looking up the entity is - boilerplate as well as it's always a findOne(…) - call. Fortunately Spring provides means to register custom converting - components that allow conversion between a String - value to an arbitrary type.

PropertyEditors

For versions up to Spring 3.0 simple Java - PropertyEditors had to be used. Thus, - we offer a DomainClassPropertyEditorRegistrar, - that will look up all Spring Data repositories registered in the - ApplicationContext and register a - custom PropertyEditor for the managed - domain class

<bean class="….web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
-  <property name="webBindingInitializer">
-    <bean class="….web.bind.support.ConfigurableWebBindingInitializer">
-      <property name="propertyEditorRegistrars">
-        <bean class="org.springframework.data.repository.support.DomainClassPropertyEditorRegistrar" />
-      </property>
-    </bean>
-  </property>
-</bean>

If you have configured Spring MVC like this you can turn your - controller into the following that reduces a lot of the clutter and - boilerplate.

@Controller
-@RequestMapping("/users")
-public class UserController {
-
-  @RequestMapping("/{id}")
-  public String showUserForm(@PathVariable("id") User user, Model model) {
-
-    // Do null check for user
-    // Populate model
-    return "userForm";
-  }
-}

ConversionService

As of Spring 3.0 the - PropertyEditor support is superseeded - by a new conversion infrstructure that leaves all the drawbacks of - PropertyEditors behind and uses a - stateless X to Y conversion approach. We now ship with a - DomainClassConverter that pretty much mimics - the behaviour of - DomainClassPropertyEditorRegistrar. To register - the converter you have to declare - ConversionServiceFactoryBean, register the - converter and tell the Spring MVC namespace to use the configured - conversion service:

<mvc:annotation-driven conversion-service="conversionService" />
-
-<bean id="conversionService" class="….context.support.ConversionServiceFactoryBean">
-  <property name="converters">
-    <list>
-      <bean class="org.springframework.data.repository.support.DomainClassConverter">
-        <constructor-arg ref="conversionService" />
-      </bean>
-    </list>
-  </property>
-</bean>

1.5.2. Web pagination

@Controller
-@RequestMapping("/users")
-public class UserController {
-
-  // DI code omitted
-
-  @RequestMapping
-  public String showUsers(Model model, HttpServletRequest request) {
-
-    int page = Integer.parseInt(request.getParameter("page"));
-    int pageSize = Integer.parseInt(request.getParameter("pageSize"));
-    model.addAttribute("users", userService.getUsers(pageable));
-    return "users";
-  }
-}

As you can see the naive approach requires the method to contain - an HttpServletRequest parameter that has - to be parsed manually. We even omitted an appropriate failure handling - which would make the code even more verbose. The bottom line is that the - controller actually shouldn't have to handle the functionality of - extracting pagination information from the request. So we include a - PageableArgumentResolver that will do the work - for you.

<bean class="….web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
-  <property name="customArgumentResolvers">
-    <list>
-      <bean class="org.springframework.data.web.PageableArgumentResolver" />
-    </list>
-  </property>
-</bean>

This configuration allows you to simplify controllers down to - something like this:

@Controller
-@RequestMapping("/users")
-public class UserController {
-
-  @RequestMapping
-  public String showUsers(Model model, Pageable pageable) {
-
-    model.addAttribute("users", userDao.readAll(pageable));
-    return "users";
-  }
-}

The PageableArgumentResolver will - automatically resolve request parameters to build a - PageRequest instance. By default it will expect - the following structure for the request parameters:

Table 1.1. Request parameters evaluated by - PageableArgumentResolver

pageThe page you want to retrieve
page.sizeThe size of the page you want to retrieve
page.sortThe property that should be sorted by
page.sort.dirThe direction that should be used for sorting

In case you need multiple Pageables - to be resolved from the request (for multiple tables e.g.) you can use - Spring's @Qualifier annotation to - distinguish one from another. The request parameters then have to be - prefixed with ${qualifier}_. So a method signature like - this:

public String showUsers(Model model, 
-      @Qualifier("foo") Pageable first,
-      @Qualifier("bar") Pageable second) { … }
-

you'd have to populate foo_page and - bar_page and the according subproperties.

Defaulting

The PageableArgumentResolver will use a - PageRequest with the first page and a page size - of 10 by default and will use that in case it can't resolve a - PageRequest from the request (because of - missing parameters e.g.). You can configure a global default on the - bean declaration directly. In case you might need controller method - specific defaults for the Pageable - simply annotate the method parameter with - @PageableDefaults and specify page and - page size as annotation attributes:

public String showUsers(Model model, 
-  @PageableDefaults(pageNumber = 0, value = 30) Pageable pageable) { … }
-

1.5.3. Repository populators

If you have been working with the JDBC module of Spring you're - probably familiar with the support to populate a DataSource using SQL - scripts. A similar abstraction is available on the repositories level - although we don't use SQL as data definition language as we need to be - store independent of course. Thus the populators support XML (through - Spring's OXM abstraction) and JSON (through Jackson) to define data for - the repositories to be populated with.

Assume you have a file data.json with the - following content:

Example 1.18. Data defined in JSON

[ { "_class" : "com.acme.Person",
- "firstname" : "Dave",
-  "lastname" : "Matthews" },
-  { "_class" : "com.acme.Person",
- "firstname" : "Carter",
-  "lastname" : "Beauford" } ]

You can easily populate you repositories by using the populator - elements of the repository namespace provided in Spring Data Commons. To - get the just shown data be populated to your - PersonRepository all you need to do is - the following:

Example 1.19. Declaring a Jackson repository populator

<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns:repository="http://www.springframework.org/schema/data/repository"
-  xsi:schemaLocation="http://www.springframework.org/schema/beans
-    http://www.springframework.org/schema/beans/spring-beans.xsd
-    http://www.springframework.org/schema/data/repository
-    http://www.springframework.org/schema/data/repository/spring-repository.xsd">
-
-  <repository:jackson-populator location="classpath:data.json" />
-
-</beans>

This declaration causes the data.json file being read, - deserialized by a Jackson ObjectMapper. The type - the JSON object will be unmarshalled to will be determined by inspecting - the _class attribute of the JSON document. We will - eventually select the appropriate repository being able to handle the - object just deserialized.

To rather use XML to define the repositories shall be populated - with you can use the unmarshaller-populator you hand one of the - marshaller options Spring OXM provides you with.

Example 1.20. Declaring an unmarshalling repository populator (using - JAXB)

<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns:repository="http://www.springframework.org/schema/data/repository"
-  xmlns:oxm="http://www.springframework.org/schema/oxm"
-  xsi:schemaLocation="http://www.springframework.org/schema/beans
-    http://www.springframework.org/schema/beans/spring-beans.xsd
-    http://www.springframework.org/schema/data/repository
-    http://www.springframework.org/schema/data/repository/spring-repository.xsd
-    http://www.springframework.org/schema/oxm
-    http://www.springframework.org/schema/oxm/spring-oxm.xsd">
-
-  <repository:unmarshaller-populator location="classpath:data.json" unmarshaller-ref="unmarshaller" />
-
-  <oxm:jaxb2-marshaller contextPath="com.acme" />
-
-</beans>

Chapter 2. Elasticsearch Repositories

Abstract

This chapter includes details of the Elasticsearch repository - implementation. -

2.1. Introduction

2.1.1. Spring Namespace

- The Spring Data Elasticsearch module contains a custom namespace allowing - definition of repository beans as well as elements for instantiating - a - ElasticsearchServer - . -

- Using the - repositories - element looks up Spring Data repositories as described in - Section 1.3.3, “Creating repository instances” - . -

Example 2.1. Setting up Elasticsearch repositories using Namespace

<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch"
-  xsi:schemaLocation="http://www.springframework.org/schema/beans
-    http://www.springframework.org/schema/beans/spring-beans.xsd
-    http://www.springframework.org/schema/data/elasticsearch
-    http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd">
-
-  <elasticsearch:repositories base-package="com.acme.repositories" />
-</beans>

- Using the - Transport Client - or - Node Client - element registers an instance of - Elasticsearch Server - in the context. - -

Example 2.2. Transport Client using Namespace

<?xml version="1.0" encoding="UTF-8"?>
-                        <beans xmlns="http://www.springframework.org/schema/beans"
-                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                        xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch"
-                        xsi:schemaLocation="http://www.springframework.org/schema/beans
-                        http://www.springframework.org/schema/beans/spring-beans.xsd
-                        http://www.springframework.org/schema/data/elasticsearch
-                        http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd">
-
-  <elasticsearch:transport-client id="client" cluster-nodes="localhost:9300,someip:9300" />
-</beans> 


- -

Example 2.3. Node Client using Namespace

<?xml version="1.0" encoding="UTF-8"?>
-                        <beans xmlns="http://www.springframework.org/schema/beans"
-                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                        xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch"
-                        xsi:schemaLocation="http://www.springframework.org/schema/beans
-                        http://www.springframework.org/schema/beans/spring-beans.xsd
-                        http://www.springframework.org/schema/data/elasticsearch
-                        http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd">
-
-  <elasticsearch:node-client id="client" local="true"" />
-</beans> 


-

2.1.2. Annotation based configuration

The Spring Data Elasticsearch repositories support cannot only be - activated through an XML namespace but also using an annotation - through JavaConfig. -

Example 2.4. Spring Data Elasticsearch repositories using JavaConfig

-                    @Configuration
-                    @EnableElasticsearchRepositories(basePackages = "org/springframework/data/elasticsearch/repositories")
-                    static class Config {
-
-                    @Bean
-                    public ElasticsearchOperations elasticsearchTemplate() {
-                    return new ElasticsearchTemplate(nodeBuilder().local(true).node().client());
-                    }
-                    }

- The configuration above sets up an - Embedded Elasticsearch Server - which is used by the - ElasticsearchTemplate - . Spring Data Elasticsearch Repositories are activated using the - @EnableElasticsearchRepositories - annotation, which - essentially carries the same attributes as the XML - namespace does. If no - base package is configured, it will use the - one - the configuration class - resides in. -


2.1.3. Elasticsearch Repositores using CDI

The Spring Data Elasticsearch repositories can also be set up using CDI - functionality. -

Example 2.5. Spring Data Elasticsearch repositories using JavaConfig

class ElasticsearchTemplateProducer {
-
-  @Produces
-  @ApplicationScoped
-  public ElasticsearchOperations createElasticsearchTemplate() {
-    return new ElasticsearchTemplate(new EmbeddedElasticsearchServerFactory("classpath:com/acme/Elasticsearch"));
-  }
-}
-
-class ProductService {
-
-  private ProductRepository repository;
-
-  public Page<Product> findAvailableBookByName(String name, Pageable pageable) {
-    return repository.findByAvailableTrueAndNameStartingWith(name, pageable);
-  }
-
-  @Inject
-  public void setRepository(ProductRepository repository) {
-    this.repository = repository;
-  }
-}

2.2. Query methods

2.2.1. Query lookup strategies

- The Elasticsearch module supports all basic query building feature as String,Abstract,Criteria or - have - it being derived from the method name. -

Declared queries

- Deriving the query from the method name is not always sufficient - and/or may result in unreadable method names. In this case one - might make either use of - @Query - annotation (see - Section 2.2.3, “Using @Query Annotation” - ). -

2.2.2. Query creation

- Generally the query creation mechanism for Elasticsearch works as described - in - Section 1.3, “Query methods” - . Here's a short example - of what a Elasticsearch query method translates into: -

Example 2.6. Query creation from method names

public interface BookRepository extends Repository<Book, String> {
-  List<Book> findByNameAndPrice(String name, Integer price);
-}

- The method name above will be translated into the following - Elasticsearch json query -

-                        { "bool" : { "must" :
-                        [
-                        { "field" : {"name" : "?"} },
-                        { "field" : {"price" : "?"} }
-                        ]
-                        } }


-

- A list of supported keywords for Elasticsearch is shown below. -

Table 2.1. Supported keywords inside method names

KeywordSampleElasticsearch Query String
- And - - findByNameAndPrice - - { - "bool" : { - "must" : [ { - "field" : { - "name" : "?" - } - }, { - "field" : { - "price" : "?" - } - } ] - } - } -
- Or - - findByNameOrPrice - - { - "bool" : { - "should" : [ { - "field" : { - "name" : "?" - } - }, { - "field" : { - "price" : "?" - } - } ] - } - } -
- Is - - findByName - - { - "bool" : { - "must" : { - "field" : { - "name" : "?" - } - } - } - } -
- Not - - findByNameNot - - { - "bool" : { - "must_not" : { - "field" : { - "name" : "?" - } - } - } - } -
- Between - - findByPriceBetween - - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : ?, - "to" : ?, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } -
- LessThanEqual - - findByPriceLessThan - - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : null, - "to" : ?, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } -
- GreaterThanEqual - - findByPriceGreaterThan - - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : ?, - "to" : null, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } -
- Before - - findByPriceBefore - - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : null, - "to" : ?, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } -
- After - - findByPriceAfter - - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : ?, - "to" : null, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } - -
- Like - - findByNameLike - - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "?*", - "analyze_wildcard" : true - } - } - } - } - } -
- StartingWith - - findByNameStartingWith - - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "?*", - "analyze_wildcard" : true - } - } - } - } - } -
- EndingWith - - findByNameEndingWith - - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "*?", - "analyze_wildcard" : true - } - } - } - } - } -
- Contains/Containing - - findByNameContaining - - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "*?*", - "analyze_wildcard" : true - } - } - } - } - } -
- In - - findByNameIn(Collection<String> - names) - - - Not Supported Yet ! -
- NotIn - - findByNameNotIn(Collection<String> - names) - - - Not Supported Yet ! -
- Near - - findByStoreNear - - Not Supported Yet ! - -
- True - - findByAvailableTrue - - Not Supported Yet ! -
- False - - findByAvailableFalse - - Not Supported Yet ! -
- OrderBy - - findByAvailableTrueOrderByNameDesc - - Not Supported Yet ! -


-

2.2.3. Using @Query Annotation

Example 2.7.  - Declare query at the method using the - @Query - annotation. -

public interface BookRepository extends ElasticsearchRepository<Book, String> {
-  @Query("{"bool" : {"must" : {"field" : {"name" : "?0"}}}}")
-  Page<Book> findByName(String name,Pageable pageable);
-}

Chapter 3. Miscellaneous Elasticsearch Operation Support

Abstract

- This chapter covers additional support for Elasticsearch operations - that cannot be directly accessed via the repository - interface. - It is recommended to add those operations as custom - implementation as - described in - Section 1.4, “Custom implementations” - . -

3.1. Filter Builder

- Filter Builder improves query speed. -

Example 3.1. 

-                private ElasticsearchTemplate elasticsearchTemplate;
-                SearchQuery searchQuery = new SearchQuery();
-                searchQuery.setElasticsearchQuery(matchAllQuery());
-                searchQuery.setElasticsearchFilter(boolFilter().must(termFilter("id", documentId)));
-                Page<SampleEntity> sampleEntities = elasticsearchTemplate.queryForPage(searchQuery,SampleEntity.class);
-    

Part II. Appendix

Appendix A. Namespace reference

A.1. The <repositories /> element

The <repositories /> triggers the setup of the - Spring Data repository infrastructure. The most important attribute is - base-package which defines the package to scan for Spring - Data repository interfaces.[2]

Table A.1. Attributes

NameDescription
base-packageDefines the package to be used to be scanned for repository - interfaces extending *Repository - (actual interface is determined by specific Spring Data module) in - auto detection mode. All packages below the configured package - will be scanned, too. Wildcards are also allowed.
repository-impl-postfixDefines the postfix to autodetect custom repository - implementations. Classes whose names end with the configured - postfix will be considered as candidates. Defaults to - Impl.
query-lookup-strategyDetermines the strategy to be used to create finder - queries. See Section 1.3.2.1, “Query lookup strategies” for - details. Defaults to create-if-not-found.

Appendix B. Repository query keywords

B.1. Supported query keywords

The following table lists the keywords generally supported by the - Spring data repository query derivation mechanism. However consult the - store specific documentation for the exact list of supported keywords as - some of the ones listed here might not be supported in a particular - store.

Table B.1. Query keywords

Logical keywordKeyword expressions
AFTERAfter, - IsAfter
BEFOREBefore, - IsBefore
CONTAININGContaining, - IsContaining, - Contains
BETWEENBetween, - IsBetween
ENDING_WITHEndingWith, - IsEndingWith, - EndsWith
EXISTSExists
FALSEFalse, - IsFalse
GREATER_THANGreaterThan, - IsGreaterThan
GREATER_THAN_EQUALSGreaterThanEqual, - IsGreaterThanEqual
INIn, IsIn
ISIs, Equals, (or no - keyword)
IS_NOT_NULLNotNull, - IsNotNull
IS_NULLNull, IsNull
LESS_THANLessThan, - IsLessThan
LESS_THAN_EQUALLessThanEqual, - IsLessThanEqual
LIKELike, IsLike
NEARNear, IsNear
NOTNot, IsNot
NOT_INNotIn, - IsNotIn
NOT_LIKENotLike, - IsNotLike
REGEXRegex, MatchesRegex, - Matches
STARTING_WITHStartingWith, - IsStartingWith, - StartsWith
TRUETrue, IsTrue
WITHINWithin, - IsWithin

\ No newline at end of file diff --git a/site/reference/pdf/spring-data-elasticsearch-reference.pdf b/site/reference/pdf/spring-data-elasticsearch-reference.pdf deleted file mode 100644 index 9296333e..00000000 Binary files a/site/reference/pdf/spring-data-elasticsearch-reference.pdf and /dev/null differ diff --git a/src/docbkx/reference/data-elasticsearch.xml b/src/docbkx/reference/data-elasticsearch.xml index fa514271..aac5bdc6 100644 --- a/src/docbkx/reference/data-elasticsearch.xml +++ b/src/docbkx/reference/data-elasticsearch.xml @@ -32,16 +32,16 @@ Setting up Elasticsearch repositories using Namespace - <?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" - xsi:schemaLocation="http://www.springframework.org/schema/beans - http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/data/elasticsearch - http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd"> +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" +xsi:schemaLocation="http://www.springframework.org/schema/beans +http://www.springframework.org/schema/beans/spring-beans-3.2.xsd +http://www.springframework.org/schema/data/elasticsearch +http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd"> - <elasticsearch:repositories base-package="com.acme.repositories" /> +<elasticsearch:repositories base-package="com.acme.repositories" /> </beans> @@ -61,7 +61,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" xsi:schemaLocation="http://www.springframework.org/schema/beans -http://www.springframework.org/schema/beans/spring-beans.xsd +http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd"> @@ -71,16 +71,16 @@ http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1. Node Client using Namespace - <?xml version="1.0" encoding="UTF-8"?> - <beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" - xsi:schemaLocation="http://www.springframework.org/schema/beans - http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/data/elasticsearch - http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd"> +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" +xsi:schemaLocation="http://www.springframework.org/schema/beans +http://www.springframework.org/schema/beans/spring-beans-3.2.xsd +http://www.springframework.org/schema/data/elasticsearch +http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd"> - <elasticsearch:node-client id="client" local="true"" /> +<elasticsearch:node-client id="client" local="true"" /> </beans> @@ -93,16 +93,16 @@ http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1. Spring Data Elasticsearch repositories using JavaConfig - - @Configuration - @EnableElasticsearchRepositories(basePackages = "org/springframework/data/elasticsearch/repositories") - static class Config { + +@Configuration +@EnableElasticsearchRepositories(basePackages = "org/springframework/data/elasticsearch/repositories") +static class Config { - @Bean - public ElasticsearchOperations elasticsearchTemplate() { - return new ElasticsearchTemplate(nodeBuilder().local(true).node().client()); - } - } +@Bean +public ElasticsearchOperations elasticsearchTemplate() { +return new ElasticsearchTemplate(nodeBuilder().local(true).node().client()); + } +} The configuration above sets up an Embedded Elasticsearch Server @@ -127,27 +127,27 @@ http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1. Spring Data Elasticsearch repositories using JavaConfig - class ElasticsearchTemplateProducer { +class ElasticsearchTemplateProducer { - @Produces - @ApplicationScoped - public ElasticsearchOperations createElasticsearchTemplate() { +@Produces +@ApplicationScoped +public ElasticsearchOperations createElasticsearchTemplate() { return new ElasticsearchTemplate(new EmbeddedElasticsearchServerFactory("classpath:com/acme/Elasticsearch")); } } class ProductService { - private ProductRepository repository; +private ProductRepository repository; - public Page<Product> findAvailableBookByName(String name, Pageable pageable) { - return repository.findByAvailableTrueAndNameStartingWith(name, pageable); - } +public Page<Product> findAvailableBookByName(String name, Pageable pageable) { + return repository.findByAvailableTrueAndNameStartingWith(name, pageable); +} - @Inject - public void setRepository(ProductRepository repository) { - this.repository = repository; - } +@Inject +public void setRepository(ProductRepository repository) { + this.repository = repository; + } } @@ -195,12 +195,12 @@ class ProductService { Elasticsearch json query - { "bool" : { "must" : + { "bool" : + { "must" : [ { "field" : {"name" : "?"} }, { "field" : {"price" : "?"} } - ] - } } + ] } } @@ -227,19 +227,7 @@ class ProductService { findByNameAndPrice - { - "bool" : { - "must" : [ { - "field" : { - "name" : "?" - } - }, { - "field" : { - "price" : "?" - } - } ] - } - } + {"bool" : {"must" : [ {"field" : {"name" : "?"}}, {"field" : {"price" : "?"}} ]}} @@ -250,19 +238,7 @@ class ProductService { findByNameOrPrice - { - "bool" : { - "should" : [ { - "field" : { - "name" : "?" - } - }, { - "field" : { - "price" : "?" - } - } ] - } - } + {"bool" : {"should" : [ {"field" : {"name" : "?"}}, {"field" : {"price" : "?"}} ]}} @@ -273,15 +249,7 @@ class ProductService { findByName - { - "bool" : { - "must" : { - "field" : { - "name" : "?" - } - } - } - } + {"bool" : {"must" : {"field" : {"name" : "?"}}}} @@ -292,15 +260,7 @@ class ProductService { findByNameNot - { - "bool" : { - "must_not" : { - "field" : { - "name" : "?" - } - } - } - } + {"bool" : {"must_not" : {"field" : {"name" : "?"}}}} @@ -311,20 +271,7 @@ class ProductService { findByPriceBetween - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : ?, - "to" : ?, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } + {"bool" : {"must" : {"range" : {"price" : {"from" : ?,"to" : ?,"include_lower" : true,"include_upper" : true}}}}} @@ -335,20 +282,7 @@ class ProductService { findByPriceLessThan - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : null, - "to" : ?, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } + {"bool" : {"must" : {"range" : {"price" : {"from" : null,"to" : ?,"include_lower" : true,"include_upper" : true}}}}} @@ -359,20 +293,7 @@ class ProductService { findByPriceGreaterThan - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : ?, - "to" : null, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } + {"bool" : {"must" : {"range" : {"price" : {"from" : ?,"to" : null,"include_lower" : true,"include_upper" : true}}}}} @@ -383,20 +304,7 @@ class ProductService { findByPriceBefore - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : null, - "to" : ?, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } + {"bool" : {"must" : {"range" : {"price" : {"from" : null,"to" : ?,"include_lower" : true,"include_upper" : true}}}}} @@ -407,21 +315,7 @@ class ProductService { findByPriceAfter - { - "bool" : { - "must" : { - "range" : { - "price" : { - "from" : ?, - "to" : null, - "include_lower" : true, - "include_upper" : true - } - } - } - } - } - + {"bool" : {"must" : {"range" : {"price" : {"from" : ?,"to" : null,"include_lower" : true,"include_upper" : true}}}}} @@ -432,18 +326,7 @@ class ProductService { findByNameLike - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "?*", - "analyze_wildcard" : true - } - } - } - } - } + {"bool" : {"must" : {"field" : {"name" : {"query" : "?*","analyze_wildcard" : true}}}}} @@ -454,18 +337,7 @@ class ProductService { findByNameStartingWith - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "?*", - "analyze_wildcard" : true - } - } - } - } - } + {"bool" : {"must" : {"field" : {"name" : {"query" : "?*","analyze_wildcard" : true}}}}} @@ -476,18 +348,7 @@ class ProductService { findByNameEndingWith - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "*?", - "analyze_wildcard" : true - } - } - } - } - } + {"bool" : {"must" : {"field" : {"name" : {"query" : "*?","analyze_wildcard" : true}}}}} @@ -498,18 +359,7 @@ class ProductService { findByNameContaining - { - "bool" : { - "must" : { - "field" : { - "name" : { - "query" : "*?*", - "analyze_wildcard" : true - } - } - } - } - } + {"bool" : {"must" : {"field" : {"name" : {"query" : "*?*","analyze_wildcard" : true}}}}} diff --git a/src/docbkx/reference/elasticsearch-misc.xml b/src/docbkx/reference/elasticsearch-misc.xml index 4e611c9d..a152b78d 100644 --- a/src/docbkx/reference/elasticsearch-misc.xml +++ b/src/docbkx/reference/elasticsearch-misc.xml @@ -21,13 +21,13 @@ Filter Builder improves query speed. - - private ElasticsearchTemplate elasticsearchTemplate; - SearchQuery searchQuery = new SearchQuery(); - searchQuery.setElasticsearchQuery(matchAllQuery()); - searchQuery.setElasticsearchFilter(boolFilter().must(termFilter("id", documentId))); - Page<SampleEntity> sampleEntities = elasticsearchTemplate.queryForPage(searchQuery,SampleEntity.class); - + +private ElasticsearchTemplate elasticsearchTemplate; +SearchQuery searchQuery = new SearchQuery(); +searchQuery.setElasticsearchQuery(matchAllQuery()); +searchQuery.setElasticsearchFilter(boolFilter().must(termFilter("id", documentId))); +Page<SampleEntity> sampleEntities = elasticsearchTemplate.queryForPage(searchQuery,SampleEntity.class); + \ No newline at end of file diff --git a/src/docbkx/reference/misc.xml b/src/docbkx/reference/misc.xml deleted file mode 100644 index c7a30318..00000000 --- a/src/docbkx/reference/misc.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - Miscellaneous Solr Operation Support - - - This chapter covers additional support for Solr operations (such as - faceting) that cannot be directly accessed via the repository - interface. - It is recommended to add those operations as custom - implementation as - described in - - . - - -
- Partial Updates - - PartialUpdates can be done using - PartialUpdate - which implements - Update - . - - With Solr 4.0.0 it is not possible to update mulitvalue fields. - - - - PartialUpdate update = new PartialUpdate("id", "123"); -update.add("name", "updated-name"); -solrTemplate.saveBean(update); - -
-
- Projection - - Projections can be applied via - @Query - using the fields value. - - - @Query(fields = { "name", "id" }) -List<ProductBean> findByNameStartingWith(String name); - -
-
- Faceting - - Faceting cannot be directly applied using the - SolrRepository - but the - SolrTemplate - holds support for this feature. - - - FacetQuery query = new SimpleFacetQuery(new Criteria(Criteria.WILDCARD).expression(Criteria.WILDCARD)) - .setFacetOptions(new FacetOptions().addFacetOnField("name").setFacetLimit(5)); -FacetPage<Product> page = solrTemplate.queryForFacetPage(query, Product.class); - - - Facets on fields can also be defined using - @Facet - . Please mind that the result will be a - FacetPage - . - @Query(value = "*:*") -@Facet(fields = { "name" }, limit = 5) -FacetPage<Product> findAllFacetOnPopularity(Pageable page); - -
-
- Filter Query - - Filter Queries improve query speed. It is recommended to - implement - geospatial search as filter query. - - Please note that in solr, unless otherwise specified, all units of - distance are kilometers and points are in degrees of - latitude,longitude. - - - - Query query = new SimpleQuery(new Criteria("category").is("supercalifragilisticexpialidocious")); -FilterQuery fq = new SimpleFilterQuery(new Criteria("store") - .near(new GeoLocation(48.305478, 14.286699), new Distance(5))); -query.addFilterQuery(fq); - - - Simple filter queries can also be defined using - @Query - . - - @Query(value = "*:*", filters = { "inStock:true", "popularity:[* TO 3]" }) -List<ProductBean> findAllFilterAvailableTrueAndPopularityLessThanEqual3(); -
-
\ No newline at end of file diff --git a/src/test/resources/custom-method-repository-test.xml b/src/test/resources/custom-method-repository-test.xml index f9e22139..f2146a07 100644 --- a/src/test/resources/custom-method-repository-test.xml +++ b/src/test/resources/custom-method-repository-test.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"> diff --git a/src/test/resources/elasticsearch-template-test.xml b/src/test/resources/elasticsearch-template-test.xml index 1ac063b0..257d9910 100644 --- a/src/test/resources/elasticsearch-template-test.xml +++ b/src/test/resources/elasticsearch-template-test.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"> diff --git a/src/test/resources/repository-test.xml b/src/test/resources/repository-test.xml index f128c99c..5d430587 100644 --- a/src/test/resources/repository-test.xml +++ b/src/test/resources/repository-test.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch" xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">