Class SolrAPI


  • public class SolrAPI
    extends ModelRequest<SolrAPI>
    Wrapper for solr API.
    Author:
    Meenal Bhave
    • Constructor Detail

    • Method Detail

      • getConfig

        public RestTextResponse getConfig()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getConfigOverlay

        public RestTextResponse getConfigOverlay()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getConfigParams

        public RestTextResponse getConfigParams()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • postConfig

        public RestTextResponse postConfig​(java.lang.String queryBody)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • postAction

        public RestTextResponse postAction​(java.lang.String urlActionPath,
                                           java.lang.String queryBody)
                                    throws java.lang.Exception
        Executes an action (like "delete") on SOLR alfresco core
        Parameters:
        urlActionPath - some action name (like "delete")
        queryBody - parameters for the action
        Throws:
        java.lang.Exception
      • getSelectQuery

        public RestTextResponse getSelectQuery()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getSelectQueryJson

        public RestTextResponse getSelectQueryJson()
                                            throws java.lang.Exception
        Executes a query in SOLR using JSON format for the results
        Throws:
        java.lang.Exception