Lucene index query with javascript

I indexed some data, and now I have the resulting index files. Is there a way to query this index from javascript without using anything other than javascript and lucene index files?

This project allows me to query an index from javascript, but I need solr.

The scenario is that I need to request an index on the client, and I only have javascript and index files available. No internet connection.

Since I do not need advanced search functions such as amplification, synonyms, etc., I am thinking of an alternative solution, where I create my own inverted index instead of working with the lucene index. Something along these lines .

Does that sound like a better idea?

+4
source share
1 answer

To request a lucene index, you will need a lucene jar, if you have a lucne jar, you can write your own code for the query from the index. No internet connection required

0
source

Source: https://habr.com/ru/post/1433611/


All Articles