Hi Deepak,

I see that you are setting the index location directory to the `docs`
folder.
I'd say follow the instructions from
https://lucene.apache.org/core/9_11_0/demo/index.html, and specify the
correct `-docs` directory input which contains Lucene source code.
Inside the github repo: try sending in ./lucene/core/src and don't send in
the `-index` input. It should create a folder on its own in the location
from where you are running the command.
You should see an output like `Indexing to directory ...`

Best,
Gautam Worah.


On Mon, Aug 5, 2024 at 9:35 PM Deepak Goel <deic...@gmail.com> wrote:

> Hello
>
> From the page:
>
> https://lucene.apache.org/core/2_9_4/demo.html#:~:text=First%2C%20you%20should%20download%20the,when%20you%20extracted%20the%20archive
> .
>
> I am trying to run the following command "java
> org.apache.lucene.demo.IndexFiles {full-path-to-lucene}/src":
>
> *java -cp
>
> /home/kali/lucene/lucene-9.11.1/modules/lucene-core-9.11.1.jar:/home/kali/lucene/lucene-9.11.1/modules/lucene-demo-9.11.1.jar
> org.apache.lucene.demo.IndexFiles -index
> /home/kali/lucene/lucene-9.11.1/docs -docs
> /home/kali/lucene/lucene-9.11.1/doc*
>
> The command runs successfully, but I cannot see an index directory.
>
> *...*
>
>
>
>
> *adding
>
> /home/kali/lucene/lucene-9.11.1/docs/analysis/common/deprecated-list.htmladding
> /home/kali/lucene/lucene-9.11.1/docs/analysis/common/help-doc.htmladding
> /home/kali/lucene/lucene-9.11.1/docs/_1m.cfsadding
> /home/kali/lucene/lucene-9.11.1/docs/_1p.cfeIndexed 8771 documents in 9757
> ms*
>
> What could be the problem?
>
> Thank You.
>
>
> Deepak
> "The greatness of a nation can be judged by the way its animals are treated
> - Mahatma Gandhi"
>
> +91 73500 12833
> deic...@gmail.com
>
> LinkedIn: www.linkedin.com/in/deicool
>
> "Plant a Tree, Go Green"
>
> Make In India : http://www.makeinindia.com/home
>

Reply via email to