> On Sun, Mar 2, 2025 at 12:21 AM Daniel Cerqueira <dan.l...@lispclub.com>
> wrote:
>
>> I have this lucene index files, in a directory:
>>
>> ```
>> $ ls
>> _1p.fdt  _1p.fdx  _1p.fnm  _1p_Lucene41_0.doc  _1p_Lucene41_0.pos
>> _1p_Lucene41_0.tim  _1p_Lucene41_0.tip  _1p.nvd  _1p.nvm  _1p.si
>> segments_1  segments.gen  write.lock
>> ```
>>
>>  - How can I know which is the version of this lucene index?
>>  - Which codec does it uses?
>>  - What command line do I use (in a terminal) to create a lucene index
>>   with the same version as the files above?
>>
>> Cheers.

Mikhail Khludnev <m...@apache.org> writes:

> Hi Daniel.
> Giving >Lucene41< my bet it's written by 4.1..4.9 version.
> Presumably you may get 4.9 (a decade old, heh) and invoke
> https://lucene.apache.org/core/4_9_0/demo/overview-summary.html#Searching_Files
>
> Or write a snippet of code, which opens a Directory\IndexReader and then
> print it to console that should answer your questions.

Hi Mikhail.

My goal with lucene software is not to use it for programming, I just
want to create a lucene index for a file, for it to be used by my spell
and grammar checker.

Lucene 41, a decade old.... I am tosted.

What I really need is a `java` command line, such as `java -cp
/usr/share/java/apache-lucene/lucene-core-10.1.0.jar:/usr/share/java/apache-lucene/lucene-demo-10.1.0.jar:/usr/share/java/apache-lucene/lucene-analysis-common-10.1.0.jar
org.apache.lucene.demo.IndexFiles -index . -docs n-gram5_utf8.txt` to
create the index of the lucene version above, and be done with it.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to