diff --git a/Comment/_58.cfe b/Comment/_58.cfe deleted file mode 100644 index f9402f5..0000000 Binary files a/Comment/_58.cfe and /dev/null differ diff --git a/Comment/_58.cfs b/Comment/_58.cfs deleted file mode 100644 index dc8bf70..0000000 Binary files a/Comment/_58.cfs and /dev/null differ diff --git a/Comment/_58.si b/Comment/_58.si deleted file mode 100644 index 312064f..0000000 Binary files a/Comment/_58.si and /dev/null differ diff --git a/Comment/_59.cfe b/Comment/_59.cfe deleted file mode 100644 index 3d53581..0000000 Binary files a/Comment/_59.cfe and /dev/null differ diff --git a/Comment/_59.cfs b/Comment/_59.cfs deleted file mode 100644 index 405ba9c..0000000 Binary files a/Comment/_59.cfs and /dev/null differ diff --git a/Comment/_59.si b/Comment/_59.si deleted file mode 100644 index c0b245d..0000000 Binary files a/Comment/_59.si and /dev/null differ diff --git a/Comment/_5a.cfe b/Comment/_5a.cfe deleted file mode 100644 index 1a8dd25..0000000 Binary files a/Comment/_5a.cfe and /dev/null differ diff --git a/Comment/_5a.cfs b/Comment/_5a.cfs deleted file mode 100644 index abef8be..0000000 Binary files a/Comment/_5a.cfs and /dev/null differ diff --git a/Comment/_5a.si b/Comment/_5a.si deleted file mode 100644 index 8887671..0000000 Binary files a/Comment/_5a.si and /dev/null differ diff --git a/Comment/_5b.cfe b/Comment/_5b.cfe deleted file mode 100644 index 7e8e966..0000000 Binary files a/Comment/_5b.cfe and /dev/null differ diff --git a/Comment/_5b.cfs b/Comment/_5b.cfs deleted file mode 100644 index 65f46e0..0000000 Binary files a/Comment/_5b.cfs and /dev/null differ diff --git a/Comment/_5b.si b/Comment/_5b.si deleted file mode 100644 index 9bc567c..0000000 Binary files a/Comment/_5b.si and /dev/null differ diff --git a/Comment/_5c.cfe b/Comment/_5c.cfe deleted file mode 100644 index b45dcd6..0000000 Binary files a/Comment/_5c.cfe and /dev/null differ diff --git a/Comment/_5c.cfs b/Comment/_5c.cfs deleted file mode 100644 index 376f65d..0000000 Binary files a/Comment/_5c.cfs and /dev/null differ diff --git a/Comment/_5c.si b/Comment/_5c.si deleted file mode 100644 index 7d89600..0000000 Binary files a/Comment/_5c.si and /dev/null differ diff --git a/Comment/_5d.cfe b/Comment/_5d.cfe deleted file mode 100644 index d1ba8f5..0000000 Binary files a/Comment/_5d.cfe and /dev/null differ diff --git a/Comment/_5d.cfs b/Comment/_5d.cfs deleted file mode 100644 index ebbc816..0000000 Binary files a/Comment/_5d.cfs and /dev/null differ diff --git a/Comment/_5d.si b/Comment/_5d.si deleted file mode 100644 index 61e7f9c..0000000 Binary files a/Comment/_5d.si and /dev/null differ diff --git a/Comment/_5e.cfe b/Comment/_5e.cfe deleted file mode 100644 index 697445c..0000000 Binary files a/Comment/_5e.cfe and /dev/null differ diff --git a/Comment/_5e.cfs b/Comment/_5e.cfs deleted file mode 100644 index ff30f35..0000000 Binary files a/Comment/_5e.cfs and /dev/null differ diff --git a/Comment/_5e.si b/Comment/_5e.si deleted file mode 100644 index a971e4b..0000000 Binary files a/Comment/_5e.si and /dev/null differ diff --git a/Comment/_5f.cfe b/Comment/_5f.cfe deleted file mode 100644 index 53bdd37..0000000 Binary files a/Comment/_5f.cfe and /dev/null differ diff --git a/Comment/_5f.cfs b/Comment/_5f.cfs deleted file mode 100644 index 8df8e55..0000000 Binary files a/Comment/_5f.cfs and /dev/null differ diff --git a/Comment/_5f.si b/Comment/_5f.si deleted file mode 100644 index 8da232e..0000000 Binary files a/Comment/_5f.si and /dev/null differ diff --git a/Comment/_5w.cfe b/Comment/_5w.cfe new file mode 100644 index 0000000..ebd6ad0 Binary files /dev/null and b/Comment/_5w.cfe differ diff --git a/Comment/_5w.cfs b/Comment/_5w.cfs new file mode 100644 index 0000000..29a83b5 Binary files /dev/null and b/Comment/_5w.cfs differ diff --git a/Comment/_5w.si b/Comment/_5w.si new file mode 100644 index 0000000..f152d49 Binary files /dev/null and b/Comment/_5w.si differ diff --git a/Comment/_5y.cfe b/Comment/_5y.cfe new file mode 100644 index 0000000..76f416f Binary files /dev/null and b/Comment/_5y.cfe differ diff --git a/Comment/_5y.cfs b/Comment/_5y.cfs new file mode 100644 index 0000000..03875fb Binary files /dev/null and b/Comment/_5y.cfs differ diff --git a/Comment/_5y.si b/Comment/_5y.si new file mode 100644 index 0000000..2c5f04e Binary files /dev/null and b/Comment/_5y.si differ diff --git a/Comment/_5z.cfe b/Comment/_5z.cfe new file mode 100644 index 0000000..c599963 Binary files /dev/null and b/Comment/_5z.cfe differ diff --git a/Comment/_5z.cfs b/Comment/_5z.cfs new file mode 100644 index 0000000..7bf4b20 Binary files /dev/null and b/Comment/_5z.cfs differ diff --git a/Comment/_5z.si b/Comment/_5z.si new file mode 100644 index 0000000..89fb0d9 Binary files /dev/null and b/Comment/_5z.si differ diff --git a/Comment/_60.cfe b/Comment/_60.cfe new file mode 100644 index 0000000..6072e47 Binary files /dev/null and b/Comment/_60.cfe differ diff --git a/Comment/_60.cfs b/Comment/_60.cfs new file mode 100644 index 0000000..a88dbda Binary files /dev/null and b/Comment/_60.cfs differ diff --git a/Comment/_60.si b/Comment/_60.si new file mode 100644 index 0000000..896a811 Binary files /dev/null and b/Comment/_60.si differ diff --git a/Comment/_62.cfe b/Comment/_62.cfe new file mode 100644 index 0000000..a18b798 Binary files /dev/null and b/Comment/_62.cfe differ diff --git a/Comment/_62.cfs b/Comment/_62.cfs new file mode 100644 index 0000000..a41f32d Binary files /dev/null and b/Comment/_62.cfs differ diff --git a/Comment/_62.si b/Comment/_62.si new file mode 100644 index 0000000..807dab9 Binary files /dev/null and b/Comment/_62.si differ diff --git a/Comment/_63.cfe b/Comment/_63.cfe new file mode 100644 index 0000000..c3dfd95 Binary files /dev/null and b/Comment/_63.cfe differ diff --git a/Comment/_63.cfs b/Comment/_63.cfs new file mode 100644 index 0000000..6e8d968 Binary files /dev/null and b/Comment/_63.cfs differ diff --git a/Comment/_63.si b/Comment/_63.si new file mode 100644 index 0000000..792030a Binary files /dev/null and b/Comment/_63.si differ diff --git a/Comment/_64.fdm b/Comment/_64.fdm new file mode 100644 index 0000000..439ffea Binary files /dev/null and b/Comment/_64.fdm differ diff --git a/Comment/_64.fdt b/Comment/_64.fdt new file mode 100644 index 0000000..7ae1ef5 Binary files /dev/null and b/Comment/_64.fdt differ diff --git a/Comment/_64.fdx b/Comment/_64.fdx new file mode 100644 index 0000000..5ecb80f Binary files /dev/null and b/Comment/_64.fdx differ diff --git a/Comment/_64.fnm b/Comment/_64.fnm new file mode 100644 index 0000000..48706dd Binary files /dev/null and b/Comment/_64.fnm differ diff --git a/Comment/_64.nvd b/Comment/_64.nvd new file mode 100644 index 0000000..3c13317 Binary files /dev/null and b/Comment/_64.nvd differ diff --git a/Comment/_64.nvm b/Comment/_64.nvm new file mode 100644 index 0000000..ca5c67c Binary files /dev/null and b/Comment/_64.nvm differ diff --git a/Comment/_64.si b/Comment/_64.si new file mode 100644 index 0000000..45ca32b Binary files /dev/null and b/Comment/_64.si differ diff --git a/Comment/_64_Lucene80_0.dvd b/Comment/_64_Lucene80_0.dvd new file mode 100644 index 0000000..de6a533 Binary files /dev/null and b/Comment/_64_Lucene80_0.dvd differ diff --git a/Comment/_64_Lucene80_0.dvm b/Comment/_64_Lucene80_0.dvm new file mode 100644 index 0000000..e7ca6ad Binary files /dev/null and b/Comment/_64_Lucene80_0.dvm differ diff --git a/Comment/_64_Lucene84_0.doc b/Comment/_64_Lucene84_0.doc new file mode 100644 index 0000000..73d7b41 Binary files /dev/null and b/Comment/_64_Lucene84_0.doc differ diff --git a/Comment/_64_Lucene84_0.pos b/Comment/_64_Lucene84_0.pos new file mode 100644 index 0000000..eca3d36 Binary files /dev/null and b/Comment/_64_Lucene84_0.pos differ diff --git a/Comment/_64_Lucene84_0.tim b/Comment/_64_Lucene84_0.tim new file mode 100644 index 0000000..a0ab20d Binary files /dev/null and b/Comment/_64_Lucene84_0.tim differ diff --git a/Comment/_64_Lucene84_0.tip b/Comment/_64_Lucene84_0.tip new file mode 100644 index 0000000..5d93439 Binary files /dev/null and b/Comment/_64_Lucene84_0.tip differ diff --git a/Comment/_64_Lucene84_0.tmd b/Comment/_64_Lucene84_0.tmd new file mode 100644 index 0000000..14a032d Binary files /dev/null and b/Comment/_64_Lucene84_0.tmd differ diff --git a/Comment/segments_1h b/Comment/segments_1h deleted file mode 100644 index 526ac12..0000000 Binary files a/Comment/segments_1h and /dev/null differ diff --git a/Comment/segments_1n b/Comment/segments_1n new file mode 100644 index 0000000..7f418d2 Binary files /dev/null and b/Comment/segments_1n differ diff --git a/Entry/_4t.cfe b/Entry/_4t.cfe deleted file mode 100644 index 2858720..0000000 Binary files a/Entry/_4t.cfe and /dev/null differ diff --git a/Entry/_4t.cfs b/Entry/_4t.cfs deleted file mode 100644 index 5df1679..0000000 Binary files a/Entry/_4t.cfs and /dev/null differ diff --git a/Entry/_4t.si b/Entry/_4t.si deleted file mode 100644 index 18d68e2..0000000 Binary files a/Entry/_4t.si and /dev/null differ diff --git a/Entry/_4u.cfe b/Entry/_4u.cfe deleted file mode 100644 index bb63b59..0000000 Binary files a/Entry/_4u.cfe and /dev/null differ diff --git a/Entry/_4u.cfs b/Entry/_4u.cfs deleted file mode 100644 index 6ef5c2e..0000000 Binary files a/Entry/_4u.cfs and /dev/null differ diff --git a/Entry/_4u.si b/Entry/_4u.si deleted file mode 100644 index 31dd0c0..0000000 Binary files a/Entry/_4u.si and /dev/null differ diff --git a/Entry/_4v.cfe b/Entry/_4v.cfe deleted file mode 100644 index b209e8b..0000000 Binary files a/Entry/_4v.cfe and /dev/null differ diff --git a/Entry/_4v.cfs b/Entry/_4v.cfs deleted file mode 100644 index 981b690..0000000 Binary files a/Entry/_4v.cfs and /dev/null differ diff --git a/Entry/_4v.si b/Entry/_4v.si deleted file mode 100644 index ac90e99..0000000 Binary files a/Entry/_4v.si and /dev/null differ diff --git a/Entry/_4w.cfe b/Entry/_4w.cfe deleted file mode 100644 index 2955f79..0000000 Binary files a/Entry/_4w.cfe and /dev/null differ diff --git a/Entry/_4w.cfs b/Entry/_4w.cfs deleted file mode 100644 index 773934a..0000000 Binary files a/Entry/_4w.cfs and /dev/null differ diff --git a/Entry/_4w.si b/Entry/_4w.si deleted file mode 100644 index 0dbb667..0000000 Binary files a/Entry/_4w.si and /dev/null differ diff --git a/Entry/_4x.cfe b/Entry/_4x.cfe deleted file mode 100644 index b8d4438..0000000 Binary files a/Entry/_4x.cfe and /dev/null differ diff --git a/Entry/_4x.cfs b/Entry/_4x.cfs deleted file mode 100644 index 1acbd66..0000000 Binary files a/Entry/_4x.cfs and /dev/null differ diff --git a/Entry/_4x.si b/Entry/_4x.si deleted file mode 100644 index 8e513da..0000000 Binary files a/Entry/_4x.si and /dev/null differ diff --git a/Entry/_4y.cfe b/Entry/_4y.cfe deleted file mode 100644 index bee6bdb..0000000 Binary files a/Entry/_4y.cfe and /dev/null differ diff --git a/Entry/_4y.cfs b/Entry/_4y.cfs deleted file mode 100644 index a05a2f2..0000000 Binary files a/Entry/_4y.cfs and /dev/null differ diff --git a/Entry/_4y.si b/Entry/_4y.si deleted file mode 100644 index e0651a8..0000000 Binary files a/Entry/_4y.si and /dev/null differ diff --git a/Entry/_4z.cfe b/Entry/_4z.cfe deleted file mode 100644 index 059b255..0000000 Binary files a/Entry/_4z.cfe and /dev/null differ diff --git a/Entry/_4z.cfs b/Entry/_4z.cfs deleted file mode 100644 index 8d071ac..0000000 Binary files a/Entry/_4z.cfs and /dev/null differ diff --git a/Entry/_4z.si b/Entry/_4z.si deleted file mode 100644 index cc25b6d..0000000 Binary files a/Entry/_4z.si and /dev/null differ diff --git a/Entry/_50.cfe b/Entry/_50.cfe deleted file mode 100644 index 54ea33e..0000000 Binary files a/Entry/_50.cfe and /dev/null differ diff --git a/Entry/_50.cfs b/Entry/_50.cfs deleted file mode 100644 index afa8575..0000000 Binary files a/Entry/_50.cfs and /dev/null differ diff --git a/Entry/_50.si b/Entry/_50.si deleted file mode 100644 index a361630..0000000 Binary files a/Entry/_50.si and /dev/null differ diff --git a/Entry/_5i.cfe b/Entry/_5i.cfe new file mode 100644 index 0000000..4c82b31 Binary files /dev/null and b/Entry/_5i.cfe differ diff --git a/Entry/_5i.cfs b/Entry/_5i.cfs new file mode 100644 index 0000000..a658002 Binary files /dev/null and b/Entry/_5i.cfs differ diff --git a/Entry/_5i.si b/Entry/_5i.si new file mode 100644 index 0000000..8734ff3 Binary files /dev/null and b/Entry/_5i.si differ diff --git a/Entry/_5j.cfe b/Entry/_5j.cfe new file mode 100644 index 0000000..c9967a0 Binary files /dev/null and b/Entry/_5j.cfe differ diff --git a/Entry/_5j.cfs b/Entry/_5j.cfs new file mode 100644 index 0000000..8412abc Binary files /dev/null and b/Entry/_5j.cfs differ diff --git a/Entry/_5j.si b/Entry/_5j.si new file mode 100644 index 0000000..b42b0a1 Binary files /dev/null and b/Entry/_5j.si differ diff --git a/Entry/_5k.cfe b/Entry/_5k.cfe new file mode 100644 index 0000000..0f7a6e5 Binary files /dev/null and b/Entry/_5k.cfe differ diff --git a/Entry/_5k.cfs b/Entry/_5k.cfs new file mode 100644 index 0000000..371dc35 Binary files /dev/null and b/Entry/_5k.cfs differ diff --git a/Entry/_5k.si b/Entry/_5k.si new file mode 100644 index 0000000..6306cde Binary files /dev/null and b/Entry/_5k.si differ diff --git a/Entry/_5o.fdm b/Entry/_5o.fdm new file mode 100644 index 0000000..3e69c2c Binary files /dev/null and b/Entry/_5o.fdm differ diff --git a/Entry/_5o.fdt b/Entry/_5o.fdt new file mode 100644 index 0000000..5022dd6 Binary files /dev/null and b/Entry/_5o.fdt differ diff --git a/Entry/_5o.fdx b/Entry/_5o.fdx new file mode 100644 index 0000000..bfe645f Binary files /dev/null and b/Entry/_5o.fdx differ diff --git a/Entry/_5o.fnm b/Entry/_5o.fnm new file mode 100644 index 0000000..522b402 Binary files /dev/null and b/Entry/_5o.fnm differ diff --git a/Entry/_5o.nvd b/Entry/_5o.nvd new file mode 100644 index 0000000..ce99a4a Binary files /dev/null and b/Entry/_5o.nvd differ diff --git a/Entry/_5o.nvm b/Entry/_5o.nvm new file mode 100644 index 0000000..67e4cb3 Binary files /dev/null and b/Entry/_5o.nvm differ diff --git a/Entry/_5o.si b/Entry/_5o.si new file mode 100644 index 0000000..8a94d62 Binary files /dev/null and b/Entry/_5o.si differ diff --git a/Entry/_5o_Lucene80_0.dvd b/Entry/_5o_Lucene80_0.dvd new file mode 100644 index 0000000..62d6423 Binary files /dev/null and b/Entry/_5o_Lucene80_0.dvd differ diff --git a/Entry/_5o_Lucene80_0.dvm b/Entry/_5o_Lucene80_0.dvm new file mode 100644 index 0000000..b06d938 Binary files /dev/null and b/Entry/_5o_Lucene80_0.dvm differ diff --git a/Entry/_5o_Lucene84_0.doc b/Entry/_5o_Lucene84_0.doc new file mode 100644 index 0000000..a7c6e61 Binary files /dev/null and b/Entry/_5o_Lucene84_0.doc differ diff --git a/Entry/_5o_Lucene84_0.pos b/Entry/_5o_Lucene84_0.pos new file mode 100644 index 0000000..030a93b Binary files /dev/null and b/Entry/_5o_Lucene84_0.pos differ diff --git a/Entry/_5o_Lucene84_0.tim b/Entry/_5o_Lucene84_0.tim new file mode 100644 index 0000000..0e4f97e Binary files /dev/null and b/Entry/_5o_Lucene84_0.tim differ diff --git a/Entry/_5o_Lucene84_0.tip b/Entry/_5o_Lucene84_0.tip new file mode 100644 index 0000000..268d3c0 Binary files /dev/null and b/Entry/_5o_Lucene84_0.tip differ diff --git a/Entry/_5o_Lucene84_0.tmd b/Entry/_5o_Lucene84_0.tmd new file mode 100644 index 0000000..9ae9730 Binary files /dev/null and b/Entry/_5o_Lucene84_0.tmd differ diff --git a/Entry/segments_1d b/Entry/segments_1d deleted file mode 100644 index 398b6d4..0000000 Binary files a/Entry/segments_1d and /dev/null differ diff --git a/Entry/segments_1l b/Entry/segments_1l new file mode 100644 index 0000000..572c4f7 Binary files /dev/null and b/Entry/segments_1l differ diff --git a/src/main/java/de/bstly/board/LuceneConfig.java b/src/main/java/de/bstly/board/LuceneConfig.java new file mode 100644 index 0000000..308476d --- /dev/null +++ b/src/main/java/de/bstly/board/LuceneConfig.java @@ -0,0 +1,45 @@ +/** + * + */ +package de.bstly.board; + +import org.apache.lucene.analysis.core.LowerCaseFilterFactory; +import org.apache.lucene.analysis.core.WhitespaceTokenizerFactory; +import org.apache.lucene.analysis.miscellaneous.ASCIIFoldingFilterFactory; +import org.apache.lucene.analysis.ngram.EdgeNGramFilterFactory; +import org.apache.lucene.analysis.snowball.SnowballPorterFilterFactory; +import org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurationContext; +import org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurer; +import org.springframework.context.annotation.Configuration; + +/** + * @author _bastler@bstly.de + * + */ +@Configuration +public class LuceneConfig implements LuceneAnalysisConfigurer { + + /* + * @see org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurer# + * configure(org.hibernate.search.backend.lucene.analysis. + * LuceneAnalysisConfigurationContext) + */ + @Override + public void configure(LuceneAnalysisConfigurationContext context) { + context.analyzer("english").custom().tokenizer(WhitespaceTokenizerFactory.class) + .tokenFilter(LowerCaseFilterFactory.class) + .tokenFilter(SnowballPorterFilterFactory.class).param("language", "English") + .tokenFilter(ASCIIFoldingFilterFactory.class) + .tokenFilter(EdgeNGramFilterFactory.class).param("minGramSize", "1") + .param("maxGramSize", "10"); + + context.analyzer("german").custom().tokenizer(WhitespaceTokenizerFactory.class) + .tokenFilter(LowerCaseFilterFactory.class) + .tokenFilter(SnowballPorterFilterFactory.class).param("language", "German") + .tokenFilter(ASCIIFoldingFilterFactory.class) + .tokenFilter(EdgeNGramFilterFactory.class).param("minGramSize", "1") + .param("maxGramSize", "10"); + + } + +} diff --git a/src/main/java/de/bstly/board/businesslogic/SearchManager.java b/src/main/java/de/bstly/board/businesslogic/SearchManager.java index c2b1ed8..d3ef585 100644 --- a/src/main/java/de/bstly/board/businesslogic/SearchManager.java +++ b/src/main/java/de/bstly/board/businesslogic/SearchManager.java @@ -93,16 +93,16 @@ public class SearchManager implements SmartInitializingSingleton { if (classes.contains(Entry.class)) { return searchSession.search(classes) .where(f -> f.bool() - .should(f.match().field("title").matching(search) + .should(f.match().fields("title", "title_de").matching(search) .boost(settingsManager.getGravity())) - .should(f.match().field("text").matching(search))) + .should(f.match().fields("text", "text_de").matching(search))) .sort(f -> sortByDate ? (asc ? f.field("created").asc() : f.field("created").desc()) : (asc ? f.score().asc() : f.score().desc())) .fetch(page * size, size); } else { - return searchSession.search(classes) - .where(f -> f.bool().should(f.match().field("text").matching(search))) + return searchSession.search(classes).where( + f -> f.bool().should(f.match().fields("text", "text_de").matching(search))) .sort(f -> sortByDate ? (asc ? f.field("created").asc() : f.field("created").desc()) : (asc ? f.score().asc() : f.score().desc())) diff --git a/src/main/java/de/bstly/board/model/Comment.java b/src/main/java/de/bstly/board/model/Comment.java index 43e4b03..9a81834 100644 --- a/src/main/java/de/bstly/board/model/Comment.java +++ b/src/main/java/de/bstly/board/model/Comment.java @@ -19,6 +19,7 @@ import javax.persistence.Table; import javax.persistence.Transient; import org.hibernate.search.engine.backend.types.Projectable; +import org.hibernate.search.engine.backend.types.Searchable; import org.hibernate.search.engine.backend.types.Sortable; import org.hibernate.search.mapper.pojo.bridge.mapping.annotation.ValueBridgeRef; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; @@ -56,7 +57,8 @@ public class Comment { private Long parent; @Lob @Column(name = "text", nullable = false) - @FullTextField + @FullTextField(name = "text", searchable = Searchable.YES, analyzer = "english") + @FullTextField(name = "text_de", searchable = Searchable.YES, analyzer = "german") private String text; @Enumerated(EnumType.STRING) @Column(name = "flagged_status", nullable = false, columnDefinition = "varchar(255) default 'NORMAL'") diff --git a/src/main/java/de/bstly/board/model/Entry.java b/src/main/java/de/bstly/board/model/Entry.java index 9fa4b88..99dbaa1 100644 --- a/src/main/java/de/bstly/board/model/Entry.java +++ b/src/main/java/de/bstly/board/model/Entry.java @@ -20,6 +20,7 @@ import javax.persistence.Table; import javax.persistence.Transient; import org.hibernate.search.engine.backend.types.Projectable; +import org.hibernate.search.engine.backend.types.Searchable; import org.hibernate.search.engine.backend.types.Sortable; import org.hibernate.search.mapper.pojo.bridge.mapping.annotation.ValueBridgeRef; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId; @@ -67,11 +68,13 @@ public class Entry { @Column(name = "url") private String url; @Column(name = "title", nullable = false) - @FullTextField(name = "title") + @FullTextField(name = "title", searchable = Searchable.YES, analyzer = "english") + @FullTextField(name = "title_de", searchable = Searchable.YES, analyzer = "german") private String title; @Lob @Column(name = "text") - @FullTextField(name = "text") + @FullTextField(name = "text", searchable = Searchable.YES, analyzer = "english") + @FullTextField(name = "text_de", searchable = Searchable.YES, analyzer = "german") private String text; @Transient private List tags;