Re: Accessing the "contents" field

2002-03-13 Thread ROSHAN NAVENDRA
doc.add(Field.Text("body", (Reader) new InputStreamReader(is))); > > writer.addDocument(doc); > is.close(); > }; > > writer.close(); > } > } > > >>> [EMAIL PROTECTED] 03/14/02 03:21PM >>> > Make sure that you added

Re: Accessing the "contents" field

2002-03-13 Thread ROSHAN NAVENDRA
IndexWriter(indexPath, new SimpleAnalyzer(), false); for (int i=1; i>> [EMAIL PROTECTED] 03/14/02 03:21PM >>> Make sure that you added it to the index as a stored field, and not just indexed. Look at the Javadoc for Field class to see different field types. Otis --- ROSHAN N

Accessing the "contents" field

2002-03-13 Thread ROSHAN NAVENDRA
Hi, I would like to access the contents field of a document, fo rexample doc(i).get("contents") this should return a String (am i right?) but when I print it out I find that it is a Null. How do I go about accessing the contents of the file Rosh. -- To unsubscribe, e-mail:

Re: search for words separated by spaces

2002-03-13 Thread ROSHAN NAVENDRA
that is an OR >>> [EMAIL PROTECTED] 03/14/02 02:49AM >>> Hello All, Phrase queries work fine for some thing like "I am a programmer". But if I don't use quotes and look for just I am a programmer what is the result set returning? Is it AND of all words or OR? or is it just picking up the firs wor

Re: jdk 1.1.8?

2002-03-12 Thread ROSHAN NAVENDRA
I can answer question 2. .jj files are JavaCC projects. You can download and install JavaCC from the internet (just run a search fo it from Yahoo). Once you install it, simply run the command "javacc x.jj" (from javacc's bin directory) where x.jj is the .jj file you wish to unpack. Thi