Wednesday, June 1, 2005 08:02 PM
Lucene supports text format. Which means anything you can pull text from, you can index in Lucene, you just have to pull the text first. You probably would not want to place the XML directly into the index, but parse it first. You can write some code yourself or find some on the web. Here are 2 quick examples I found http://www-106.ibm.com/developerworks/java/library/j-lucene/ or http://lucene.apache.org/java/docs/contributions.html. This is common so there are probably a lot of other libraries people have already written to extract the text.