Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for highlighting (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/org/codelibs/fess/entity/HighlightInfo.java

    import org.codelibs.fess.util.ComponentUtil;
    
    /**
     * Entity class containing highlighting configuration for search result text highlighting.
     * This class manages highlighting parameters such as fragment size, number of fragments,
     * and highlighting type for displaying search query matches in result snippets.
     */
    public class HighlightInfo {
        /** The highlighting type (e.g., plain, html). */
        private String type;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 05 10:17:07 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/ViewHelper.java

         * Adjusts fragment size for mobile devices.
         *
         * @return the highlight information
         */
        public HighlightInfo createHighlightInfo() {
            return LaRequestUtil.getOptionalRequest().map(req -> {
                final HighlightInfo highlightInfo = new HighlightInfo();
                final String widthStr = req.getParameter(SCREEN_WIDTH);
                if (StringUtil.isNotBlank(widthStr)) {
    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)
  3. src/main/resources/fess_config.properties

    # Whether to detect boundary position in query highlighting.
    query.highlight.boundary.position.detect=true
    # Type for text fragment in query highlighting.
    query.highlight.text.fragment.type=query
    # Size for text fragment in query highlighting.
    query.highlight.text.fragment.size=3
    # Prefix length for text fragment in query highlighting.
    query.highlight.text.fragment.prefix.length=5
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 59.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/entity/QueryContext.java

         * Processes special query prefixes (allinurl:, allintitle:) and initializes
         * request-scoped attributes for highlighting and field logging.
         * @param queryString The query string to process.
         * @param isQuery Whether this is a search query (enables highlighting and logging).
         */
        @SuppressWarnings("unchecked")
        public QueryContext(final String queryString, final boolean isQuery) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Aug 19 14:09:36 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  5. MIGRATION.md

    | Schema Fields | Define in crawl configuration or use default fields |
    | RequestHandlers | Use Fess JSON API with parameters |
    | Facet Fields | Configure in Fess search settings |
    | Highlighting | Built-in in Fess search results |
    
    ---
    
    ### Other Search Systems
    
    For proprietary or custom search systems:
    
    #### API-Based Migration
    
    **Step 1: Extract Documents**
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 12:40:11 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

            }
    
            /**
             * The list of documents returned in the search results.
             */
            protected List<Map<String, Object>> docs;
            /**
             * Parameters for highlighting search results.
             */
            protected String highlightParams;
            /**
             * The execution time of the search query.
             */
            protected String execTime;
            /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/Constants.java

        /** Text fragments feature identifier. */
        public static final String TEXT_FRAGMENTS = "text_fragments";
    
        /** Text fragment type for query highlighting. */
        public static final String TEXT_FRAGMENT_TYPE_QUERY = "query";
    
        /** Text fragment type for result highlighting. */
        public static final String TEXT_FRAGMENT_TYPE_HIGHLIGHT = "highlight";
    
        /** Crawler statistics key identifier. */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 35.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

            }
    
            /**
             * Sets the highlighting information.
             *
             * @param highlightInfo the highlighting configuration
             * @return this builder for method chaining
             */
            public SearchConditionBuilder highlightInfo(final HighlightInfo highlightInfo) {
                this.highlightInfo = highlightInfo;
                return this;
            }
    
            /**
    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)
  9. 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)
  10. src/test/java/org/codelibs/fess/entity/SearchRequestParamsTest.java

            Map<String, String[]> conditions = new HashMap<>();
            String[] languages = new String[0];
            GeoInfo geoInfo = null;
            FacetInfo facetInfo = null;
            HighlightInfo highlightInfo = null;
            String sort = "";
            int startPosition = 0;
            int pageSize = 10;
            int offset = 0;
            String[] extraQueries = new String[0];
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 26.5K bytes
    - Click Count (0)
Back to Top