How to add custom attributes on FieldInfo using Lucene 5.2.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to add custom attributes on FieldInfo using Lucene 5.2.1

Bingtao Yin
Hello,

On Lucene 5.2.1, I want to add some attributes on some fields, such as
marking a StringField as unique, which is defined by user when indexing. I
find there is a attributes map in FieldInfo's ctor, but can't pass any
attributes to the map.

Any ideas to implement this? Thanks.