-->
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.  [ 6 posts ] 
Author Message
 Post subject: Field annotation in Search does not contain term vector
PostPosted: Mon May 19, 2008 11:06 am 
Newbie

Joined: Wed Jan 23, 2008 7:45 am
Posts: 14
Location: Pune,India
Hi ,

I am trying to include term vectors during indexing. This is how my piece of code looks

Code:
@Field(index=Index.TOKENIZED , termVector=Field.TermVector.YES)
  public String getFirstName()
  {
    // TODO Auto-generated method stub
    return super.getFirstName();
  }


Now if you look at the definition of the Field annotation in hibernate_search.jar you'll notice that there is no definition for termVector. Due to this I obviously get a compilation error. I have searched around the web but couldn't find anything concrete. Can anybody please let me know where am I going wrong, or is this a genuine bug?

_________________
Harshal Vaidya


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 11:36 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

Seems it is a bug. The online documentation indicates that in release 3.0.1.GA the @Field annotation accepts a termVector annotation, but the actual code and jar file does not contain this parameter.

The trunk of the Hibernate Search source code has this feature already implemented. I am not quite sure what happened here, but it seems the documentation is out of sync with the code regarding this feature.

But since everything is actually implemented now it is just a question of waiting for the next release.

I will create a Jira issue for this.

--Hardy[/i]


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 11:44 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Jira issue : http://opensource.atlassian.com/project ... SEARCH-198


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 2:36 am 
Newbie

Joined: Wed Jan 23, 2008 7:45 am
Posts: 14
Location: Pune,India
Hardy

Does this mean that till today nobody used the termVector feature? Or is there are temporary workaround?

_________________
Harshal Vaidya


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 4:56 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Nobody used term vector so far.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 4:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
But we use it extensively for Hibernate Search in Action (working on trunk)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.