Class | Description |
---|---|
Driver |
Scriptella Driver for Lucene Search Engine.
|
LuceneConnection |
Represents a connection to a Lucene index.
|
LuceneQuery |
Query for Lucene indexed data.
|
Exception | Description |
---|---|
LuceneProviderException |
Thrown to indicate Lucene failure.
|
This driver allows to search through Lucene v.2.x compatible indexed data.
Lucene scripting elements are implicit subclasses of Query base classe.
Driver class: | scriptella.driver.lucene.Driver |
Runtime dependencies: | lucene-core.jar |
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.
<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>
Copyright © Copyright 2006-2019 The Scriptella Project Team.