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 analyser to extract
the letter using a regex.
Which one is the best option?

Thanks!
Alexandre

On Thu, Oct 14, 2010 at 4:46 PM, Yonik Seeley <yo...@lucidimagination.com>wrote:

> 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 facets (few facet values, many docs in each value)
> > like that in my app too, works fine.
> >
> > I get confused over the different facetting methods available in 1.4.1,
> and
> > exactly when each is called for. If you see initial problems, you could
> try
> > switching the facet.method and see what happens.
>
> Right - for faceting on first letter, you should probably use
> facet.method=enum
> since there will only be 26 values (assuming english/western languages).
>
> In the future, I'm hoping we can come up with a smarter way to pick
> the facet.method if it's not supplied.  The new flex API in 4.0-dev
> should help out here.
>
> -Yonik
> http://www.lucidimagination.com
>

Reply via email to