Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toJsonString (0.04 sec)

  1. tests/preload_suits_test.go

    		t.Error(err)
    	}
    
    	if string(toJSONString(got)) != string(toJSONString(want)) {
    		t.Errorf("got %s; want %s", toJSONString(got), toJSONString(want))
    	}
    }
    
    type LevelA1 struct {
    	ID    uint
    	Value string
    }
    
    type LevelA2 struct {
    	ID       uint
    	Value    string
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Jun 05 11:34:13 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

        public void testToJsonString() {
            // Test toJsonString method
            String[] text = { "json", "test" };
            String[][] readings = { { "json" }, { "test" } };
            String[] tags = { "tag1" };
    
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 10L, 1.0f, tags, null, null, SuggestItem.Kind.QUERY);
    
            String json = item.toJsonString();
    
            assertNotNull(json);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            logger.info(msg);
            if (logger.isDebugEnabled()) {
                for (final SuggestItem item : items) {
                    logger.debug("[{}] {}", type, item.toJsonString());
                }
            }
        }
    
        /**
         * Indexes documents from a DocumentReader asynchronously.
         * @param reader The supplier for DocumentReader.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

        }
    
        /**
         * Converts the suggest item to a JSON string.
         * @return The JSON string representation of the suggest item.
         */
        public String toJsonString() {
            final StringBuilder buf = new StringBuilder(100);
            buf.append('{').append('"').append(FieldNames.TEXT).append("\":").append(convertJsonString(text));
    
            for (int i = 0; i < readings.length; i++) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
Back to top