-->
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: hibernate search filter by tags
PostPosted: Sat Nov 09, 2013 7:55 pm 
Newbie

Joined: Sat Nov 09, 2013 7:53 pm
Posts: 3
Hi,

I'm needing to filter a search for images using tags.

For example, a search for the museum, house, art and sea return images with at least three of the four tags or 75% of these tags.

I can do this with filters or faceting of hibernate search?


Top
 Profile  
 
 Post subject: Re: hibernate search filter by tags
PostPosted: Mon Nov 11, 2013 6:42 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Filtering by tags is easy, and a great example to apply a custom Filter
http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#query-filter

To match "3 out of 4" filters is slightly more complex as it's a very unusual request, but I think once you've created a filter implementation to filter a single tag, you could create a Filter implementation which uses the tag filters and counts how many of its child filters are matching.

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


Top
 Profile  
 
 Post subject: Re: hibernate search filter by tags
PostPosted: Mon Nov 18, 2013 1:50 pm 
Newbie

Joined: Sat Nov 09, 2013 7:53 pm
Posts: 3
Hi Sanne,

thank you for the information.


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.