eu.etaxonomy.cdm.hibernate.search
Class MultilanguageTextFieldBridge
java.lang.Object
eu.etaxonomy.cdm.hibernate.search.MultilanguageTextFieldBridge
- All Implemented Interfaces:
- org.hibernate.search.bridge.FieldBridge
public class MultilanguageTextFieldBridge
- extends Object
- implements org.hibernate.search.bridge.FieldBridge
Multilingual text representations, for example in TextData, are modeled in the cdm
as Map multilanguageText. This FieldBridge implementation
stores each of these language specific strings in the Lucene document in two fields, whereas {name}
is set by the name parameter and will be most probably 'text' or 'multilanguageText':
{name}.ALL: this field contains all strings regardless of the language they are associated with.
{name}.{language-label}: contains the strings of the specific language indicated by {language-label}.
- Author:
- Andreas Kohlbecker
|
Method Summary |
void |
set(String name,
Object value,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions luceneOptions)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultilanguageTextFieldBridge
public MultilanguageTextFieldBridge()
set
public void set(String name,
Object value,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions luceneOptions)
- Specified by:
set in interface org.hibernate.search.bridge.FieldBridge
Copyright © 2007-2013 EDIT. All Rights Reserved.