-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
which allows to clarify the implementation of different workflows. In particular, it clarifies that the parameter `maxResultsPerEntity` is not only used in customized index scopes (CRITERIA, HQL), but also used in the full index scope (FULL_ENTITY).
- Loading branch information
Showing
4 changed files
with
70 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
.../src/main/java/org/hibernate/search/jsr352/massindexing/impl/steps/lucene/IndexScope.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.jsr352.massindexing.impl.steps.lucene; | ||
|
||
import org.hibernate.Criteria; | ||
|
||
/** | ||
* The index scope of a given entity type. | ||
* | ||
* @author Mincong Huang | ||
*/ | ||
public enum IndexScope { | ||
/** | ||
* Index entities restricted by the HQL / JPQL given by user. | ||
*/ | ||
HQL, | ||
/** | ||
* Index entities restricted the {@link Criteria} given by user. | ||
*/ | ||
CRITERIA, | ||
/** | ||
* Index all the entities found. | ||
*/ | ||
FULL_ENTITY | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters