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.  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Wed Jul 25, 2007 3:17 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
Yes, Luke display always "1.0" but @Boost works !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 3:18 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
Yes, in Luke, "1.0" is displayed but @Boost works !


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 4:15 am 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
Do you think it's a problem in Luke or in indexes ?

The other problem is that indexes are replaced :S


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 12:50 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
fabreax wrote:
Do you think it's a problem in Luke or in indexes ?

If boost is correctly used on query results, then yes it's a Luke issue.

fabreax wrote:
The other problem is that indexes are replaced :S

I don't understand.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 12:53 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
emmanuel wrote:
fabreax wrote:
The other problem is that indexes are replaced :S

I don't understand.


It was another question in this post.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 29, 2007 5:29 am 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
fabreax wrote:
I have a little problem ...

I have a field :
Code:
@Field(index=Index.TOKENIZED, store=Store.YES)
@Transient
@Boost(0.5f) // indexation moitie moins importante que celle des autres champs
private String pleinTexte;


First of all, I don't see the boost factor in lucene indexes :
Image
(1.0 displayed).

Then, I would like to have the value in my indexes but not in database.
In the beginning, I deleted the line
Code:
<property name="pleinTexte" column="PleinTexte" />

in my Mapping.hbm.xml and I deleted setPleinTexte and getPleinTexte methods.

It works, but when I insert a second object, the field documents.pleinText is updated, not added.

The only solution to have 2 different values for 2 different objects is to keep the line in Mapping.hbm.xml (with or without @Transient, there are the 2 values in database). But if I keep the line ... I have values in database :S


I don't know what is the solution. I thought that to remove database values, we must remove the line in Mapping.hbm.xml and add @Transient annotation, but it changed index behaviour :S

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 30, 2007 3:49 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
if you've a minimal (2 or 3 classes) reproducible testcase, then open a jira issue and attach it. I don't see how what you describe can happen

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 01, 2007 5:32 am 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
Hum, I changed my model, so I can't make a test case.

I think there is a problem when we use IndexedEmbedded but I'm not sure, so ... we will wait to see if anybody see the problem.

Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page Previous  1, 2

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.