From 83431845b471cd88230dcae78e0c11aa4baae46f Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 23 Apr 2012 22:54:54 +0100 Subject: [PATCH] More minor documentation improvements --- .../src/main/docbook/en-US/modules/advanced-features.xml | 4 +++- .../src/main/docbook/en-US/modules/configuration.xml | 4 ++-- .../src/main/docbook/en-US/modules/query.xml | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hibernate-search-documentation/src/main/docbook/en-US/modules/advanced-features.xml b/hibernate-search-documentation/src/main/docbook/en-US/modules/advanced-features.xml index 674806e0a71..2044b143477 100644 --- a/hibernate-search-documentation/src/main/docbook/en-US/modules/advanced-features.xml +++ b/hibernate-search-documentation/src/main/docbook/en-US/modules/advanced-features.xml @@ -112,7 +112,9 @@ finally { Accessing an <classname>IndexReader by index names</classname> - IndexReader reader = searchFactory.getIndexReaderAccessor().open("Products.1", "Products.3"); + IndexReader reader = searchFactory + .getIndexReaderAccessor() + .open("Products.1", "Products.3"); diff --git a/hibernate-search-documentation/src/main/docbook/en-US/modules/configuration.xml b/hibernate-search-documentation/src/main/docbook/en-US/modules/configuration.xml index f73c04ecae5..7a814503685 100755 --- a/hibernate-search-documentation/src/main/docbook/en-US/modules/configuration.xml +++ b/hibernate-search-documentation/src/main/docbook/en-US/modules/configuration.xml @@ -1580,12 +1580,12 @@ hibernate.search.Books.locking_strategy org.custom.components.MyLockingFactoryLuceneWork instances that could not be processed due to the primary exception. - public interface ErrorContext { + public interface ErrorContext { List<LuceneWork> getFailingOperations(); LuceneWork getOperationAtFault(); Throwable getThrowable(); boolean hasErrors(); -} +} To register this error handler with Hibernate Search you must declare the fully qualified classname of your diff --git a/hibernate-search-documentation/src/main/docbook/en-US/modules/query.xml b/hibernate-search-documentation/src/main/docbook/en-US/modules/query.xml index 474d6e30514..d35668148ee 100755 --- a/hibernate-search-documentation/src/main/docbook/en-US/modules/query.xml +++ b/hibernate-search-documentation/src/main/docbook/en-US/modules/query.xml @@ -1175,7 +1175,7 @@ if ( query.hasPartialResults() ) {
Result size - It is sometime useful to know the total number of matching + It is sometimes useful to know the total number of matching documents: @@ -1216,7 +1216,7 @@ assert 3245 == query.getResultSize(); - Like Google, the number of results is approximative if the index + Like Google, the number of results is an approximation if the index is not fully up-to-date with the database (asynchronous cluster for example).