-->
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.  [ 5 posts ] 
Author Message
 Post subject: how to replace the @indexed ?
PostPosted: Tue Dec 13, 2011 10:15 am 
Newbie

Joined: Mon Sep 19, 2011 5:05 am
Posts: 14
Hi All experts,
how I can change the way search Hibernate entities indexed @ Indexed? and modify it using non-XML files, but rather due to selection rules indexed entities?
my cares to ease the configuration by setting up some kind of rules that replaces the @ indexed
Thx for All .


Top
 Profile  
 
 Post subject: Re: how to replace the @indexed ?
PostPosted: Wed Dec 14, 2011 8:54 am 
Hibernate Team
Hibernate Team

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

Could you clarify your question. I have no idea what you are asking. Maybe an example would help?

--Hardy


Top
 Profile  
 
 Post subject: Re: how to replace the @indexed ?
PostPosted: Wed Dec 14, 2011 10:20 am 
Newbie

Joined: Mon Sep 19, 2011 5:05 am
Posts: 14
As we know , we have to way to indicate if a entity will be indexed or not ; with the annotation @Indexed or also with a XML file.
Now , i would like to know , if i can implement a other way to indicate the indexed entity ? programmatically ?
Thx :)


Top
 Profile  
 
 Post subject: Re: how to replace the @indexed ?
PostPosted: Wed Dec 14, 2011 10:32 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Quote:
As we know , we have to way to indicate if a entity will be indexed or not ; with the annotation @Indexed or also with a XML file.

that's only partly right. Obviously you can use annotation, but there is not xml configuration for Hibernate Search.

Quote:
Now , i would like to know , if i can implement a other way to indicate the indexed entity ? programmatically ?
Thx :)

Yes, there is a programmatic API. Just refer to the online docs for more information and examples - http://docs.jboss.org/hibernate/stable/ ... ammaticapi
The entry point is SearchMapping.

--Hardy


Top
 Profile  
 
 Post subject: Re: how to replace the @indexed ?
PostPosted: Wed Dec 14, 2011 10:46 am 
Newbie

Joined: Mon Sep 19, 2011 5:05 am
Posts: 14
thx u very much Hardy.


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