search returns always the first indexed name

2007-08-22 Thread Amit
Hi I am using lucene to index xml. I have already managed to index the elements. I am indexing the element of xml which have multiple elements in a document. The code is as follows Directory directory = new RAMDirectory(); Analyzer analyzer = new StandardAnalyzer(); Rules.mainnn

RE: search returns always the first indexed name

2007-08-22 Thread Ard Schrijvers
Use getValues("name"), see http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/document/Document.html#getValues(java.lang.String) Regards Ard Hi I am using lucene to index xml. I have already managed to index the elements. I am indexing the element of xml w