-->
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.  [ 10 posts ] 
Author Message
 Post subject: Taxonomy Trees using Hibernate Search
PostPosted: Mon Apr 28, 2008 10:29 am 
Pro
Pro

Joined: Wed Oct 03, 2007 2:31 pm
Posts: 205
Hi

Not sure if this is the right place to ask this question...so apologies if i've got the wrong place.

I was wondering whether any one out there knows how to build taxonomy trees for example something like the below:

Region [274]
South Asia [125]
Bangladesh [23]
India [50]


I have seen commercial tools that can develop taxonomy trees (Verity) but I haven't seen any open source tools...not sure if you can do it with Lucene.

I was wondering if there is any scope to do something like this with Hibernate Search.

P.S. Looking forward to Hibernate Search In Action!

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 28, 2008 3:19 pm 
Hibernate Team
Hibernate Team

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

I think what you are after is also known as faceted search even though there are differences in these two concepts. Either way, you can implement this kind of functionality with Lucene. In fact Solr - Apaches open source enterprise search server - is build on Lucene and offered faceted searches. That does not mean though that you cannot do this type of functionality with Hibernate Search. In fact I have done something like this in my previous project. You will basically have to write some sort of home grown facet search.

There is a Jira issue regarding faceted search - http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-132 - but I believe it was decided that faceted search is not so relevant for Hibernate Search and a 'MoreLikeThis' functionality is more important.

Hope this helps.

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 8:23 am 
Pro
Pro

Joined: Wed Oct 03, 2007 2:31 pm
Posts: 205
Hi there

Thanks for your reply. I want to use Hibernate Search for developing the search part of the project. Is it possible if you perhaps give me some pointers on how to develop a facet search? I will in the mean time look at Lucene.


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 10:41 am 
Hibernate Team
Hibernate Team

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

one of of doing this would be to utilize Hibernate Search's filter capabilties - http://www.hibernate.org/hib_docs/search/reference/en/html_single/#d0e1982. One could eg cache the hits per categories in a list of BitSets. Then at query time you can intersect the category BitSets with the search result BitSet. Depending on how often you update the index you would have to update the caches at certain times. This all depends really on the exact use case.

There are of course other approaches to this problem. Have a look at the Lucene mailing lists.

--Hardy


Top
 Profile  
 
 Post subject: Re: Taxonomy Trees using Hibernate Search
PostPosted: Sat Nov 21, 2009 5:05 pm 
Newbie

Joined: Wed Sep 07, 2005 4:06 am
Posts: 3
Is it possible you could reconsider adding facet functionality in hibernate-search. Or at least give some examples how to do it easy?
I found it quite a nice feature of Solr. Very nice for taxonomy , auto-complete etc.


Top
 Profile  
 
 Post subject: Re: Taxonomy Trees using Hibernate Search
PostPosted: Wed Nov 25, 2009 6:44 am 
Hibernate Team
Hibernate Team

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

I am planning to pick this up again soon. As soon as I have some time. I thought about taking some ideas from here - http://sujitpal.blogspot.com/2007/04/lu ... -with.html
Maybe we can extend FulltextQuery to take some sort of FacetCounter object. Not really sure yet about the details.

--Hardy


Top
 Profile  
 
 Post subject: Re: Taxonomy Trees using Hibernate Search
PostPosted: Wed Nov 25, 2009 6:59 am 
Newbie

Joined: Wed Sep 07, 2005 4:06 am
Posts: 3
Would it be possible just to integrate Solr api for facets? They implemented it quite nice. (functional and performance wise)


Top
 Profile  
 
 Post subject: Re: Taxonomy Trees using Hibernate Search
PostPosted: Wed Nov 25, 2009 7:14 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Solr and Hibernate Search are really two different things with different strengths and weaknesses. Whatever we do needs to fit into the Hibernate Search way of doing things.
This said, feel free to elaborate on how you think the faceted search API should look like.

--Hardy


Top
 Profile  
 
 Post subject: Re: Taxonomy Trees using Hibernate Search
PostPosted: Sat Nov 28, 2009 1:33 pm 
Pro
Pro

Joined: Wed Oct 03, 2007 2:31 pm
Posts: 205
Hi Hardy

I did something based on the blog with Hibernate Search, I'd be happy to share this with you. We've got our next search requirements through and facet search is on the agenda. It would be nice to have some sort of API integrated with Hibernate Search. Just a thought.


Cheers
Amin


Top
 Profile  
 
 Post subject: Re: Taxonomy Trees using Hibernate Search
PostPosted: Wed Dec 02, 2009 6:58 pm 
Hibernate Team
Hibernate Team

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

I would love to discuss what you came up with. You can post your idea here or send something to hibernate-dev or directly to me.

--Hardy


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