Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getXContentString (0.12 sec)

  1. src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java

            assertNotNull(outputStream);
            assertTrue(outputStream instanceof ByteArrayOutputStream);
        }
    
        public void test_getXContentString_success() {
            // Test that getXContentString method exists and handles exceptions properly
            ToXContent xContent = new ToXContent() {
                @Override
                public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/SearchEngineUtil.java

         * @param mediaType the media type for the conversion
         * @return the string representation of the content
         * @throws IORuntimeException if an IO error occurs during conversion
         */
        public static String getXContentString(final ToXContent xContent, final MediaType mediaType) {
            try {
                return XContentHelper.toXContent(xContent, mediaType, ToXContent.EMPTY_PARAMS, false).utf8ToString();
            } catch (final IOException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

                            Map.of("f", field, "v", value)));
            try {
                final String source = SearchEngineUtil.getXContentString(request, XContentType.JSON);
                if (logger.isDebugEnabled()) {
                    logger.debug("update script by id: {}", source);
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 121.9K bytes
    - Viewed (0)
Back to top