org.compass.core.lucene.engine.transaction.support
Class ResourceEnhancer

java.lang.Object
  extended by org.compass.core.lucene.engine.transaction.support.ResourceEnhancer

public class ResourceEnhancer
extends Object

A helper class providing helper method to enhance a resource before indexing it.

Author:
kimchy

Nested Class Summary
static class ResourceEnhancer.Result
          Result of enahanceResource(org.compass.core.spi.InternalResource).
 
Constructor Summary
ResourceEnhancer()
           
 
Method Summary
static ResourceEnhancer.Result enahanceResource(InternalResource resource)
          Enhances the given resource and reutrns the Analyzer that should be used when adding the Lucene Resource to the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceEnhancer

public ResourceEnhancer()
Method Detail

enahanceResource

public static ResourceEnhancer.Result enahanceResource(InternalResource resource)
Enhances the given resource and reutrns the Analyzer that should be used when adding the Lucene Resource to the index.

Parameters:
resource - The resource to enhance.
Returns:
The analyzer that should be used when adding the Lucene resource to the search engine


Copyright (c) 2004-2009 The Compass Project.