All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scriptella.driver.lucene.package.html Maven / Gradle / Ivy

The newest version!

Lucene Driver for Scriptella.

This driver allows to search through Lucene v.2.x compatible indexed data.

Lucene scripting elements are implicit subclasses of Query base classe.

General information

Driver class:scriptella.driver.lucene.Driver
Runtime dependencies:lucene-core.jar

Driver Specific Properties

Name Description Required
fields List of comma-separated fields to be searched No, the Lucene default field 'contents' is used.
useMultiFieldQueryParser whether MultiFieldQueryParser or QueryParser to be used No, default value is false.
useLowercaseExpandedTerms whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not No, default value is true.

Note: if MultiFieldQueryParser is used instead of QueryParser then all the query's terms must appear, but it doesn't matter in what fields they appear.

Example

    <connection id="search" driver="lucene" url="file://PATH_TO_YOUR_LUCENE_INDEX">
        fields=default_field
    </connection>
    <connection id="out" driver="text" url="tst://testfile"/>
    <query id="search">
        title:script luc*e
        <script connection-id="out">$rownum+'. '+$title+' : '+$default_field</script>
    </query>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy