How to index a XML file with Lucene

109 Views Asked by At

how the create lucene index following xml file with any sample code. so I can search for cloth name as well as its color and sale type.

<cloths>
   <cloth color="red">shirt</cloth>
   <cloth color="green" sale="Y">shirt</cloth>
   <cloth color="orange">jeans</cloth>
</cloths>

Is there a way to use Lucene to do this?

0

There are 0 best solutions below