Hi,
Hibernate Search 3.1.0GA, released 04.12.2008 (European notation), has been widely reported as supporting Lucene's term vectors. The support is supposed to be via an attribute on the @Field annotation.
Code:
@Field (termVector = [type])
The actual code I am trying to use is
Code:
@Field(index = org.hibernate.search.annotations.Index.TOKENIZED, termVector = org.hibernate.search.annotations.TermVector.WITH_POSITION_OFFSETS, store = Store.NO)
Both the on-line documentation and the source code indicate the presence of this feature. However, Eclipse 3.4.1 won't recognize the 'termVector' attribute--for that matter, it won't recognize the 'boost' @Field attribute either. (All other published attributes are correctly recognized.) In either case, its 'quick fix' is to change either the 'termVector' or 'boost' attribute to one of { 'analyzer', 'bridge', 'index', 'name', 'store' }.
At least 'boost' has an easy work-around, a la:
Code:
@Boost(1.0f)
Is this an Eclipse configuration issue?
Am I doing something wrong?
Or is a bug in the released Hibernate Search code?
TIA,
Brian