Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for getResponse (0.15 sec)

  1. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(1, response.getNum());
            assertEquals("全文 検索", response.getWords().get(0));
    
            response = suggester.suggest().addKind("query").execute().getResponse();
            assertEquals(1, response.getNum());
    
            SuggestResponse response2 = suggester.suggest().setSuggestDetail(true).execute().getResponse();
            assertEquals(2, response2.getNum());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            }
        }
    
        public Object get(final String key) {
            final GetResponse getResponse =
                    client.prepareGet().setIndex(settingsIndexName).setId(settingsId).execute().actionGet(getSearchTimeout());
            if (!getResponse.isExists()) {
                return null;
            }
            final Map<String, Object> map = getResponse.getSource();
            return map.get(key);
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        assertEquals(null, getResponse(methodName).getResult());
      }
    
      /**
       * Asserts that a prior call that had caused this thread to block or wait has since returned the
       * expected boolean value.
       */
      public void assertPriorCallReturns(boolean expected, @Nullable String methodName)
          throws Exception {
        assertEquals(expected, getResponse(methodName).getResult());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriter.java

                return new SuggestWriterResult();
            }
    
            for (final SuggestItem item : mergedItems) {
                final GetResponse getResponse = client.prepareGet().setIndex(index).setId(item.getId()).get(TimeValue.timeValueSeconds(30));
                if (update && getResponse.isExists()) {
                    final IndexRequestBuilder indexRequestBuilder = new IndexRequestBuilder(client, IndexAction.INSTANCE, index);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.enqueue(response)
        assertContent("ABCDEFGHIJKLMNOPQR", getResponse(newRequest("/foo")))
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertContent("ABCDEFGHIJKLMNOPQR", getResponse(newRequest("/bar?baz=quux")))
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
        assertContent("ABCDEFGHIJKLMNOPQR", getResponse(newRequest("/z")))
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(2)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        assertEquals(null, getResponse(methodName).getResult());
      }
    
      /**
       * Asserts that a prior call that had caused this thread to block or wait has since returned the
       * expected boolean value.
       */
      public void assertPriorCallReturns(boolean expected, @Nullable String methodName)
          throws Exception {
        assertEquals(expected, getResponse(methodName).getResult());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

                }
                return this;
            }
    
            public RESPONSE getResponse() {
                return getResponse(1, TimeUnit.MINUTES);
            }
    
            public RESPONSE getResponse(final long time, final TimeUnit unit) {
                try {
                    final boolean isTimeout = !latch.await(time, unit);
                    if (isTimeout) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
            });
            th.start();
    
            SuggestResponse response = deferred.promise().getResponse(10, TimeUnit.SECONDS);
            assertEquals(0, response.getNum());
        }
    
        @Test
        public void test_getResponseAfterResolve() throws Exception {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/sso/SsoManager.java

                }
            }
            return null;
        }
    
        public ActionResponse getResponse(final SsoResponseType responseType) {
            if (available()) {
                final SsoAuthenticator authenticator = getAuthenticator();
                if (authenticator != null) {
                    return authenticator.getResponse(responseType);
                }
            }
            return null;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/sso/SsoAction.java

            }
        }
    
        @Execute
        public ActionResponse metadata() {
            final SsoManager ssoManager = ComponentUtil.getSsoManager();
            try {
                final ActionResponse actionResponse = ssoManager.getResponse(SsoResponseType.METADATA);
                if (actionResponse == null) {
                    throw responseManager.new400("Unsupported request type.");
                }
                return actionResponse;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top