- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for kdoc (0.02 sec)
-
ApiAdminDocumentsAction.java
} L95: doc.put(indexFieldContentLength, contentLength); L96: } L97: if (!doc.containsKey(indexFieldFavoriteCount)) { L98: doc.put(indexFieldFavoriteCount, 0L); L99: } L100: if (!doc.containsKey(indexFieldClickCount)) { L101: doc.put(indexFieldClickCount, 0L); L102: } L103: if (!doc.containsKey(indexFieldBoost)) { L104: doc.put(indexFieldBoost, 1.0f); L105: ...github.com/codelibs/fess/src/main/java/org/code...Thu Jul 25 01:48:41 UTC 2024 7.5K bytes -
SearchApiTests.java
JsonPath.from(wcResponse1).getList("data"); L300: for (Map<String, Object> doc : docs1) { L301: assertTrue(doc.get(field).toString().toLowerCase().contains(query), doc.toString()); L302: } L303: List<Map<String, Object>> docs2 = JsonPath.from(wcResponse2).getList("data"); L304: for (Map<String, Object> doc : docs2) { L305: assertTrue(doc.get(field).toString().toLowerCase().contains(query), doc.toString()); L306: } L307: } L308: L309: @Test L310: ...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 18.6K bytes -
AdminSearchlistAction.java
L346: if (!fessConfig.validateIndexArrayFields(doc)) { L347: throwError.accept(messages -> fessConfig.invalidIndexArrayFields(doc).stream().map(s -> "doc." + s) L348: .forEach(s -> messages.addErrorsPropertyRequired(s, s))); L349: } L350: if (!fessConfig.validateIndexDateFields(doc)) { L351: throwError.accept(messages -> fessConfig.invalidIndexDateFields(doc).stream().map(s -> "doc." + s) L352: ...github.com/codelibs/fess/src/main/java/org/code...Wed Jul 24 09:03:45 UTC 2024 18.3K bytes -
DocumentUtilTest.java
(List<String>) DocumentUtil.getValue(doc, "key1", List.class)); L57: } L58: L59: public void test_integer() { L60: Map<String, Object> doc = new HashMap<>(); L61: L62: int expected3 = 999; L63: doc.put("key3", expected3); L64: assertEquals(expected3, DocumentUtil.getValue(doc, "key3", Integer.class)); L65: L66: doc.put("key9", new ArrayList<Integer>(Arrays.asList(777, 888, 999))); L67: assertEquals(777, DocumentUtil.getValue(doc, "key9", Integer.class)); L68:...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4K bytes -
LanguageHelper.java
} L75: } L76: L77: for (final String f : langFields) { L78: final String lf = f + "_" + language; L79: if (doc.containsKey(f) && !doc.containsKey(lf)) { L80: doc.put(lf, doc.get(f)); L81: if (logger.isDebugEnabled()) { L82: logger.debug("add {} field", lf); L83: } L84: } L85: } L86: } L87: L88: protected String detectLanguage(final String text) { L89: if (Strin...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 5.5K bytes -
LanguageHelperTest.java
}; L32: } L33: L34: public void test_createScript() { L35: Map<String, Object> doc = new HashMap<>(); L36: assertEquals("aaa", languageHelper.createScript(doc, "aaa").getIdOrCode()); L37: L38: doc.put("lang", "ja"); L39: assertEquals("aaa;ctx._source.title_ja=ctx._source.title;ctx._source.content_ja=ctx._source.content", L40: languageHelper.createScript(doc, "aaa").getIdOrCode()); L41: } L42: L43: public void test_getReindexScriptSource() { L44:...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 1.7K bytes -
ApiAdminSearchlistAction.java
})).status(Status.OK).result()); L114: } L115: L116: // PUT /api/admin/searchlist/doc L117: @Execute L118: public JsonResponse<ApiResult> put$doc(final CreateBody body) { L119: validateApi(body, messages -> {}); L120: if (body.doc == null) { L121: throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, "doc is required")); L122: } L123: validateFields(body.doc, this::throwValidationErrorApi); L124: body.crudMode = CrudMode.CREATE;...github.com/codelibs/fess/src/main/java/org/code...Wed Jul 24 09:03:45 UTC 2024 10.2K bytes -
SearchListTests.java
L72: final Map<String, Object> requestBody = new HashMap<>(); L73: final Map<String, Object> doc = new HashMap<>(); L74: final String keyProp = NAME_PREFIX + id; L75: doc.put(KEY_PROPERTY, keyProp); L76: doc.put("url", "http://example.com/" + id); L77: doc.put("boost", id); L78: doc.put("role", "Rguest"); L79: requestBody.put("doc", doc); L80: return requestBody; L81: } L82: L83: @Override L84: protected Map<String, Object> c...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4.5K bytes -
ThumbnailAction.java
ror_ErrorJsp))); L50: if (isLoginRequired()) { L51: return redirectToLogin(); L52: } L53: L54: final Map<String, Object> doc = L55: searchHelper.getDocumentByDocId(form.docId, queryFieldConfig.getResponseFields(), getUserBean()).orElse(null); L56: final String url = DocumentUtil.getValue(doc, fessConfig.getIndexFieldThumbnail(), String.class); L57: if (StringUtil.isBlank(form.queryId) || StringUtil.isBlank(url) || !thumbnailSupport) { L58:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 3.6K bytes -
GoAction.java
redirectToLogin(); L71: } L72: L73: Map<String, Object> doc = null; L74: try { L75: doc = searchHelper.getDocumentByDocId(form.docId, L76: new String[] { fessConfig.getIndexFieldUrl(), fessConfig.getIndexFieldConfigId() }, getUserBean()).orElse(null); L77: } catch (final Exception e) { L78: logger.warn("Failed to request: {}", form.docId, e); L79: } L80: if (doc == null) { L81: saveError(messages -> messages.add...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 6.9K bytes