Hi Hardy,
I'm using JAXB for my XML files/objects so marshall/unmarshall is not a problem. But I would like to create new lucene fields based on unmarshalled xml file, unfortunately in the Analyzer I see only plain string token.
There is any other approach for this instead of using analyzer? Or How can I add custom fields from Analyzer.
In the end if I will have some xml like:
Code:
<doc>
<field name="age">65</field>
</doc>
I would like to find it by using lucene search query like:
Code:
age:[60 TO 70]
So for this I will need to create from xml the new Field named
age with value
65.
Please correct me if I'm wrong.
thanks for your help,
Dima