How to implement nested faceting in BL ?

243 views
Skip to first unread message

Aakash

unread,
May 10, 2013, 3:41:43 PM5/10/13
to blacklight-...@googlegroups.com
Hello,

I have to implement nested structure in facet fields something like "product" and under product is "product versions".
Is this something can be done in BL? If yes how can we do it?

Thanks,

Justin Coyne

unread,
May 13, 2013, 9:57:38 AM5/13/13
to Blacklight Development
I don't know. I know Solr has hierarchical facets, I don't know if Blacklight supports it. 

Justin


--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jonathan Rochkind

unread,
May 13, 2013, 10:55:45 AM5/13/13
to blacklight-...@googlegroups.com
I do not believe Blacklight has built-in any logic to use Solr's
hiearchical facet feature. (Or features?).

I am not myself familiar enough with those feature in Solr to know how
or if it would meet your need.

However, as with everything, Blacklight is intended to be a platform for
you to develop your own app. So almost anything can be done with
Blacklight, if you want to write code to develop a solution in your app,
on top of Blacklight. But you would have to write software to do it. The
first step would be understanding the relevant Solr features and how/if
they will work for your needs (I do not, myself).

On 5/13/2013 9:57 AM, Justin Coyne wrote:
> I don't know. I know Solr has hierarchical facets, I don't know if
> Blacklight supports it.
>
> Justin
>
>
> On Fri, May 10, 2013 at 2:41 PM, Aakash <javaj2ee...@gmail.com
> <mailto:javaj2ee...@gmail.com>> wrote:
>
> Hello,
>
> I have to implement nested structure in facet fields something like
> "product" and under product is "product versions".
> Is this something can be done in BL? If yes how can we do it?
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google
> Groups "Blacklight Development" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to blacklight-develo...@googlegroups.com
> <mailto:blacklight-development%2Bunsu...@googlegroups.com>.

Dan Funk

unread,
May 13, 2013, 11:06:07 AM5/13/13
to blacklight-...@googlegroups.com
Is a great article on implementing Hierarchical facets.  I've used the facet.prefix on a large project recently with very good results.  You will need to add in some additional logic in Blacklight for rendering your hierarchical facets, and the pagination of Facets is necessarily a good bit different, but certainly possible.


On Mon, May 13, 2013 at 10:55 AM, Jonathan Rochkind <roch...@jhu.edu> wrote:
I do not believe Blacklight has built-in any logic to use Solr's hiearchical facet feature. (Or features?).

I am not myself familiar enough with those feature in Solr to know how or if it would meet your need.

However, as with everything, Blacklight is intended to be a platform for you to develop your own app. So almost anything can be done with Blacklight, if you want to write code to develop a solution in your app, on top of Blacklight. But you would have to write software to do it. The first step would be understanding the relevant Solr features and how/if they will work for your needs (I do not, myself).


On 5/13/2013 9:57 AM, Justin Coyne wrote:
I don't know. I know Solr has hierarchical facets, I don't know if
Blacklight supports it.

Justin


On Fri, May 10, 2013 at 2:41 PM, Aakash <javaj2ee...@gmail.com
<mailto:javaj2eearticles@gmail.com>> wrote:

    Hello,

    I have to implement nested structure in facet fields something like
    "product" and under product is "product versions".
    Is this something can be done in BL? If yes how can we do it?

    Thanks,

    --
    You received this message because you are subscribed to the Google
    Groups "Blacklight Development" group.
    To unsubscribe from this group and stop receiving emails from it,

    For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google
Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send

For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-development+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
Daniel Funk
Principal, Software Engineer | LightCastle Technical Consulting
(540) 457-0024 | d...@lightcastletech.com

Jessie Keck

unread,
May 13, 2013, 12:53:01 PM5/13/13
to blacklight-...@googlegroups.com
There is some basic support in Blacklight for pivot facets ( http://wiki.apache.org/solr/HierarchicalFaceting#Pivot_Facets )

Here is where Blacklight reads the pivot_facet section of the solr response:

The view that Blacklight renders for a configured pivot facet:

Here is the facet being configured for an app that uses a pivot facet:
https://github.com/sul-dlss/frda/blob/master/app/controllers/catalog_controller.rb#L222
NOTE: We are not showing this as a facet but we parse the response out at another time (which is why there is ":show => false" in that config line)

Hope that helps!
- Jessie

To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages