public class BlogMetadataSearchUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RESULTS |
static int |
MIN_DOC_FREQ |
static int |
MIN_TERM_FREQ |
Constructor and Description |
---|
BlogMetadataSearchUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Integer> |
getRelatedBlogEntries(ResourceResolver resolver,
String query,
String resourceTypeFilter,
String componentFilter,
String[] catergoryFields,
int maxResults,
int minTermFreq,
int minDocFreq)
Return a list of related posts, given a query.
|
public static final int MIN_TERM_FREQ
public static final int MIN_DOC_FREQ
public static final int MAX_RESULTS
public static Map<String,Integer> getRelatedBlogEntries(ResourceResolver resolver, String query, String resourceTypeFilter, String componentFilter, String[] catergoryFields, int maxResults, int minTermFreq, int minDocFreq) throws RepositoryException
resolver
- The resource resolver.query
- The string to search for.resourceTypeFilter
- The resource type to filter on.componentFilter
- The component path.catergoryFields
- Node properties to search on.maxResults
- The maximum results returned.minTermFreq
- The frequency which terms will be ignored in the source docminDocFreq
- The frequency at which words will be ignored which do not occur in at least this many docs.RepositoryException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"