• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Lucene - The First Parameter of the Index Writer

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic