Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for getXContentString (0.08 seconds)

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

            assertNotNull(outputStream);
            assertTrue(outputStream instanceof ByteArrayOutputStream);
        }
    
        @Test
        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 {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.8K bytes
    - Click Count (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) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.1K bytes
    - Click Count (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);
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
Back to Top