Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getResponse (0.06 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. README.md

    ```java
    String suggestId = "id";
    Suggester suggester = Suggester.builder().build(client, suggestId);
    
    ```
    
    ### Suggest
    
    ```java
    SuggestResponse response = suggester.suggest().setQuery("kensaku").execute().getResponse();
    ```
    
    ### Suggest async
    
    ```
    suggester.suggest().setQuery("kensaku").execute()
      .done(
        response -> {}
      ).error(
        t -> {}
      );
    ```
    
    ### Add suggest document
    
    ```java
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Jan 19 03:33:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/smb/SmbTreeImpl.java

                    }
                    catch ( IOException se ) {
                        if ( request != null && request.getResponse() != null ) {
                            // tree connect might still have succeeded
                            response = (TreeConnectResponse) request.getResponse();
                            if ( response.isReceived() && !response.isError() && response.getErrorCode() == NtStatus.NT_STATUS_OK ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 29.6K bytes
    - Viewed (0)
Back to top