public interface SocialIndexer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REPORT_SUITE
To allow sharding on tenant id.
|
Modifier and Type | Method and Description |
---|---|
void |
addToIndex(java.util.Map<java.lang.String,java.lang.Object> data) |
long |
countChildren(java.lang.String keyValue,
java.lang.String baseType,
boolean visibleOnly) |
void |
delete(java.lang.String key) |
java.lang.String |
escapeQueryChars(java.lang.String query)
Simply provide access to the same method in org.apache.solr.client.solrj.util.ClientUtils
|
FacetResults |
facetedSearch(java.lang.String queryToAs,
java.util.List<java.lang.String> facetFields,
java.util.List<java.lang.String> pivotFields,
java.lang.String rows,
java.lang.String mincount,
boolean isPivot,
SocialDatabase database) |
SocialResourceSearchResult<java.util.Map<java.lang.String,java.lang.Object>> |
find(java.lang.String component,
java.lang.String solrQueryString,
java.util.List<SearchSortField> sortFields,
int offset,
int limit,
SocialDatabase database,
java.util.Map<java.lang.String,java.lang.Object> signals) |
FacetSearchResult |
findFacets(java.util.List<java.lang.String> countFields,
java.util.List<FacetRangeField> rangeFields,
java.lang.String resourceTypeFilter,
java.lang.String componentFilter,
int count,
boolean visibleOnly,
boolean includeChildren) |
SocialResourceSearchResult<java.util.Map<java.lang.String,java.lang.Object>> |
findFacets(java.util.List<java.lang.String> inPath,
java.util.List<java.lang.String> notInPath,
java.util.List<java.lang.String> fieldNames,
java.util.List<FacetRangeField> facetRanges,
java.lang.String scoredQueryString,
int maxFacetCount,
java.util.List<SearchSortField> sortFields,
int offset,
int pageSize,
SocialDatabase database) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getMLTResults(java.lang.String query,
java.lang.String statusFilter,
java.lang.String resourceTypeFilter,
java.lang.String componentFilter,
java.util.List<java.lang.String> mltField,
int maxResults,
int minTermFreq,
int minDocFreq,
SocialDatabase database) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
nonFacetedSearch(java.lang.String solrQueryString,
SocialDatabase database) |
java.util.List<java.lang.String> |
readForDelete(java.lang.String key,
int offset,
int limit)
Returns a list of 'id' matching the given key and its children
|
void |
setSolrConfig(int solrZKTimeout,
int commitWithin,
AbstractSchemaMapper mapper) |
void |
setupClient(SocialResourceConfiguration genericConfiguration) |
static final java.lang.String REPORT_SUITE
void setupClient(SocialResourceConfiguration genericConfiguration) throws java.io.IOException
java.io.IOException
void addToIndex(java.util.Map<java.lang.String,java.lang.Object> data) throws java.io.IOException
java.io.IOException
void delete(java.lang.String key)
FacetResults facetedSearch(java.lang.String queryToAs, java.util.List<java.lang.String> facetFields, java.util.List<java.lang.String> pivotFields, java.lang.String rows, java.lang.String mincount, boolean isPivot, SocialDatabase database) throws PersistenceException
PersistenceException
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getMLTResults(java.lang.String query, java.lang.String statusFilter, java.lang.String resourceTypeFilter, java.lang.String componentFilter, java.util.List<java.lang.String> mltField, int maxResults, int minTermFreq, int minDocFreq, SocialDatabase database) throws java.io.IOException
java.io.IOException
SocialResourceSearchResult<java.util.Map<java.lang.String,java.lang.Object>> find(java.lang.String component, java.lang.String solrQueryString, java.util.List<SearchSortField> sortFields, int offset, int limit, SocialDatabase database, java.util.Map<java.lang.String,java.lang.Object> signals) throws java.io.IOException
java.io.IOException
FacetSearchResult findFacets(java.util.List<java.lang.String> countFields, java.util.List<FacetRangeField> rangeFields, java.lang.String resourceTypeFilter, java.lang.String componentFilter, int count, boolean visibleOnly, boolean includeChildren) throws java.io.IOException
java.io.IOException
SocialResourceSearchResult<java.util.Map<java.lang.String,java.lang.Object>> findFacets(java.util.List<java.lang.String> inPath, java.util.List<java.lang.String> notInPath, java.util.List<java.lang.String> fieldNames, java.util.List<FacetRangeField> facetRanges, java.lang.String scoredQueryString, int maxFacetCount, java.util.List<SearchSortField> sortFields, int offset, int pageSize, SocialDatabase database) throws java.io.IOException
java.io.IOException
long countChildren(java.lang.String keyValue, java.lang.String baseType, boolean visibleOnly) throws PersistenceException
PersistenceException
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> nonFacetedSearch(java.lang.String solrQueryString, SocialDatabase database) throws PersistenceException
PersistenceException
void setSolrConfig(int solrZKTimeout, int commitWithin, AbstractSchemaMapper mapper)
java.lang.String escapeQueryChars(java.lang.String query)
query
- String queryjava.util.List<java.lang.String> readForDelete(java.lang.String key, int offset, int limit) throws java.io.IOException
key
- Stringlimit
- intoffset
- intjava.io.IOException
- IOException"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"