Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<asciidoctor.examples-resources-dir>${basedir}/src/test/resources</asciidoctor.examples-resources-dir>

<html.meta.project-key>search</html.meta.project-key>
<html.outdated-content.project-key>${html.meta.project-key}</html.outdated-content.project-key>
<html-outdated-content-project-key>${html.meta.project-key}</html-outdated-content-project-key>
</properties>

<dependencies>
Expand Down Expand Up @@ -342,8 +342,8 @@
<imagesdir>images</imagesdir>
<stylesdir>css</stylesdir>
<iconfont-remote>false</iconfont-remote>
<iconfont-name>font-awesome/css/font-awesome.min</iconfont-name>
<source-highlighter>coderay</source-highlighter>
<iconfont-name>font-awesome/css/solid</iconfont-name>
<source-highlighter>rouge</source-highlighter>
</attributes>
</configuration>
</execution>
Expand All @@ -353,7 +353,7 @@
<attributes>
<sourcedir>${asciidoctor.examples-source-dir}</sourcedir>
<resourcesdir>${asciidoctor.examples-resources-dir}</resourcesdir>
<docinfodir>${asciidoctor.aggregated-resources-dir}/docinfo/noorm-documentation</docinfodir>
<docinfodir>${asciidoctor.aggregated-resources-dir}/docinfo/hibernate</docinfodir>
<icons>font</icons>
<tabsize>4</tabsize>

Expand Down Expand Up @@ -489,14 +489,16 @@
<sourceDirectory>src/main/asciidoc</sourceDirectory>
<outputDirectory>${asciidoctor.base-output-dir}/pdf</outputDirectory>
<preserveDirectories>true</preserveDirectories>
<requires>${asciidoctor.aggregated-resources-dir}/theme/hibernate.rb</requires>
<attributes>
<imagesdir>${asciidoctor.aggregated-resources-dir}/images/</imagesdir>
<pdf-themesdir>${asciidoctor.aggregated-resources-dir}/theme</pdf-themesdir>
<pdf-theme>hibernate</pdf-theme>
<pdf-fontsdir>${asciidoctor.aggregated-resources-dir}/theme/fonts</pdf-fontsdir>
<pagenums/>
<idseparator>-</idseparator>
<source-highlighter>coderay</source-highlighter>
<source-highlighter>rouge</source-highlighter>
<rouge-style>hibernate</rouge-style>
</attributes>
</configuration>
</execution>
Expand Down
1 change: 1 addition & 0 deletions documentation/src/main/asciidoc/internals/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:html-meta-description: Hibernate Search, full text search for your entities - Internals of Hibernate Search
:html-meta-keywords: hibernate, search, hibernate search, full text, lucene, elasticsearch, opensearch
:html-meta-canonical-link: https://docs.jboss.org/hibernate/stable/search/internals/html_single/
:html-meta-version-family: {hibernateSearchVersionShort}

This section is intended for new Hibernate Search contributors looking for an introduction
to how Hibernate Search works.
Expand Down
1 change: 1 addition & 0 deletions documentation/src/main/asciidoc/migration/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:html-meta-description: Hibernate Search, full text search for your entities - Migration Guide
:html-meta-keywords: hibernate, search, hibernate search, full text, lucene, elasticsearch, opensearch
:html-meta-canonical-link: https://docs.jboss.org/hibernate/search/{hibernateSearchVersionShort}/migration/html_single/
:html-meta-version-family: {hibernateSearchVersionShort}

[[introduction]]
== [[_introduction]] Introduction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
:html-meta-description: Hibernate Search, full text search for your entities - Getting Started Guides
:html-meta-keywords: hibernate, search, hibernate search, full text, lucene, elasticsearch, opensearch
:html-meta-canonical-link: https://docs.jboss.org/hibernate/stable/search/getting-started/en-US/html_single/
:html-meta-version-family: {hibernateSearchVersionShort}

:relfileprefix: ../../
:relfilesuffix: /../en-US/html_single/index.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:html-meta-description: Hibernate Search, full text search for your entities - Getting started with Hibernate Search in Hibernate ORM
:html-meta-keywords: hibernate, search, hibernate search, full text, lucene, elasticsearch, opensearch
:html-meta-canonical-link: https://docs.jboss.org/hibernate/stable/search/getting-started/orm/en-US/html_single/
:html-meta-version-family: {hibernateSearchVersionShort}

:relfileprefix: ../../
:relfilesuffix: /../en-US/html_single/index.html
Expand Down Expand Up @@ -54,7 +55,7 @@ The Hibernate Search artifacts can be found in Maven's http://central.sonatype.o
If you get Hibernate Search from Maven, it is recommended to import Hibernate Search BOM
as part of your dependency management to keep all its artifact versions aligned:

