Skip to content

Commit 3f20aec

Browse files
cancerberoSgxjoeferner
authored andcommitted
lucene examples update ucene , deps updated, readme install on windows tip
1 parent c33f7cc commit 3f20aec

10 files changed

+1994
-1014
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ npm install -g node-gyp
4242

4343
If you get `D9025` warnings and `C1083` errors when looking for `.sln` or `.h` files, be sure you've got the `node-gyp`'s dependencies, [as explained here](https://github.com/joeferner/node-java#installation).
4444

45+
Alternatively, Windows users can easily install all required tools by running the following command in PowerShell as administrator. For more information see [windows-build-tools project page](https://github.com/felixrieseberg/windows-build-tools):
46+
47+
```sh
48+
npm install --global --production windows-build-tools
49+
```
50+
4551
### Installation ARM (Raspberry Pi)
4652

4753
```bash

examples/lucene/example.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env node
22

33
var java = require("../../");
4-
java.classpath.push("lucene-core-6.0.0.jar");
5-
java.classpath.push("lucene-analyzers-common-6.0.0.jar");
6-
java.classpath.push("lucene-queryparser-6.0.0.jar");
4+
java.classpath.push("./lucene-lib/lucene-core-7.4.0.jar");
5+
java.classpath.push("./lucene-lib/lucene-analyzers-common-7.4.0.jar");
6+
java.classpath.push("./lucene-lib/lucene-queryparser-7.4.0.jar");
77

88

99
var idx = java.newInstanceSync("org.apache.lucene.store.RAMDirectory");
1010
var analyzer = java.newInstanceSync("org.apache.lucene.analysis.standard.StandardAnalyzer");
1111
var writerConfig = java.newInstanceSync("org.apache.lucene.index.IndexWriterConfig", analyzer);
1212
var writer = java.newInstanceSync("org.apache.lucene.index.IndexWriter", idx, writerConfig);
13-
var queryParser = java.newInstanceSync("org.apache.lucene.queryparser.analyzing.AnalyzingQueryParser", "content", analyzer);
13+
var queryParser = java.newInstanceSync("org.apache.lucene.queryparser.classic.QueryParser", "content", analyzer);
1414

1515
writer.addDocumentSync(createDocument("Theodore Roosevelt",
1616
"It behooves every man to remember that the work of the " +
-1.43 MB
Binary file not shown.
Binary file not shown.

examples/lucene/lucene-core-6.0.0.jar

-2.29 MB
Binary file not shown.

examples/lucene/lucene-core-7.4.0.jar

2.79 MB
Binary file not shown.
-393 KB
Binary file not shown.
373 KB
Binary file not shown.

0 commit comments

Comments
 (0)