Add Java dependency for search module to Gradle
Version 2.2.0 of Lucene should be the correct version
⚠️ Modules were not tested after upgrade
This commit is contained in:
parent
aea04da690
commit
9e2bf074b7
4 changed files with 11 additions and 9 deletions
|
@ -26,13 +26,13 @@
|
||||||
/**
|
/**
|
||||||
* @fileoverview Fields and methods of the helma.Search class
|
* @fileoverview Fields and methods of the helma.Search class
|
||||||
* <br /><br />
|
* <br /><br />
|
||||||
* To use this optional module, its repository needs to be added to the
|
* To use this optional module, its repository needs to be added to the
|
||||||
* application, for example by calling app.addRepository('modules/helma/Search.js')
|
* application, for example by calling app.addRepository('modules/helma/Search.js')
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// take care of any dependencies
|
// take care of any dependencies
|
||||||
app.addRepository('modules/helma/lucene-core.jar');
|
app.addRepository('modules/helma/lucene-core-2.2.0.jar');
|
||||||
app.addRepository('modules/helma/lucene-analyzers.jar');
|
app.addRepository('modules/helma/lucene-analyzers-2.2.0.jar');
|
||||||
|
|
||||||
|
|
||||||
if (!global.helma) {
|
if (!global.helma) {
|
||||||
|
@ -47,7 +47,7 @@ if (!global.helma) {
|
||||||
* creating a fulltext search index based on Apache Lucene.
|
* creating a fulltext search index based on Apache Lucene.
|
||||||
* @returns A newly created instance of this prototype.
|
* @returns A newly created instance of this prototype.
|
||||||
* @constructor
|
* @constructor
|
||||||
* @author Robert Gaggl <robert@nomatic.org>
|
* @author Robert Gaggl <robert@nomatic.org>
|
||||||
*/
|
*/
|
||||||
helma.Search = function() {
|
helma.Search = function() {
|
||||||
try {
|
try {
|
||||||
|
@ -309,7 +309,7 @@ helma.Search.Index = function(directory, analyzer) {
|
||||||
this.getAnalyzer = function() {
|
this.getAnalyzer = function() {
|
||||||
return analyzer;
|
return analyzer;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a searcher for querying this index.
|
* Returns a searcher for querying this index.
|
||||||
* @returns A searcher useable for querying the index.
|
* @returns A searcher useable for querying the index.
|
||||||
|
@ -318,7 +318,7 @@ helma.Search.Index = function(directory, analyzer) {
|
||||||
this.getSearcher = function() {
|
this.getSearcher = function() {
|
||||||
return new helma.Search.Searcher(this);
|
return new helma.Search.Searcher(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @ignore */
|
/** @ignore */
|
||||||
this.toString = function() {
|
this.toString = function() {
|
||||||
return ("[Lucene Index " + directory + "]");
|
return ("[Lucene Index " + directory + "]");
|
||||||
|
@ -773,7 +773,7 @@ helma.Search.HitCollection = function(hits) {
|
||||||
this.length = function() {
|
this.length = function() {
|
||||||
return this.size();
|
return this.size();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes a provided function once per hit.
|
* Executes a provided function once per hit.
|
||||||
* @param {Function} fun Function to execute for each element
|
* @param {Function} fun Function to execute for each element
|
||||||
|
@ -793,7 +793,7 @@ helma.Search.HitCollection = function(hits) {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1308,7 +1308,7 @@ helma.Search.Document.Field = function(name, value, options) {
|
||||||
var store = pkg.Store.YES;
|
var store = pkg.Store.YES;
|
||||||
var index = pkg.Index.TOKENIZED;
|
var index = pkg.Index.TOKENIZED;
|
||||||
var termVector = pkg.TermVector.NO;
|
var termVector = pkg.TermVector.NO;
|
||||||
|
|
||||||
var opt;
|
var opt;
|
||||||
if (options != null) {
|
if (options != null) {
|
||||||
if (options.store != null) {
|
if (options.store != null) {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
dependencies {
|
dependencies {
|
||||||
runtime 'ch.ethz.ganymed:ganymed-ssh2:build208'
|
runtime 'ch.ethz.ganymed:ganymed-ssh2:build208'
|
||||||
runtime 'net.sourceforge.jexcelapi:jxl:2.5.7'
|
runtime 'net.sourceforge.jexcelapi:jxl:2.5.7'
|
||||||
|
runtime 'org.apache.lucene:lucene-analyzers:2.2.0'
|
||||||
|
runtime 'org.apache.lucene:lucene-core:2.2.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
task deps(type: Copy) {
|
task deps(type: Copy) {
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue