Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SuggestIndex (0.08 sec)

  1. test-site/app/models/SuggestIndex.java

    import org.codelibs.fess.suggest.index.contents.document.DocumentReader;
    import org.codelibs.fess.suggest.index.contents.document.ESSourceReader;
    import org.codelibs.fess.suggest.request.suggest.SuggestResponse;
    
    public class SuggestIndex {
        public SuggestResponse suggest(String query) {
            return ComponentsUtil.suggester.suggest()
                .setQuery(query)
                .execute().getResponse();
        }
    
        public void index() {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 964 bytes
    - Viewed (0)
  2. test-site/app/controllers/Suggest.java

            String[] callback = params.get("callback");
            String[] query = params.get("query");
            try {
                SuggestIndex suggestIndex = new SuggestIndex();
                SuggestResponse response = suggestIndex.suggest(query[0]);
    
                XContentBuilder builder  = JsonXContent.contentBuilder()
                    .startObject()
                    .startObject("response")
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 2.2K bytes
    - Viewed (0)
Back to top