Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Lucene - The First Parameter of the Index Writer

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am constructing a web site. I am learning the Lucene so that I can use it to search the database. I started with reading the "Introdution In Text Indexing with Jakarta Apache Lucene" at http://www.onjava.com/pub/a/onjava/2003/01/15/lucene.html
and in the example given, it looks that I have to specify a directory for the first parameter of the IndexWriter (see below).

I have a record created and stored in a table in my database whenever a user submits his/her inputs. And I want to index that record. What should be the indexDir in my case? Should I follow the above example and use "java.io.tmpdir"? I sort of doubt it. Please advise.
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic