Skip to content

Commit

Permalink
Minor fixes to test/documentation of hibernate-search-orm-elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Mar 18, 2024
1 parent 1dc2262 commit ec4a39c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 9 additions & 6 deletions docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ quarkus.hibernate-search-orm.management.enabled=true <2>
<1> Enable the xref:./management-interface-reference.adoc[management interface].
<2> Enable Hibernate Search specific management endpoints.

Once the management is enabled, data can be re-indexed via `/q/hibernate-search/reindex`, where `/q` is the default management root path
Once the management endpoints are enabled, data can be re-indexed via `/q/hibernate-search/reindex`, where `/q` is the default management root path
and `/hibernate-search` is the default Hibernate Search root management path.
It (`/hibernate-search`) can be changed via configuration property as shown below.

Expand Down Expand Up @@ -1209,7 +1209,7 @@ The full list of possible filters and available mass indexer configurations is p
<13> Specifies the fetch size to be used when loading primary keys if objects to be indexed.
<14> Specifies the timeout of transactions for loading ids and entities to be re-indexed.
+
Note all the properties in the json are optional, and only those that are needed should be used.
Note all the properties in the JSON are optional, and only those that are needed should be used.

For more detailed information on mass indexer configuration see the
link:{hibernate-search-docs-url}#indexing-massindexer-parameters[corresponding section of the Hibernate Search reference documentation].
Expand All @@ -1223,19 +1223,22 @@ When working with multiple persistence units, the name of the persistence unit t

== Further reading

If you are interested in learning more about Hibernate Search 6,
the Hibernate team publishes link:{hibernate-search-docs-url}[an extensive reference documentation].
If you are interested in learning more about Hibernate Search,
the Hibernate team publishes link:{hibernate-search-docs-url}[an extensive reference documentation],
as well as a page listing https://hibernate.org/search/more-resources/[other relevant resources].

== FAQ

=== Why Elasticsearch only?

Hibernate Search supports both a Lucene backend and an Elasticsearch backend.

In the context of Quarkus and to build microservices, we thought the latter would make more sense.
In the context of Quarkus and to build scalable applications, we thought the latter would make more sense.
Thus, we focused our efforts on it.

We don't have plans to support the Lucene backend in Quarkus for now.
We don't have plans to support the Lucene backend in Quarkus for now,
though there is an issue tracking progress on such an implementation in the Quarkiverse:
https://github.com/quarkiverse/quarkus-hibernate-search-extras/issues/179[quarkiverse/quarkus-hibernate-search-extras#179].

[[configuration-reference]]
== Configuration Reference for Hibernate Search with Hibernate ORM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/**
* Disallow the use of Jandex so that relevant code can be DCEd
* (otherwise compilation would fail as Jandex is not available at runtime).
* (otherwise native compilation would fail as Jandex is not available at runtime).
*/
@TargetClass(className = "org.hibernate.search.util.common.jar.spi.JandexBehavior")
final class Substitute_JandexBehavior {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ public void initData() {
@Path("/search-count")
@Produces(MediaType.TEXT_PLAIN)
@Transactional
public long testAnalysisConfigured() {
public long searchCount() {
return searchSession.search(ManagementTestEntity.class)
.select(f -> f.id())
.where(f -> f.matchAll())
.fetchTotalHitCount();
}
Expand Down

0 comments on commit ec4a39c

Please sign in to comment.