Package org.wso2.carbon.registry.indexing.solr

Examples of org.wso2.carbon.registry.indexing.solr.SolrClient.query()


    public SearchResultsBean searchContent(String searchQuery,
                              UserRegistry registry) throws IndexerException, RegistryException {
        SearchResultsBean resultsBean = new SearchResultsBean();
        SolrClient client = SolrClient.getInstance();
        SolrDocumentList results = client.query(searchQuery, registry.getTenantId());

        if (log.isDebugEnabled()) log.debug("result received "+ results);

        List<ResourceData> filteredResults = new ArrayList<ResourceData>();
        for (int i = 0;i < results.getNumFound();i++){
View Full Code Here


        List<String> filteredResults = new ArrayList<String>();
        try {
            client = SolrClient.getInstance();

            SolrDocumentList results = client.query(searchQuery, CurrentSession.getTenantId());

            if (log.isDebugEnabled()) log.debug("result received "+ results);


            for(int i = 0;i < results.getNumFound();i++){
View Full Code Here

        return AdvancedSearchResultsBeanPopulator.populate(configSystemRegistry, registry, parameters);
    }

    private ResourceData[] search(UserRegistry registry, String searchQuery) throws IndexerException, RegistryException {
        SolrClient client = SolrClient.getInstance();
        SolrDocumentList results = client.query(searchQuery, registry.getTenantId());

        if (log.isDebugEnabled()) log.debug("result received " + results);

        List<ResourceData> filteredResults = new ArrayList<ResourceData>();
        for (int i = 0; i < results.getNumFound(); i++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.