eu.etaxonomy.cdm.hibernate.search
Class MultilanguageTextFieldBridge

java.lang.Object
  extended by 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':

  1. {name}.ALL: this field contains all strings regardless of the language they are associated with.
  2. {name}.{language-label}: contains the strings of the specific language indicated by {language-label}.

Author:
Andreas Kohlbecker

Constructor Summary
MultilanguageTextFieldBridge()
           
 
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
 

Constructor Detail

MultilanguageTextFieldBridge

public MultilanguageTextFieldBridge()
Method Detail

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.