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?