Faceting and first letter of fields

2010-10-14 Thread Alexandre Rocco
Guys, We have a website running Solr indexing books, and we use a facet to filter books by author. After some time, we detected that this facet is very large and we need to create some other feature to help finding the information. Our product team asked to create a page that can show all

Re: Faceting and first letter of fields

2010-10-14 Thread Jonathan Rochkind
I believe that should work fine in Solr 1.4.1. Creating a field with just first letter of author is definitely the right (possibly only) way to allow facetting on first letter of author's name. I have very voluminous facets (few facet values, many docs in each value) like that in my app too,

Re: Faceting and first letter of fields

2010-10-14 Thread Yonik Seeley
On Thu, Oct 14, 2010 at 3:42 PM, Jonathan Rochkind rochk...@jhu.edu wrote: I believe that should work fine in Solr 1.4.1.  Creating a field with just first letter of author is definitely the right (possibly only) way to allow facetting on first letter of author's name. I have very voluminous

Re: Faceting and first letter of fields

2010-10-14 Thread Alexandre Rocco
Thank you for both responses. Another question I have is where the processing of this first letter is more adequate. I am considering updating my data import handler to execute a script to extract the first letter from the author field. I saw other thread when someone mentioned using a field

Re: Faceting and first letter of fields

2010-10-14 Thread Jonathan Rochkind
Thanks Yonik. I hadn't actually been using enum on facets with a small number of unique values; the wiki page doesn't give much guidance on when each is called for. Do you have any rule of thumb for how few unique values is few enough to want to use method=enum? Does it matter if the field

Re: Faceting and first letter of fields

2010-10-14 Thread Markus Jelsma
Here's a very recent thread on the matter: http://lucene.472066.n3.nabble.com/facet-method-enum-vs-fc-td1681277.html Thanks Yonik. I hadn't actually been using enum on facets with a small number of unique values; the wiki page doesn't give much guidance on when each is called for. Do you

Re: Faceting and first letter of fields

2010-10-14 Thread Jonathan Rochkind
Markus Jelsma wrote: Here's a very recent thread on the matter: http://lucene.472066.n3.nabble.com/facet-method-enum-vs-fc-td1681277.html Thanks, that's helpful, but still leaves me with questions. Yonik suggests with only ~25 unique facet values, method=enum is probably the way to go.

Re: Faceting and first letter of fields

2010-10-14 Thread Chris Hostetter
: Another question I have is where the processing of this first letter is : more adequate. : I am considering updating my data import handler to execute a script to : extract the first letter from the author field. : : I saw other thread when someone mentioned using a field analyser to extract :