Re: IndexReader getFieldNames()

2008-03-19 Thread varun sood
> iter.hasNext();) { >String fieldName = (String)iter.next(); > } > > Your code creates iterator each time when you call next() > Also, if your method out.print() gets String as parameter, casting is > redundant > > Regards > > > On Wed, Mar 19, 2008 at 6:26

Re: IndexReader getFieldNames()

2008-03-19 Thread varun sood
Shai Erera <[EMAIL PROTECTED]> wrote: > Can you give an example of the output? > What does out.print() do? Does it print spaces between records on new-lines? > > > On Wed, Mar 19, 2008 at 3:17 PM, varun sood <[EMAIL PROTECTED]> wrote: > > > Hi All, > > Can

IndexReader getFieldNames()

2008-03-19 Thread varun sood
Hi All, Can someone please guide me on how to use IndexReader's getFieldNames() method properly? I want to get all the filed names in the index. Currently I am getitng it via Document object but that not wt i want. I am implementing the code below and what I get is a very long string of character

Re: IndexReader deleteDocument

2008-03-17 Thread varun sood
ere are other options, but you haven't explianed what you're > trying to accomplish enough to offer any more suggestions. > > Best > Erick > > On Wed, Mar 12, 2008 at 5:44 PM, varun sood <[EMAIL PROTECTED]> wrote: > > > No. I haven't but I will. even tho

Re: IndexReader deleteDocument

2008-03-17 Thread varun sood
ere are other options, but you haven't explianed what you're > trying to accomplish enough to offer any more suggestions. > > Best > Erick > > On Wed, Mar 12, 2008 at 5:44 PM, varun sood <[EMAIL PROTECTED]> wrote: > > > No. I haven't but I will. even though

Re: IndexReader deleteDocument

2008-03-12 Thread varun sood
one making a GWT version > of Luke? I think its in the latest release. > > varun sood wrote: > > Hi, > > I am trying to delete a document without using the hits object. > > What is the unique field in the index that I can use to delete the > document? > > > &g

IndexReader deleteDocument

2008-03-12 Thread varun sood
Hi, I am trying to delete a document without using the hits object. What is the unique field in the index that I can use to delete the document? I am trying to make a web interface where index can be modified, smaller subset of what Luke does but using JSPs and Servlet. to use deleteDocument(int

Re: duplicate results MultiFieldQueryParser

2006-06-07 Thread varun sood
yeah you are right. I was talking about going through the large index and discovering the problem as to where else it have occured and how? But thanks for your tips. I use Luke before and certianly it helped me this time aswell. I found the problem. Its not great Lucene. Its me.. error in underst

Re: duplicate results MultiFieldQueryParser

2006-06-05 Thread varun sood
On 6/5/06, Erick Erickson <[EMAIL PROTECTED]> wrote: A few thoughts... 1> are you sure you only indexed the document once? If you indexed the same data multiple times, you'll have duplicate documents, each of which will have a different Lucene ID (i.e. doc()). Yes.. but I will make sure agai

duplicate results MultiFieldQueryParser

2006-06-05 Thread varun sood
Hi, I am searching two fields at a time and using MultiFieldQueryParser to parse my query (method described in In Action book). I noticed that I am getting duplicate results. The document exists only once in the index structure but in results its showing the same doucment multiple times with same

Retrieving field or Document using document id.

2006-05-09 Thread varun sood
Hi, I have "Doc. Id" of the document stored in the database. Now I want to query database on that "Doc. Id" (which will always return one document). How can I do this? To avoid confusion, I am talking about the "Doc. Id" which Lucene automatically creates for every document and hence is unique fo

Re: Ignoring XML tags when creating an index with Lucene

2006-03-02 Thread varun sood
Hi, You can use SAX2 / DOM parser to parse XML document before submiting it to IndexWriter (Luncene) and select only those tags which you want to index. Its fairly easy to implement XML parser. Hope this helps. Varun ** On 3/2/06, Cian O'Maidin <[EMAIL PROTECTED]> wrote: > > Hi , > >

Re: Relevance Feedback Lucene+Algorithms

2006-02-15 Thread varun sood
pachecon2005/ > > Koji Sekiguchi wrote: > > Please check Grant Ingersoll's presentation at ApacheCon 2005. > > He put out great demo programs for the relevance feedback using Lucene. > > > > Thank you, > > > > Koji > > > > > >>

Relevance Feedback Lucene+Algorithms

2006-02-14 Thread varun sood
Hi, Can anyone share the experience of how to implement Relevance Feedback in Lucene? Can someone suggest me some algorithms and papers which can help me in building an effective Relevance Feedback system? Thanks in advance. Dexter.

Re: Frequency Matrix

2006-02-04 Thread varun sood
: Date: Fri, 3 Feb 2006 13:31:49 -0500 > : From: varun sood <[EMAIL PROTECTED]> > : Reply-To: java-user@lucene.apache.org > : To: java-user@lucene.apache.org > : Subject: Frequency Matrix > : > : Hi, > : I am impelementing Lucene to index my website. I would like to know if &g

Frequency Matrix

2006-02-03 Thread varun sood
Hi, I am impelementing Lucene to index my website. I would like to know if its possible to generate a simple frequency matrix? By frequency matrix I mean, docmuent name on top X-Axis and keywords on left Y-Axis. and the cells of the matrix will contain the frequency of the keyword in a particluar