|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.search.provider.SearchResultRankMerger
public class SearchResultRankMerger
Trivial implementation of SearchResultMerger that uses result rank. Also trims the results sets to the specified range. NOTE: the rank across result sets is not in most cases comparable.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_TRIM_TO_RANGE_PROP
Default value of the trim to range property. |
static float |
POSITION_DECREMENT
Amount that the result rank is decremented for each position in the order. |
static java.lang.String |
TRIM_TO_RANGE_PROP
System property that controls whether the merger trims results to the paginated range. |
| Constructor Summary | |
|---|---|
SearchResultRankMerger(org.eaglei.search.provider.MultiNodeSearchProvider nestedProvider)
|
|
| Method Summary | |
|---|---|
org.eaglei.search.provider.SearchCounts |
count(org.eaglei.search.provider.SearchCountRequest request)
|
boolean |
getTrimToRange()
|
void |
init()
|
org.eaglei.search.provider.SearchResultSet |
query(org.eaglei.search.provider.SearchRequest request)
|
void |
setTrimToRange(boolean trimToRange)
Sets the flag that controls whether the returned SearchResultSet is trimmed to the range specified in the SearchRequest or whether all merged results are returned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TRIM_TO_RANGE_PROP
public static final java.lang.String DEFAULT_TRIM_TO_RANGE_PROP
public static final float POSITION_DECREMENT
| Constructor Detail |
|---|
public SearchResultRankMerger(org.eaglei.search.provider.MultiNodeSearchProvider nestedProvider)
| Method Detail |
|---|
public void setTrimToRange(boolean trimToRange)
trimToRange - True to trim merged results.public boolean getTrimToRange()
setTrimToRange(boolean)
public void init()
throws java.io.IOException
init in interface org.eaglei.search.provider.SearchProviderjava.io.IOException
public org.eaglei.search.provider.SearchCounts count(org.eaglei.search.provider.SearchCountRequest request)
throws java.io.IOException
count in interface org.eaglei.search.provider.SearchProviderjava.io.IOException
public org.eaglei.search.provider.SearchResultSet query(org.eaglei.search.provider.SearchRequest request)
throws java.io.IOException
query in interface org.eaglei.search.provider.SearchProviderjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||