|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.webSvr.util.SearchUtils
public final class SearchUtils
Search related utility functions. This is for algorithms only of interest to Web apps, often JSPs.
One advantage of having a method here rather than in-line in a JSP is that is is pre-compiled off-line for speed and robustness.
| Constructor Summary | |
|---|---|
private |
SearchUtils()
Prevent construction of an instance. |
| Method Summary | |
|---|---|
static java.util.List<Name.ExhibitFull> |
doRelatedExhibitsSearch(Name searchTerm,
DataSourceBean dataSource,
int maxResults,
ORG.hd.d.jIndexer.server.JIndexBean.SearchFilterByName filter,
boolean fallback,
boolean alreadyCanon)
Compute immutable full exhibit names of "similar" items, eg in the foot of each catalogue page; never null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private SearchUtils()
| Method Detail |
|---|
public static java.util.List<Name.ExhibitFull> doRelatedExhibitsSearch(Name searchTerm,
DataSourceBean dataSource,
int maxResults,
ORG.hd.d.jIndexer.server.JIndexBean.SearchFilterByName filter,
boolean fallback,
boolean alreadyCanon)
throws java.io.IOException
This may try a narrow search, insisting that the first search word must appear in candidate result exhibit names and that preferably most search terms should be matched, optionally falling back to a wider search if the narrow one fails.
This does not cache its results.
When this returns an empty value it always returns the same instance.
searchTerm - non-null, non-empty search term(s);
earlier words are possibly more significantdataSource - data source; never nullmaxResults - maximum number of results; never nullfilter - non-null filter of acceptable exhibitsfallback - if true and a narrow search fails to generate answers,
fall back to a wider searchalreadyCanon - if true then the searchTerm is already canonicalised
java.io.IOException - in case of error
|
DHD Multimedia Gallery V1.60.69 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||