public interface ResourceAwareSearchService<T extends Query> extends SearchService<T>
SearchService that provides methods for indexing binary/document files accessible through
Spring Resources.| Modifier and Type | Method and Description |
|---|---|
default void |
updateContent(String site,
String id,
org.springframework.core.io.Resource resource)
Updates the search engine's index data of a binary or structured document (PDF, Word, Office).
|
default void |
updateContent(String site,
String id,
org.springframework.core.io.Resource resource,
Map<String,List<String>> additionalFields)
Updates the search engine's index data of a binary or structured document (PDF, Word, Office).
|
default void |
updateContent(String indexId,
String site,
String id,
org.springframework.core.io.Resource resource)
Updates the search engine's index data of a binary or structured document (PDF, Word, Office).
|
void |
updateContent(String indexId,
String site,
String id,
org.springframework.core.io.Resource resource,
Map<String,List<String>> additionalFields)
Updates the search engine's index data of a binary or structured document (PDF, Word, Office).
|
commit, commit, delete, delete, search, search, update, update, updateContent, updateContent, updateContent, updateContent, updateContent, updateContent, updateContent, updateContentcreateQuery, createQuerydefault void updateContent(String site, String id, org.springframework.core.io.Resource resource) throws SearchException
site - the Crafter site name the content belongs toid - the id of the file, within the siteresource - the file content to update in the indexSearchExceptiondefault void updateContent(String indexId, String site, String id, org.springframework.core.io.Resource resource) throws SearchException
indexId - the index ID (core in Solr terminology). Use null for default index.site - the Crafter site name the content belongs toid - the id of the file, within the siteresource - the file content to update in the indexSearchExceptiondefault void updateContent(String site, String id, org.springframework.core.io.Resource resource, Map<String,List<String>> additionalFields) throws SearchException
site - the Crafter site name the content belongs toid - the id of the file, within the siteresource - the file content to update in the indexadditionalFields - additional metadata fields to be indexed (shouldn't have the name site, id or
document)SearchExceptionvoid updateContent(String indexId, String site, String id, org.springframework.core.io.Resource resource, Map<String,List<String>> additionalFields) throws SearchException
indexId - the index ID (core in Solr terminology). Use null for default index.site - the Crafter site name the content belongs toid - the id of the XML document, within the siteresource - the file content to update in the indexadditionalFields - additional metadata fields to be indexed (shouldn't have the name site, id or
document)SearchExceptionCopyright © 2020 CrafterCMS. All rights reserved.