|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.search.api.indexing.resources.configuration.IndexableFieldDescriptor
public class IndexableFieldDescriptor
Field indexation configuration.
Constructor Summary | |
---|---|
IndexableFieldDescriptor()
|
|
IndexableFieldDescriptor(java.lang.String name,
java.lang.String indexableAnalyzerName,
java.lang.String indexableFieldTypeName,
boolean stored,
boolean indexed,
boolean binary,
boolean multiple,
boolean sortable,
java.util.Map<java.lang.String,java.lang.String> termVector,
java.util.Map<java.lang.String,java.io.Serializable> properties)
Deprecated. Use IndexableFieldDescriptor(String,String,String,boolean,boolean,boolean,boolean,boolean,String,Map,Map)
instead |
|
IndexableFieldDescriptor(java.lang.String name,
java.lang.String indexableAnalyzerName,
java.lang.String indexableFieldTypeName,
boolean stored,
boolean indexed,
boolean binary,
boolean multiple,
boolean sortable,
java.lang.String sortOption,
java.util.Map<java.lang.String,java.lang.String> termVector,
java.util.Map<java.lang.String,java.io.Serializable> properties)
|
Method Summary | |
---|---|
java.lang.String |
getIndexingAnalyzer()
Returns the analyzer that must be applied on the indexable data at backend level. |
java.lang.String |
getIndexingName()
Returns the name of the target indexable data once indexed. |
java.lang.String |
getIndexingType()
Returns the target indexing field type. |
java.util.Map<java.lang.String,java.io.Serializable> |
getProperties()
Returns a map from of properties bound to this field. |
java.lang.String |
getSortOption()
Get a string describing behaviour of this data with respect to sort queries, e.g., case insensitivity. |
java.util.Map<java.lang.String,java.lang.String> |
getTermVector()
Returns whether and how a field should have term vectors. |
boolean |
isBinary()
Does this data needs to be handled like a binary data? |
boolean |
isIndexed()
Returns if whether or not the value will be indexed. |
boolean |
isMultiple()
Returns whether or not the value is a multiple one. |
boolean |
isSortable()
Say if special care must be taken to make the field sortable. |
boolean |
isStored()
Returns if whether or not the value will be stored. |
void |
setName(java.lang.String name)
|
void |
setProperties(java.util.Map<java.lang.String,java.io.Serializable> properties)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexableFieldDescriptor()
@Deprecated public IndexableFieldDescriptor(java.lang.String name, java.lang.String indexableAnalyzerName, java.lang.String indexableFieldTypeName, boolean stored, boolean indexed, boolean binary, boolean multiple, boolean sortable, java.util.Map<java.lang.String,java.lang.String> termVector, java.util.Map<java.lang.String,java.io.Serializable> properties)
IndexableFieldDescriptor(String,String,String,boolean,boolean,boolean,boolean,boolean,String,Map,Map)
instead
public IndexableFieldDescriptor(java.lang.String name, java.lang.String indexableAnalyzerName, java.lang.String indexableFieldTypeName, boolean stored, boolean indexed, boolean binary, boolean multiple, boolean sortable, java.lang.String sortOption, java.util.Map<java.lang.String,java.lang.String> termVector, java.util.Map<java.lang.String,java.io.Serializable> properties)
Method Detail |
---|
public java.lang.String getIndexingName()
IndexableResourceDataConf
The name here is not necessarily bound to the resource data key(s).This is the name that aimed at being used at backend level for the target index.
getIndexingName
in interface IndexableResourceDataConf
public void setName(java.lang.String name)
public java.lang.String getIndexingAnalyzer()
IndexableResourceDataConf
getIndexingAnalyzer
in interface IndexableResourceDataConf
public java.lang.String getIndexingType()
IndexableResourceDataConf
getIndexingType
in interface IndexableResourceDataConf
public boolean isStored()
IndexableResourceDataConf
isStored
in interface IndexableResourceDataConf
public java.util.Map<java.lang.String,java.lang.String> getTermVector()
IndexableResourceDataConf
getTermVector
in interface IndexableResourceDataConf
public boolean isIndexed()
IndexableResourceDataConf
isIndexed
in interface IndexableResourceDataConf
public boolean isMultiple()
IndexableResourceDataConf
isMultiple
in interface IndexableResourceDataConf
public boolean isBinary()
IndexableResourceDataConf
isBinary
in interface IndexableResourceDataConf
public boolean isSortable()
IndexableResourceDataConf
Typically (e.g., with Lucene) a tokenized/stemmed/analyzed field would not be sortable out of the box. The special treatment to restore sortability being potentially very costly, it should be applied only to fields for which isSortable() is true.
A false value doesn't forbid sortability for fields whose indexing digestion doesn't technically prevent sortability.
isSortable
in interface IndexableResourceDataConf
public java.lang.String getSortOption()
IndexableResourceDataConf
Compatibility issues This is new in 5.1.2. Customized implementations of this interface can simply return null, the behavior will then be exactly the same as before.
getSortOption
in interface IndexableResourceDataConf
public java.util.Map<java.lang.String,java.io.Serializable> getProperties()
IndexableResourceDataConf
getProperties
in interface IndexableResourceDataConf
public void setProperties(java.util.Map<java.lang.String,java.io.Serializable> properties)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |