Package org.rhq.core.domain.search

Examples of org.rhq.core.domain.search.SearchSuggestion


            if (next.getResultCount() != null) {
                label += " (" + next.getResultCount() + ")";
            }
            String value = next.getName();
            int index = next.getName().toLowerCase().indexOf(expression);
            SearchSuggestion suggestion = new SearchSuggestion(Kind.UserSavedSearch, label, value, next.getPattern(),
                index, expression.length());
            results.add(suggestion);
        }
        return results;
    }
View Full Code Here


            if (next.getResultCount() != null) {
                label += " (" + next.getResultCount() + ")";
            }
            String value = next.getName();
            int index = next.getName().toLowerCase().indexOf(expression);
            SearchSuggestion suggestion = new SearchSuggestion(Kind.GlobalSavedSearch, label, value, next.getPattern(),
                index, expression.length());
            results.add(suggestion);
        }
        return results;
    }
View Full Code Here

            } else if (endBounded) {
                term = term.substring(0, term.length() - 1);
            }

            int index = suggestion.toLowerCase().indexOf(term, startIndex);
            results.add(new SearchSuggestion(kind, suggestion, index, term.length()));
        }
        return results;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.search.SearchSuggestion

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.