- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for getFragmentSize (0.29 seconds)
-
src/main/java/org/codelibs/fess/entity/HighlightInfo.java
this.type = type; return this; } /** * Gets the fragment size. * * @return the fragment size in characters */ public int getFragmentSize() { return fragmentSize; } /** * Sets the fragment size with fluent interface. * * @param fragmentSize the fragment size in charactersCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 10:17:07 GMT 2026 - 5.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/ViewHelperTest.java
viewHelper.init(); HighlightInfo highlightInfo = new HighlightInfo(); int originalSize = highlightInfo.getFragmentSize(); viewHelper.updateHighlightInfo(highlightInfo, 500); Assertions.assertEquals((int) (originalSize * 0.65), highlightInfo.getFragmentSize(), 10); highlightInfo = new HighlightInfo(); viewHelper.updateHighlightInfo(highlightInfo, 300);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 27.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
float ratio = (float) width / (float) TABLET_WIDTH; if (ratio < 0.5) { ratio = 0.5f; } highlightInfo.fragmentSize((int) (highlightInfo.getFragmentSize() * ratio)); } } /** * Gets the URL link for a document with proper protocol handling. * Handles file, SMB, FTP, and HTTP protocols. *Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 52.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java
final FessConfig fessConfig) { final String highlighterType = highlightInfo.getType(); final int fragmentSize = highlightInfo.getFragmentSize(); final int numOfFragments = highlightInfo.getNumOfFragments(); final int fragmentOffset = highlightInfo.getFragmentOffset();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)