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

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

public abstract class RSEM
extends Object

Static builder allowing to construct RSEM (Resource to Search Engine Mapping) definitions.

Here is an exmaple how it can be used:

 import static org.compass.core.mapping.rsem.builder.RSEM.*;


 conf.addMapping(
          resource("a")
              .add(id("id"))
              .add(property("value1"))
              .add(property("value2").store(Property.Store.YES).index(Property.Index.ANALYZED))
              .add(property("value3").store(Property.Store.COMPRESS).index(Property.Index.ANALYZED))
              .add(property("value4").store(Property.Store.YES).index(Property.Index.NOT_ANALYZED))
              .add(property("value5").store(Property.Store.YES).index(Property.Index.ANALYZED).converter("mydate"))
              .add(property("value6"))
 );
 

Author:
kimchy

Method Summary
static ResourceAllMappingBuilder all()
          Constructs a new all mapping definition that can be added to a resource mapping builder using ResourceMappingBuilder.all(ResourceAllMappingBuilder).
static ResourceAnalyzerMappingBuilder analyzer(String name)
          Constructs a new resource analyzer property mapping using the specified name.
static ResourceBoostMappingBuilder boost(String name)
          Constructs a new resource boost property mapping using the specified name.
static ResourceContractMappingBuilder contract(String alias)
           
static ResourceIdMappingBuilder id(String name)
          Constructs a new resource id mapping using the specified name.
static ResourcePropertyMappingBuilder property(String name)
          Constructs a new resource property mapping using the specified name.
static ResourceMappingBuilder resource(String alias)
          Constructs a new resource based mapping for the specific alias.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contract

public static ResourceContractMappingBuilder contract(String alias)

resource

public static ResourceMappingBuilder resource(String alias)
Constructs a new resource based mapping for the specific alias. Note, at least one id mapping must be added to the resource mapping.


id

public static ResourceIdMappingBuilder id(String name)
Constructs a new resource id mapping using the specified name. Can then be added to a resource mapping builder using ResourceMappingBuilder.add(ResourceIdMappingBuilder).


property

public static ResourcePropertyMappingBuilder property(String name)
Constructs a new resource property mapping using the specified name. Can then be added to a resource mapping builder using ResourceMappingBuilder.add(ResourcePropertyMappingBuilder).


analyzer

public static ResourceAnalyzerMappingBuilder analyzer(String name)
Constructs a new resource analyzer property mapping using the specified name. Can then be added to a resource mapping builder using ResourceMappingBuilder.add(ResourceAnalyzerMappingBuilder).


boost

public static ResourceBoostMappingBuilder boost(String name)
Constructs a new resource boost property mapping using the specified name. Can then be added to a resource mapping builder using ResourceMappingBuilder.add(ResourceBoostMappingBuilder).


all

public static ResourceAllMappingBuilder all()
Constructs a new all mapping definition that can be added to a resource mapping builder using ResourceMappingBuilder.all(ResourceAllMappingBuilder).



Copyright (c) 2004-2009 The Compass Project.