Re: Faceting on the first part or first letter of values

2013-02-27 Thread Alan Woodward
Hi Teun, In the past I've done this by creating a separate field that contains just the first letter of the original field, and faceting on that. So say you've got a 'colour' field with contents [red, yellow, blue], then you'd add a 'colourPrefix' field with contents [r, y, b] and

Faceting on the first part or first letter of values

2013-02-26 Thread Teun Duynstee
What I really miss in the SimpleFaceting component is the ability to get facets not of the full term, but grouped by the first letter(s). I wrote a Jira issue on this ( https://issues.apache.org/jira/browse/SOLR-4496). I also wrote a patch with a rather simplistic first try of an implementation.