Term(String, BufferedReader) constructor ?

2007-12-01 Thread Cauvery Developer
Hi, If we are able to create a Field using a BufferedReader, why not do the same for the Term as well ? I am trying to implement Lucene for a small set of source files, where the entire source is the value for a Field named 'source'. Creating the field was easy because there is a constructor for F

Re: Document.getField(field).stringValue() behavior

2007-12-01 Thread Cauvery Developer
aaarghhh You are right, Michael. Apologies for the stupid question. Regards, Nags. On Dec 1, 2007 3:07 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: > > If you call .stringValue() you should get just that string? > > (You are now calling .toString()). >

Re: setRAMBufferSizeMB and DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter !

2007-12-01 Thread Cauvery Developer
t; They are not present in 2.2. > > You can pull the nightly trunk build JAR from here: > > > http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/290/artifact/artifacts/ > > (that's this AM's build). But beware that it could have bugs (it's not > yet &g

setRAMBufferSizeMB and DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter !

2007-12-01 Thread Cauvery Developer
Hi, I am having lucene-core-2.2.0.jar in my CLASSPATH. I do NOT see the method setRAMBufferSizeMB method and the field DEFAULT_RAM_BUFFER_SIZE_MB missing from IndexWriter class. I looked into the source also and sure enough, these items do not exist. Is this a download issue ? Regards, Nags.

Document.getField(field).stringValue() behavior

2007-12-01 Thread Cauvery Developer
Hi, I am working with demo and I am displaying the search results as : Hits ht = is.search(q); for (int i = 0; i <= ht.length(); i++) { Document hitDoc = ht.doc(i); queryResult.add(hitDoc.getField("name").toString() + "~" + hitDoc.getField("date").toString()); System.out.println(que