[source, XML, subs="+attributes"]
[source, xml, subs="+attributes"]
----
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -91,7 +92,7 @@ storing the index on the local filesystem.
+
If you get Hibernate Search from Maven, use these dependencies:
+
[source, XML, subs="+attributes"]
[source, xml, subs="+attributes"]
----
<dependencies>
<!--
Expand Down Expand Up @@ -119,7 +120,7 @@ storing the index on a remote Elasticsearch or OpenSearch cluster (to be configu
+
If you get Hibernate Search from Maven, use these dependencies:
+
[source, XML, subs="+attributes"]
[source, xml, subs="+attributes"]
----
<dependencies>
<!--
Expand Down Expand Up @@ -167,7 +168,7 @@ but depending on your setup you might want to set the following:

.Hibernate Search properties in `persistence.xml` for a "Hibernate ORM + Lucene" setup
====
[source, XML, indent=0]
[source, xml, indent=0]
----
include::{resourcesdir}/META-INF/persistence.xml[tags=gettingstarted-configuration-orm_lucene]
----
Expand All @@ -177,7 +178,7 @@ By default, the backend will store indexes in the current working directory.

.Hibernate Search properties in `persistence.xml` for a "Hibernate ORM + Elasticsearch/OpenSearch" setup
====
[source, XML, indent=0]
[source, xml, indent=0]
----
include::{resourcesdir}/META-INF/persistence.xml[tags=gettingstarted-configuration-orm_elasticsearch]
----
Expand All @@ -196,11 +197,11 @@ and you want to index them in order to search the books contained in your databa

.Book and Author entities BEFORE adding Hibernate Search specific annotations
====
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withouthsearch/Book.java[tags=include;!getters-setters]
----
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withouthsearch/Author.java[tags=include;!getters-setters]
----
Expand All @@ -216,11 +217,11 @@ Below is an example of how the model above can be mapped.

.Book and Author entities AFTER adding Hibernate Search specific annotations
====
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/Book.java[tags=include;!getters-setters]
----
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/Author.java[tags=include;!getters-setters]
----
Expand Down Expand Up @@ -306,7 +307,7 @@ To that end, you can use the mass indexer API, as shown in the following code:

.Using Hibernate Search MassIndexer API to manually (re)index the already persisted data
====
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/GettingStartedDefaultAnalysisIT.java[tags=manual-index]
----
Expand All @@ -328,7 +329,7 @@ Thus, this code would transparently populate your index:

.Using Hibernate ORM to persist data, and implicitly indexing it through Hibernate Search
====
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/GettingStartedDefaultAnalysisIT.java[tags=indexing]
----
Expand Down Expand Up @@ -361,7 +362,7 @@ with the <<mapper-orm-getting-started-analysis-default-analyzer,default analyzer

.Using Hibernate Search to query the indexes
====
[source, JAVA, indent=0, subs="+callouts"]
[source, java, indent=0, subs="+callouts"]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/GettingStartedDefaultAnalysisIT.java[tags=searching-lambdas]
----
Expand All @@ -381,7 +382,7 @@ but it will be a bit more verbose:

.Using Hibernate Search to query the indexes -- object-based syntax
====
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/GettingStartedDefaultAnalysisIT.java[tags=searching-objects]
----
Expand All @@ -401,7 +402,7 @@ It is possible to get just the total hit count, using `fetchTotalHitCount()`.

.Using Hibernate Search to count the matches
====
[source, JAVA, indent=0, subs="+callouts"]
[source, java, indent=0, subs="+callouts"]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/defaultanalysis/GettingStartedDefaultAnalysisIT.java[tags=counting]
----
Expand Down Expand Up @@ -476,11 +477,11 @@ The examples below show how to define an analyzer with these components, dependi

.Analysis configurer implementation and configuration in `persistence.xml` for a "Hibernate ORM + Lucene" setup
====
[source, JAVA, indent=0, subs="+callouts"]
[source, java, indent=0, subs="+callouts"]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/customanalysis/MyLuceneAnalysisConfigurer.java[tags=include]
----
[source, XML, indent=0, subs="+callouts"]
[source, xml, indent=0, subs="+callouts"]
----
include::{resourcesdir}/META-INF/persistence.xml[tags=gettingstarted-configuration-orm_lucene-analysis]
----
Expand All @@ -501,11 +502,11 @@ For more information about the format of bean references, see xref:{reference-do

.Analysis configurer implementation and configuration in `persistence.xml` for a "Hibernate ORM + Elasticsearch/OpenSearch" setup
====
[source, JAVA, indent=0, subs="+callouts"]
[source, java, indent=0, subs="+callouts"]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/customanalysis/MyElasticsearchAnalysisConfigurer.java[tags=include]
----
[source, XML, indent=0, subs="+callouts"]
[source, xml, indent=0, subs="+callouts"]
----
include::{resourcesdir}/META-INF/persistence.xml[tags=gettingstarted-configuration-orm_elasticsearch-analysis]
----
Expand All @@ -530,11 +531,11 @@ Once analysis is configured, the mapping must be adapted to assign the relevant

.Book and Author entities after adding Hibernate Search specific annotations
====
[source, JAVA, indent=0, subs="+callouts"]
[source, java, indent=0, subs="+callouts"]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/customanalysis/Book.java[tags=include;!getters-setters]
----
[source, JAVA, indent=0, subs="+callouts"]
[source, java, indent=0, subs="+callouts"]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/customanalysis/Author.java[tags=include;!getters-setters]
----
Expand All @@ -558,7 +559,7 @@ will show up in the results.

.Using Hibernate Search to query the indexes after analysis was configured
====
[source, JAVA, indent=0]
[source, java, indent=0]
----
include::{sourcedir}/org/hibernate/search/documentation/mapper/orm/gettingstarted/withhsearch/customanalysis/GettingStartedCustomAnalysisIT.java[tags=searching]
----
Expand Down
Loading