Package com.attivio.sdk.search
Interface SearchProfileApi
-
- All Superinterfaces:
ExternalizableStore
public interface SearchProfileApi extends ExternalizableStore
EXPERIMENTAL: This API will be changed/renamed in a future release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.attivio.sdk.client.ExternalizableStore
ExternalizableStore.ImportOption
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSTORE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcompileSearchProfile(java.lang.String name)Compile all outstanding changes to the search profile to support testing/publish.voidcreateQueryFrame(java.lang.String searchProfile, QueryFrame frame)Create a query frame.voidcreateSearchProfile(SearchProfile profile)Create a search profile.default voidcreateSearchProfile(java.lang.String name)Create a search profile.voiddeleteQueryFrame(java.lang.String searchProfile, java.lang.String name)Delete a query frame.voiddeleteSearchProfile(java.lang.String name)Delete a search profile identified byname.voidexportSearchProfile(java.lang.String name, java.io.OutputStream output)Export a search profile.QueryFramegetQueryFrame(java.lang.String searchProfile, java.lang.String name)Get a query frame.java.util.List<QueryFrame>getQueryFrames(java.lang.String searchProfile)Get a list of all query frames forsearchProfileSearchProfilegetSearchProfile(java.lang.String name)Get search profile by name.default java.util.List<java.lang.String>getSearchProfileNames()Return a list of the names of all search profiles.java.util.List<SearchProfile>getSearchProfiles()Return a list of available search profiles.default java.lang.StringgetStoreName()Get the name of this store.default voidimportSearchProfile(java.io.InputStream input)Import search profile frominput.QueryFrameResultprocess(QueryRequest request, java.lang.String query, java.lang.String workflow)Get the matching query frame for a request.voidpublishSearchProfile(java.lang.String name)Make the most recently compiled search profile live.voidupdateQueryFrame(java.lang.String searchProfile, QueryFrame frame)Update query frame.voidupdateSearchProfile(SearchProfile profile)Update a search profile.-
Methods inherited from interface com.attivio.sdk.client.ExternalizableStore
exportStore, getStoreRevision, importStore
-
-
-
-
Field Detail
-
STORE_NAME
static final java.lang.String STORE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStoreName
default java.lang.String getStoreName()
Description copied from interface:ExternalizableStoreGet the name of this store.This name will be the location that store configuration is synchronized to in the project's conf directory.
- Specified by:
getStoreNamein interfaceExternalizableStore
-
createSearchProfile
default void createSearchProfile(java.lang.String name) throws AttivioExceptionCreate a search profile.- Throws:
AttivioException
-
createSearchProfile
void createSearchProfile(SearchProfile profile) throws AttivioException
Create a search profile.- Throws:
AttivioException
-
updateSearchProfile
void updateSearchProfile(SearchProfile profile) throws AttivioException
Update a search profile.- Throws:
AttivioException
-
deleteSearchProfile
void deleteSearchProfile(java.lang.String name) throws AttivioExceptionDelete a search profile identified byname.NOTE: this will delete all
QueryFramesassociated with this search profile.- Throws:
AttivioException
-
getSearchProfile
SearchProfile getSearchProfile(java.lang.String name) throws AttivioException
Get search profile by name.- Throws:
AttivioException
-
getSearchProfiles
java.util.List<SearchProfile> getSearchProfiles() throws AttivioException
Return a list of available search profiles.- Throws:
AttivioException
-
getSearchProfileNames
default java.util.List<java.lang.String> getSearchProfileNames() throws AttivioExceptionReturn a list of the names of all search profiles.- Throws:
AttivioException
-
getQueryFrame
QueryFrame getQueryFrame(java.lang.String searchProfile, java.lang.String name) throws AttivioException
Get a query frame.- Throws:
AttivioException
-
createQueryFrame
void createQueryFrame(java.lang.String searchProfile, QueryFrame frame) throws AttivioExceptionCreate a query frame.- Throws:
AttivioException
-
updateQueryFrame
void updateQueryFrame(java.lang.String searchProfile, QueryFrame frame) throws AttivioExceptionUpdate query frame.- Throws:
AttivioException
-
deleteQueryFrame
void deleteQueryFrame(java.lang.String searchProfile, java.lang.String name) throws AttivioExceptionDelete a query frame.- Throws:
AttivioException
-
getQueryFrames
java.util.List<QueryFrame> getQueryFrames(java.lang.String searchProfile) throws AttivioException
Get a list of all query frames forsearchProfile- Throws:
AttivioException
-
process
QueryFrameResult process(QueryRequest request, java.lang.String query, java.lang.String workflow) throws AttivioException
Get the matching query frame for a request.The
requestwill specify the search profile to use.This may represent multiple merged query frames.
- Throws:
AttivioException
-
compileSearchProfile
void compileSearchProfile(java.lang.String name) throws AttivioExceptionCompile all outstanding changes to the search profile to support testing/publish.- Throws:
AttivioException
-
publishSearchProfile
void publishSearchProfile(java.lang.String name) throws AttivioExceptionMake the most recently compiled search profile live.- Throws:
AttivioException
-
exportSearchProfile
void exportSearchProfile(java.lang.String name, java.io.OutputStream output) throws AttivioExceptionExport a search profile.Export will be a JAR file written to
output.- Throws:
AttivioException
-
importSearchProfile
default void importSearchProfile(java.io.InputStream input) throws AttivioExceptionImport search profile frominput.inputmust contain a JAR file containing the contents of a SearchProfile export.- Throws:
AttivioException
-
-