When indexing, use UnIndexed fields to store this data in your document. org.apache.lucene.document.Field#UnIndexed(String name, String value)
Add the fields using: org.apache.lucene.document.Document.add(Field) After your search, you can get the field value from: Document Hits.doc(int) You can retrieve your store values using String Document.get(String name) HTH, sv On Tue, 27 Apr 2004, Olaia V�zquez S�nchez wrote: > Hello > > > > I have documents in XML in which, for each word, I have 4 positions (top, > down, left and right) that would let me to highlight this word in a jpg > image. I want to index this XML documents and to highlight the results of > the queries in the image, so I need to store this positions for each word > inside the index. > > > > I was searching about how can I use the Token fields to store this > attributes but I didn�t found any example where this fields were used. > > > > Thanks, > > > > Olaia V�zquez > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
