Re: Example question

2006-09-17 Thread Chris Hostetter
: lucene-2.0.0/src/demo/org/apache/lucene/demo/SearchFiles.java (line 147) : : I am not sure where they are getting the "path". How are they inserting it : into the index? : : Basically, I am trying to index the contents of the files, and the : filesystem written date. Therefore, I started to cre

Re: Example question

2006-09-17 Thread Mag Gam
Sorry for the confusion all. The code i am talking about is, the lucene-2.0 API Document doc = hits.doc(i); String path = doc.get("path"); lucene-2.0.0/src/demo/org/apache/lucene/demo/SearchFiles.java (line 147) I am not sure where they are getting the "path". How are they inserting it into t

Re: Example question

2006-09-16 Thread Chris Hostetter
: No, I am talking about the Lucene Examples (not from LIA). you're going to need to be more specific about what you mean ... what is the exact location of the file where you are seeing the "Example" in question? ... is it a URL? is it a file from a release you downloaded? what is the URL of the

Re: Example question

2006-09-16 Thread Mag Gam
No, I am talking about the Lucene Examples (not from LIA). On 9/16/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: Are you talking about the LIA example code? The sample data gets indexed using the Ant task, which automatically adds a "path" field for every document. You'll see the document h

Re: Example question

2006-09-16 Thread Erik Hatcher
Are you talking about the LIA example code? The sample data gets indexed using the Ant task, which automatically adds a "path" field for every document. You'll see the document handler mentioned in the LIA build.xml file as well as the code for it in the code download. Erik

Example question

2006-09-16 Thread Mag Gam
While looking at the example's Index and Search code, I have noticed in the search, there is a : out.println (doc.get ("path")); I am not sure how is "path" is getting into the index. If you take a look at the Index code, there is no mention of "path". My question are: what is this path (I know