Adding attribute to index

2008-04-02 Thread Nitasha Walia (niwalia)
Hi, I am a new user of Java Lucene and need to learn how to add a new attribute, such that, given a database of emails, containing sender information, searching for a keyword, results in 1. The sender of the email 2. The email. I am using Lucene-2.3.1, and don't know where to start in the hu

Re: Adding attribute to index

2008-04-02 Thread Donna L Gresh
This is "fast and loose" code (from my head; check the syntax). I *highly* recommend you get a copy of the book Lucene in Action; it will really help. To create the index, add a document with two fields; one for the sender and one for the email text. IndexWriter indexWriter = new IndexWriter(.

Re: Adding attribute to index

2008-04-02 Thread Michael Wechner
Nitasha Walia (niwalia) wrote: Hi, I am a new user of Java Lucene and need to learn how to add a new attribute, such that, given a database of emails, containing sender information, searching for a keyword, results in what kind of database do you use to store your emails? I am asking bec

RE: Adding attribute to index

2008-04-03 Thread Nitasha Walia (niwalia)
Thanks !! -Original Message- From: Donna L Gresh [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 11:52 AM To: java-user@lucene.apache.org Subject: Re: Adding attribute to index This is "fast and loose" code (from my head; check the syntax). I *highly* recommend you