forked from I-TECH-UW/OpenELIS-Global-2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request I-TECH-UW#1095 from rahul6603/mapping
Add mapping for indexing Patient and Person entities
- Loading branch information
Showing
5 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ain/java/org/openelisglobal/hibernate/search/analysis/CustomLuceneAnalysisConfigurer.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,11 @@ | ||
package org.openelisglobal.hibernate.search.analysis; | ||
|
||
import org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurationContext; | ||
import org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurer; | ||
|
||
public class CustomLuceneAnalysisConfigurer implements LuceneAnalysisConfigurer { | ||
@Override | ||
public void configure(LuceneAnalysisConfigurationContext context) { | ||
context.normalizer("lowercase").custom().tokenFilter("lowercase").tokenFilter("asciifolding"); | ||
} | ||
} |
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
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