Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getFragmentSize (0.06 sec)

  1. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

            int originalSize = highlightInfo.getFragmentSize();
    
            viewHelper.updateHighlightInfo(highlightInfo, 500);
            assertEquals((int) (originalSize * 0.65), highlightInfo.getFragmentSize(), 10);
    
            highlightInfo = new HighlightInfo();
            viewHelper.updateHighlightInfo(highlightInfo, 300);
            assertEquals((int) (originalSize * 0.5), highlightInfo.getFragmentSize(), 10);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  2. 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 characters
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. 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.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
  4. 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();
    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