node-lucene: (main objective) apache lucene bindings for nodejs (straightforward API, performant thanks to node-java dynamic bindings - no server, process spawning or IPC-like). javap and javap-json : inspect Java AST from .jar and .class. java2js: Research about auto generate TypeScript/JavaScript interfaces and implementations from java .jars and .class
Hello,
After successfully installing and integrating the node-Lucene with firestore. I ran into the following issue
Initializing Query Parser
(node:11267) UnhandledPromiseRejectionWarning: Error: Could not find method "doc(org.apache.lucene.search.ScoreDoc)" on class "class org.apache.lucene.search.IndexSearcher". Possible matches:
public org.apache.lucene.document.Document org.apache.lucene.search.IndexSearcher.doc(int,java.util.Set) throws java.io.IOException
public org.apache.lucene.document.Document org.apache.lucene.search.IndexSearcher.doc(int) throws java.io.IOException
public void org.apache.lucene.search.IndexSearcher.doc(int,org.apache.lucene.index.StoredFieldVisitor) throws java.io.IOException
at IndexSearcher.doc (/usr/host_app/node_modules/node-lucene/dist/src/search/IndexSearcher.js:49:52)
at /usr/host_app/test.js:47:18
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:11267) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11267) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Node Version: v11.10.0
JDK: OpenJDK version "1.8.0_312"
Docker Ubuntu
Please help following is my package.json dependencies list
finally, after 2 days of struggle, I figure out the issue. It was related to a missing jar file. We need to copy Apache Lucene jar files in node-lucene lib folder manually.
Hello, After successfully installing and integrating the node-Lucene with firestore. I ran into the following issue
This is a snippet from my code where it's throwing an error:`
I also tried with following way
But same issue