org.compass.core.mapping.json.builder
Class JsonAllMappingBuilder

java.lang.Object
  extended by org.compass.core.mapping.json.builder.JsonAllMappingBuilder

public class JsonAllMappingBuilder
extends Object

A builder allowing to constrcut resource all mapping definition.

Author:
kimchy
See Also:
JSEM.all()

Field Summary
(package private)  DefaultAllMapping mapping
           
 
Constructor Summary
JsonAllMappingBuilder()
          Constructs a new all mapping builder.
 
Method Summary
 JsonAllMappingBuilder enable(boolean enable)
          Should the all mapping be enabled or not.
 JsonAllMappingBuilder excludeAlias(boolean excludeAlias)
          Should the alias be exlcuded from the all mapping or not.
 JsonAllMappingBuilder includePropertiesWithNoMappings(boolean includePropertiesWithNoMappings)
          Should the all mapping include properties that do not have mappings.
 JsonAllMappingBuilder omitNorms(boolean omitNorms)
          The omit norms of the all property.
 JsonAllMappingBuilder omitTf(boolean omitTf)
          The omit tf of the all property.
 JsonAllMappingBuilder spellCheck(SpellCheck spellCheck)
          The spell check type of the all property.
 JsonAllMappingBuilder 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

JsonAllMappingBuilder

public JsonAllMappingBuilder()
Constructs a new all mapping builder.

Method Detail

enable

public JsonAllMappingBuilder 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 JsonAllMappingBuilder 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 JsonAllMappingBuilder 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 JsonAllMappingBuilder 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 JsonAllMappingBuilder 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 JsonAllMappingBuilder 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 JsonAllMappingBuilder spellCheck(SpellCheck spellCheck)
The spell check type of the all property.



Copyright (c) 2004-2009 The Compass Project.