org.compass.core.mapping.rsem.builder
Class ResourceAllMappingBuilder

java.lang.Object
  extended by org.compass.core.mapping.rsem.builder.ResourceAllMappingBuilder

public class ResourceAllMappingBuilder
extends Object

A builder allowing to constrcut resource all mapping definition.

Author:
kimchy
See Also:
RSEM.all()

Field Summary
(package private)  DefaultAllMapping mapping
           
 
Constructor Summary
ResourceAllMappingBuilder()
          Constructs a new all mapping builder.
 
Method Summary
 ResourceAllMappingBuilder enable(boolean enable)
          Should the all mapping be enabled or not.
 ResourceAllMappingBuilder excludeAlias(boolean excludeAlias)
          Should the alias be exlcuded from the all mapping or not.
 ResourceAllMappingBuilder includePropertiesWithNoMappings(boolean includePropertiesWithNoMappings)
          Should the all mapping include properties that do not have mappings.
 ResourceAllMappingBuilder omitNorms(boolean omitNorms)
          The omit norms of the all property.
 ResourceAllMappingBuilder omitTf(boolean omitTf)
          The omit tf of the all property.
 ResourceAllMappingBuilder spellCheck(SpellCheck spellCheck)
          The spell check type of the all property.
 ResourceAllMappingBuilder termVector(Property.TermVector termVector)
          The term vector of the all property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapping

final DefaultAllMapping mapping
Constructor Detail

ResourceAllMappingBuilder

public ResourceAllMappingBuilder()
Constructs a new all mapping builder.

Method Detail

enable

public ResourceAllMappingBuilder enable(boolean enable)
Should the all mapping be enabled or not. Defaults to the global CompassEnvironment.All.ENABLED setting which in turn defaults to true.


excludeAlias

public ResourceAllMappingBuilder excludeAlias(boolean excludeAlias)
Should the alias be exlcuded from the all mapping or not. Default to the CompassEnvironment.All.EXCLUDE_ALIAS setting which in turn defaults to true.


includePropertiesWithNoMappings

public ResourceAllMappingBuilder includePropertiesWithNoMappings(boolean includePropertiesWithNoMappings)
Should the all mapping include properties that do not have mappings. Defaults to the global CompassEnvironment.All.INCLUDE_UNMAPPED_PROPERTIES setting which in turn defaults to true.


termVector

public ResourceAllMappingBuilder termVector(Property.TermVector termVector)
The term vector of the all property. Default to the CompassEnvironment.All.TERM_VECTOR setting which in turn defaults to NO.


omitNorms

public ResourceAllMappingBuilder omitNorms(boolean omitNorms)
The omit norms of the all property. Default to the CompassEnvironment.All.OMIT_NORMS setting which in turn defaults to false.


omitTf

public ResourceAllMappingBuilder omitTf(boolean omitTf)
The omit tf of the all property. Default to the CompassEnvironment.All.OMIT_TF setting which in turn defaults to false.


spellCheck

public ResourceAllMappingBuilder spellCheck(SpellCheck spellCheck)
The spell check type of the all property.



Copyright (c) 2004-2009 The Compass Project.