picturesafe-search-starter-parent

Starter for picturesafe-search based Spring Boot applications

License

License

Categories

Categories

Spring Boot Container Microservices Search Business Logic Libraries
GroupId

GroupId

de.picturesafe.search
ArtifactId

ArtifactId

picturesafe-search-spring-boot-parent
Last Version

Last Version

3.5.2
Release Date

Release Date

Type

Type

pom
Description

Description

picturesafe-search-starter-parent
Starter for picturesafe-search based Spring Boot applications
Project URL

Project URL

https://github.com/picturesafe/picturesafe-search-starter
Source Code Management

Source Code Management

https://github.com/picturesafe/picturesafe-search-starter

Download picturesafe-search-spring-boot-parent

How to add to project

<!-- https://jarcasting.com/artifacts/de.picturesafe.search/picturesafe-search-spring-boot-parent/ -->
<dependency>
    <groupId>de.picturesafe.search</groupId>
    <artifactId>picturesafe-search-spring-boot-parent</artifactId>
    <version>3.5.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/de.picturesafe.search/picturesafe-search-spring-boot-parent/
implementation 'de.picturesafe.search:picturesafe-search-spring-boot-parent:3.5.2'
// https://jarcasting.com/artifacts/de.picturesafe.search/picturesafe-search-spring-boot-parent/
implementation ("de.picturesafe.search:picturesafe-search-spring-boot-parent:3.5.2")
'de.picturesafe.search:picturesafe-search-spring-boot-parent:pom:3.5.2'
<dependency org="de.picturesafe.search" name="picturesafe-search-spring-boot-parent" rev="3.5.2">
  <artifact name="picturesafe-search-spring-boot-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='de.picturesafe.search', module='picturesafe-search-spring-boot-parent', version='3.5.2')
)
libraryDependencies += "de.picturesafe.search" % "picturesafe-search-spring-boot-parent" % "3.5.2"
[de.picturesafe.search/picturesafe-search-spring-boot-parent "3.5.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • picturesafe-search-spring-boot-autoconfigure
  • picturesafe-search-spring-boot-starter
  • picturesafe-search-spring-boot-demo

picturesafe-search Spring Boot Starter

Spring Boot Starter for the picturesafe-search library.

Using the Starter

Create your Spring Boot application. In the pom.xml you need to add the following dependency:

<dependency>
    <groupId>de.picturesafe.search</groupId>
    <artifactId>picturesafe-search-spring-boot-starter</artifactId>
    <version>3.5.0-SNAPSHOT</version>
</dependency>

Spring Boot will configure everything required for picturesafe-search automatically.

You can now use the ElasticsearchService or the SingleIndexElasticsearchService as follows:

@SpringBootApplication
public class StarterDemoApplication implements CommandLineRunner {

    private static final Logger LOGGER = LoggerFactory.getLogger(StarterDemoApplication.class);

    @Autowired
    private SingleIndexElasticsearchService singleIndexElasticsearchService;

    public static void main(String[] args) {
        SpringApplication.run(StarterDemoApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        String elasticsearchServerVersion = singleIndexElasticsearchService
            .getElasticsearchInfo().getServerVersion();
        LOGGER.info("Elasticsearch version = {}", elasticsearchServerVersion);
    }
}

Spring Boot Starter Demo

Installation

The picturesafe-search Spring Boot Demo require a running Elasticsearch server from version 7.x.

  • Download and unpack the Elasticsearch official distribution.

  • Run bin/elasticsearch on Linux or macOS. Run bin\elasticsearch.bat on Windows.

Run Spring Boot Demo

Clone Maven project and run app from IDE or command line within folder picturesafe-search-spring-boot-demo.

Maven
mvn spring-boot:run

The application.properties correspond to the elasticsearch.template.properties of picturesafe-search.

For more information, please see following documentation.

de.picturesafe.search

Apollon GmbH + Co. KG

Versions

Version
3.5.2
3.5.1
3.5.0
3.4.1