org.eaglei.search.provider
Class SearchResultAugmenter

java.lang.Object
  extended by org.eaglei.search.provider.SearchResultAugmenter
All Implemented Interfaces:
org.eaglei.search.provider.SearchProvider

public class SearchResultAugmenter
extends java.lang.Object
implements org.eaglei.search.provider.SearchProvider

SearchProvider augments the results of a search with properties based on searches against other SearchProviders. The query used for these augmentation searches is based on the result entity.

Author:
rfrost

Constructor Summary
SearchResultAugmenter(org.eaglei.search.provider.SearchProvider nestedProvider, java.util.Map<org.eaglei.model.EIEntity,org.eaglei.search.provider.SearchProvider> resultAugmenters)
          Creates a new SearchProvider that augments each result with additional properties based on a query against another SearchProvider.
 
Method Summary
 org.eaglei.search.provider.SearchCounts count(org.eaglei.search.provider.SearchCountRequest request)
           
 org.eaglei.search.provider.ClassCountResult getResourceCount(org.eaglei.search.provider.SearchRequest request)
           
 void init()
           
 org.eaglei.search.provider.SearchResultSet query(org.eaglei.search.provider.SearchRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultAugmenter

public SearchResultAugmenter(org.eaglei.search.provider.SearchProvider nestedProvider,
                             java.util.Map<org.eaglei.model.EIEntity,org.eaglei.search.provider.SearchProvider> resultAugmenters)
Creates a new SearchProvider that augments each result with additional properties based on a query against another SearchProvider.

Parameters:
nestedProvider - The provider that is queried to retrieve the primary search result set.
resultAugmenter - The provider that is queried to augment each result.
Method Detail

query

public org.eaglei.search.provider.SearchResultSet query(org.eaglei.search.provider.SearchRequest request)
                                                 throws java.io.IOException
Specified by:
query in interface org.eaglei.search.provider.SearchProvider
Throws:
java.io.IOException

count

public org.eaglei.search.provider.SearchCounts count(org.eaglei.search.provider.SearchCountRequest request)
                                              throws java.io.IOException
Specified by:
count in interface org.eaglei.search.provider.SearchProvider
Throws:
java.io.IOException

init

public void init()
          throws java.io.IOException
Specified by:
init in interface org.eaglei.search.provider.SearchProvider
Throws:
java.io.IOException

getResourceCount

public org.eaglei.search.provider.ClassCountResult getResourceCount(org.eaglei.search.provider.SearchRequest request)
Specified by:
getResourceCount in interface org.eaglei.search.provider.SearchProvider


Copyright © 2009-2011 Eagle-I. All Rights Reserved.