1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Js: Update references to mobile lib; change Add_core to Add_baselib

This commit is contained in:
gnosygnu
2017-03-18 08:06:13 -04:00
parent a4380b6d48
commit 5967c75433
6 changed files with 18 additions and 13 deletions

View File

@@ -3,11 +3,11 @@
<classpathentry kind="src" path="src"/>
<classpathentry combineaccessrules="false" kind="src" path="/100_core"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/6.4.2/lucene-analyzers-common-6.4.2.jar"/>
<classpathentry kind="lib" path="lib/6.4.2/lucene-core-6.4.2.jar"/>
<classpathentry kind="lib" path="lib/6.4.2/lucene-highlighter-6.4.2.jar"/>
<classpathentry kind="lib" path="lib/6.4.2/lucene-memory-6.4.2.jar"/>
<classpathentry kind="lib" path="lib/6.4.2/lucene-queryparser-6.4.2.jar"/>
<classpathentry kind="lib" path="lib/6.4.2/lucene-queries-6.4.2.jar"/>
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-analyzers-common-5.3.0-mobile-2.jar"/>
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-core-5.3.0-mobile-2.jar"/>
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-highlighter-5.3.0-mobile-2.jar"/>
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-memory-5.3.0-mobile-2.jar"/>
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-queries-5.3.0-mobile-2.jar"/>
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-queryparser-5.3.0-mobile-2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -71,7 +71,12 @@ public class Gflucene_highlighter_mgr {
// get token stream
String text = doc_data.body;
TokenStream tokenStream = analyzer.tokenStream("body", text);
TokenStream tokenStream = null;
try {
tokenStream = analyzer.tokenStream("body", text);
} catch (IOException e) {
throw Err_.new_exc(e, "lucene_index", "failed to get stream", "query", qry_data.query);
}
// get fragments from stream
TextFragment[] frags;

View File

@@ -16,8 +16,8 @@ Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
package gplx.gflucene.indexers; import gplx.*; import gplx.gflucene.*;
import gplx.gflucene.core.*;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.lukhnos.portmobile.file.Path;
import org.lukhnos.portmobile.file.Paths;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;

View File

@@ -17,8 +17,8 @@ package gplx.gflucene.searchers; import gplx.*; import gplx.gflucene.*;
import gplx.gflucene.core.*;
import gplx.gflucene.analyzers.*;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.lukhnos.portmobile.file.Path;
import org.lukhnos.portmobile.file.Paths;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.document.Document;