Hibernate Search Elasticsearch Backend

Hibernate Search backend which has indexing operations forwarded to Elasticsearch

Лицензия

Лицензия

Категории

Категории

Hibernate Данные ORM Search Прикладные библиотеки Elasticsearch
Группа

Группа

org.hibernate
Идентификатор

Идентификатор

hibernate-search-backend-elasticsearch
Последняя версия

Последняя версия

5.6.0.Alpha3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Hibernate Search Elasticsearch Backend
Hibernate Search backend which has indexing operations forwarded to Elasticsearch
Ссылка на сайт

Ссылка на сайт

http://search.hibernate.org/hibernate-search-backend-elasticsearch
Организация-разработчик

Организация-разработчик

Hibernate

Скачать hibernate-search-backend-elasticsearch

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.hibernate/hibernate-search-backend-elasticsearch/ -->
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-search-backend-elasticsearch</artifactId>
    <version>5.6.0.Alpha3</version>
</dependency>
// https://jarcasting.com/artifacts/org.hibernate/hibernate-search-backend-elasticsearch/
implementation 'org.hibernate:hibernate-search-backend-elasticsearch:5.6.0.Alpha3'
// https://jarcasting.com/artifacts/org.hibernate/hibernate-search-backend-elasticsearch/
implementation ("org.hibernate:hibernate-search-backend-elasticsearch:5.6.0.Alpha3")
'org.hibernate:hibernate-search-backend-elasticsearch:jar:5.6.0.Alpha3'
<dependency org="org.hibernate" name="hibernate-search-backend-elasticsearch" rev="5.6.0.Alpha3">
  <artifact name="hibernate-search-backend-elasticsearch" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.hibernate', module='hibernate-search-backend-elasticsearch', version='5.6.0.Alpha3')
)
libraryDependencies += "org.hibernate" % "hibernate-search-backend-elasticsearch" % "5.6.0.Alpha3"
[org.hibernate/hibernate-search-backend-elasticsearch "5.6.0.Alpha3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.hibernate : hibernate-search-engine jar 5.6.0.Alpha3
io.searchbox : jest jar 2.0.0

provided (1)

Идентификатор библиотеки Тип Версия
org.jboss.logging : jboss-logging-annotations jar 2.0.0.Final

test (14)

Идентификатор библиотеки Тип Версия
org.hibernate : hibernate-testing jar 5.0.6.Final
org.hibernate : hibernate-search-engine test-jar 5.6.0.Alpha3
org.hibernate : hibernate-search-orm jar 5.6.0.Alpha3
org.hibernate : hibernate-entitymanager jar 5.0.6.Final
org.hibernate : hibernate-search-orm test-jar 5.6.0.Alpha3
org.apache.tika : tika-parsers jar 1.4
simple-jndi : simple-jndi jar 0.11.4.1
org.jboss.spec.javax.transaction : jboss-transaction-api_1.2_spec jar 1.0.0.Final
org.apache.lucene : lucene-queryparser jar 5.5.0
junit : junit jar 4.11
org.easytesting : fest-assert jar 1.4
commons-lang : commons-lang jar 2.6
org.skyscreamer : jsonassert jar 1.2.3
io.takari.junit : takari-cpsuite jar 1.2.7

Модули Проекта

Данный проект не имеет модулей.

Hibernate Search

Maven Central Build Status Coverage Status Quality gate Language Grade: Java

Description

Hibernate Search automatically extracts data from Hibernate ORM entities to push it to local Apache Lucene indexes or remote Elasticsearch indexes.

It features:

For example, map your entities like this:

@Entity
// This entity is mapped to an index
@Indexed
public class Book {

    // The entity ID is the document ID
    @Id
    @GeneratedValue
    private Integer id;

    // This property is mapped to a document field
    @FullTextField
    private String title;

    @ManyToMany
    // Authors will be embedded in Book documents
    @IndexedEmbedded
    private Set<Author> authors = new HashSet<>();

    // Getters and setters
    // ...
}

@Entity
public class Author {

    @Id
    @GeneratedValue
    private Integer id;

    // This property is mapped to a document field
    @FullTextField
    private String name;

    @ManyToMany(mappedBy = "authors")
    private Set<Book> books = new HashSet<>();

    // Getters and setters
    // ...
}

Index existing data like this:

SearchSession searchSession = Search.session( entityManager );
MassIndexer indexer = searchSession.massIndexer( Book.class );
indexer.startAndWait();

Automatic indexing does not require any change to code based on JPA or Hibernate ORM:

Author author = new Author();
author.setName( "Isaac Asimov" );

Book book = new Book();
book.setTitle( "The Caves Of Steel" );
book.getAuthors().add( author );
author.getBooks().add( book );

entityManager.persist( author );
entityManager.persist( book );

And search like this:

SearchResult<Book> result = Search.session( entityManager )
        .search( Book.class )
        .where( f -> f.match()
                .fields( "title", "authors.name" )
                .matching( "Isaac" ) )
        .fetch( 20 );

List<Book> hits = result.hits();
long totalHitCount = result.total().hitCount();

License

This software and its documentation are distributed under the terms of the FSF Lesser GNU Public License (see lgpl.txt).

Getting started

A getting started guide is available in the reference documentation.

Fore more information, refer to the Hibernate Search website:

For offline use, distribution bundles downloaded from SourceForge also include the reference documentation for the downloaded version in PDF and HTML format.

Contact

Latest Documentation

See http://hibernate.org/search/documentation/.

Bug Reports

See the HSEARCH project on the Hibernate JIRA instance: https://hibernate.atlassian.net/browse/HSEARCH.

Community Support

See http://hibernate.org/community/.

Contributing

New contributors are always welcome.

See CONTRIBUTING.md to get started.

The contribution guide also includes build instructions.

org.hibernate

Hibernate

Версии библиотеки

Версия
5.6.0.Alpha3
5.6.0.Alpha2
5.6.0.Alpha1