Package org.rhq.enterprise.server.search.execution

Examples of org.rhq.enterprise.server.search.execution.SearchAssistManager$SearchTermAssistant


    }

    @Test
    public void test2() throws Exception {
        Subject overlord = LookupUtil.getSubjectManager().getOverlord();
        SearchAssistManager mgr = new SearchAssistManager(overlord, SearchSubsystem.RESOURCE);
        List<SearchSuggestion> suggestions = mgr.getSuggestions("category=PLATFORM",0);
        System.out.println("Number of suggestions: " + suggestions.size());
        for (SearchSuggestion s : suggestions) {
            System.out.println(s);
        }
View Full Code Here


    private SavedSearchManagerLocal savedSearchManager = LookupUtil.getSavedSearchManager();

    public List<SearchSuggestion> getTabAwareSuggestions(SearchSubsystem searchSubsystem, String expression,
        int caretPosition, String tab) throws RuntimeException {
        try {
            SearchAssistManager searchAssistManager = new SearchAssistManager(getSessionSubject(), searchSubsystem);
            List<SearchSuggestion> results = searchAssistManager.getTabAwareSuggestions(expression, caretPosition, tab);
            return results;
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
    }
View Full Code Here

    }

    public List<SearchSuggestion> getSuggestions(SearchSubsystem searchSubsystem, String expression, int caretPosition)
        throws RuntimeException {
        try {
            SearchAssistManager searchAssistManager = new SearchAssistManager(getSessionSubject(), searchSubsystem);
            List<SearchSuggestion> results = searchAssistManager.getSuggestions(expression, caretPosition);
            return results;
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.search.execution.SearchAssistManager$SearchTermAssistant

Copyright © 2018 www.massapicom. 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.