Skip to content

Commit

Permalink
More minor documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne authored and hferentschik committed Apr 24, 2012
1 parent 2836818 commit 8343184
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Expand Up @@ -112,7 +112,9 @@ finally {
<title>Accessing an <classname>IndexReader by index
names</classname></title>

<programlisting language="JAVA" role="JAVA">IndexReader reader = searchFactory.getIndexReaderAccessor().open("Products.1", "Products.3");</programlisting>
<programlisting language="JAVA" role="JAVA">IndexReader reader = searchFactory
.getIndexReaderAccessor()
.open("Products.1", "Products.3");</programlisting>
</example>
</section>

Expand Down
Expand Up @@ -1580,12 +1580,12 @@ hibernate.search.Books.locking_strategy org.custom.components.MyLockingFactory</
subsequent <code>LuceneWork</code> instances that could not be processed
due to the primary exception.</para>

<para><programlisting>public interface ErrorContext {
<programlisting language="JAVA" role="JAVA">public interface ErrorContext {
List&lt;LuceneWork&gt; getFailingOperations();
LuceneWork getOperationAtFault();
Throwable getThrowable();
boolean hasErrors();
}</programlisting></para>
}</programlisting>

<para>To register this error handler with Hibernate Search you must
declare the fully qualified classname of your
Expand Down
Expand Up @@ -1175,7 +1175,7 @@ if ( query.hasPartialResults() ) {
<section>
<title>Result size</title>

<para>It is sometime useful to know the total number of matching
<para>It is sometimes useful to know the total number of matching
documents:</para>

<itemizedlist>
Expand Down Expand Up @@ -1216,7 +1216,7 @@ assert 3245 == <emphasis role="bold">query.getResultSize()</emphasis>; </program
</example>

<note>
<para>Like Google, the number of results is approximative if the index
<para>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).</para>
</note>
Expand Down

0 comments on commit 8343184

Please sign in to comment.