Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for script (0.04 sec)

  1. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

            // Setup test script engine
            scriptEngineFactory.add("test", testScriptEngine);
    
            // Execute script
            String scriptType = "test";
            String script = "test script content";
            Object result = scriptExecutor.execute(scriptType, script);
    
            // Verify result
            assertEquals("processed: test script content", result);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

            // Test execute method
            String scriptType = "test";
            String script = "test script";
            Object result = jobExecutor.execute(scriptType, script);
            assertEquals("Executed: test test script", result);
    
            // Test with null values
            result = jobExecutor.execute(null, "script");
            assertEquals("Executed: null script", result);
    
            result = jobExecutor.execute("type", null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/job/JobExecutor.java

            // Default constructor
        }
    
        /**
         * Executes a script with the specified script type and content.
         *
         * @param scriptType the type of script to execute
         * @param script the script content to execute
         * @return the result of script execution
         */
        public abstract Object execute(String scriptType, String script);
    
        /**
         * Initiates shutdown of the job executor.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.script.groovy;
    
    import java.util.HashMap;
    import java.util.Map;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.fess.exception.JobProcessingException;
    import org.codelibs.fess.script.AbstractScriptEngine;
    import org.lastaflute.di.core.factory.SingletonLaContainerFactory;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/score/ScoreBooster.java

            this.requestCacheSize = requestCacheSize;
        }
    
        /**
         * Sets the script language.
         * @param scriptLang The script language.
         */
        public void setScriptLang(final String scriptLang) {
            this.scriptLang = scriptLang;
        }
    
        /**
         * Sets the script code.
         * @param scriptCode The script code.
         */
        public void setScriptCode(final String scriptCode) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java

                    logger.debug("Starting Job {}. scriptType: {}, script: {}", id, scriptType, script);
                } else if (scheduledJob.isLoggingEnabled() && logger.isInfoEnabled()) {
                    logger.info("Starting Job {}.", id);
                }
    
                final Object ret = jobExecutor.execute(Constants.DEFAULT_SCRIPT, script);
                if (ret == null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java

    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.codelibs.fess.util.ComponentUtil;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.script.Script;
    import org.opensearch.script.ScriptType;
    
    public class UpdateLabelJobTest extends UnitFessTestCase {
    
        private UpdateLabelJob updateLabelJob;
    
        @Override
        public void setUp() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            }
        }
    
        /**
         * Evaluates a template script using the specified script engine and parameters.
         *
         * @param scriptType the type of script engine to use
         * @param template the template script to evaluate
         * @param paramMap the parameters to pass to the script
         * @return the result of script evaluation, or empty string if template is empty
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/LanguageHelper.java

            this.detector = detector;
        }
    
        /**
         * Creates a script for updating a document with language information.
         *
         * @param doc The document.
         * @param code The script code.
         * @return The script.
         */
        public Script createScript(final Map<String, Object> doc, final String code) {
            final StringBuilder buf = new StringBuilder(100);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/job/PythonJob.java

        public PythonJob() {
            super();
        }
    
        /** The Python script filename to execute */
        protected String filename;
    
        /** List of command-line arguments to pass to the Python script */
        protected List<String> argList = new ArrayList<>();
    
        /**
         * Sets the Python script filename to execute.
         *
         * @param filename the Python script filename (relative to WEB-INF/env/python/resources)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top