Re: Creating an index from an XML file using Lucene in Java

2008-07-28 Thread syedfa
indexWriter.addDocument(doc); >> } >> >> Does it also matter where in the if/else if clauses I mention the >> "SCENE-COMMENTARY" tag? ie. should I mention it first? last? or does >> the order matter? >> >

Re: Creating an index from an XML file using Lucene in Java

2008-07-28 Thread syedfa
mention the >> "SCENE-COMMENTARY" tag? ie. should I mention it first? last? or does >> the order matter? >> >> Just wondering. >> Thanks again for your prompt reply. >> Sincerely; >> Fayyaz >> >> P.S. This is actually a personal project, as I ha

Re: Creating an index from an XML file using Lucene in Java

2008-07-28 Thread syedfa
>> Does it also matter where in the if/else if clauses I mention the >> "SCENE-COMMENTARY" tag? ie. should I mention it first? last? or does >> the order matter? >> >> Just wondering. >> Thanks again for your promp

Re: Creating an index from an XML file using Lucene in Java

2008-07-28 Thread Karsten F.
ly a personal project, as I have developed an interest > in Information Retrieval and simply wanted to work on a creative project > to help me develop my skills. :-) > -- View this message in context: http://www.nabble.com/Creating-an-index-from-an-XML-file-using-Lucene-in-Java-tp18678

Re: Creating an index from an XML file using Lucene in Java

2008-07-27 Thread syedfa
t; > Karsten > > p.s. is this a homework? > -- View this message in context: http://www.nabble.com/Creating-an-index-from-an-XML-file-using-Lucene-in-Java-tp18678779p18682150.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --

Re: Creating an index from an XML file using Lucene in Java

2008-07-27 Thread Karsten F.
the speech elements are disjunctive, you could use the same Element for generate document (start-tag) and adding document to index (close-tag). Best regards Karsten p.s. is this a homework? -- View this message in context: http://www.nabble.com/Creating-an-index-from-an-XML-fi

Creating an index from an XML file using Lucene in Java

2008-07-27 Thread syedfa
(qName.equals("SPEECH")){ doc=new Document(); } elementBuffer.setLength(0); //attributeMap.clear(); if(atts.getLength()>0){ attributeMap=new HashMap(); for(int