-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Is TermVector actually available in Hibernate Search 3.1.0GA
PostPosted: Fri Jan 09, 2009 6:58 pm 
Newbie

Joined: Fri Jan 09, 2009 6:30 pm
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2009 5:01 am 
Newbie

Joined: Fri Jan 09, 2009 6:30 pm
Posts: 2
Duh! Occam's razor. I'm dyslexic: 3.0.1.GA != 3.1.0.GA.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2009 11:27 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
so you were using the old version, or do you still need some help?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.