Indexing a text string for faceting

2011-03-09 Thread Greg Georges
Hello all,

I have a small problem with my faceting fields. In all I create a new faceting 
field which is indexed and not stored, and use copyField. The problem is I 
facet on category names which have examples like this

Policies & Documentation 
(37)
Forms & Checklists 
(22)

Right now my fields were using the string type, which is not got because I 
think by default it is using a tokenizer etc.. I think I must define a new type 
field so that my category names will be properly indexed as a facet field. Here 
is what I have now









Can someone give me a type configuration which will support my category names 
which have whitespaces and ampersands?

Thanks in advance

Greg


Re: Indexing a text string for faceting

2011-03-10 Thread Erick Erickson
A string type will NOT use tokenizers, so that's probably not it

There are several things that are extremely suspicious:
1> the '&' character in your URL. Add "debugQuery=on" and see what
happens there. I suspect everything after the & is interpreted as a
separate parameter and ignored.
2> even if the & isn't a problem, the general syntax of
fCategoryName:term1 term2 term3
usually means fCategoryName:term1 defaultField:term2
defaultField:term3. You probably
want something like fCategoryName:"term1 term2 term3"

Best
Erick

On Wed, Mar 9, 2011 at 4:45 PM, Greg Georges  wrote:
> Hello all,
>
> I have a small problem with my faceting fields. In all I create a new 
> faceting field which is indexed and not stored, and use copyField. The 
> problem is I facet on category names which have examples like this
>
> Policies & Documentation 
> (37)
> Forms & Checklists 
> (22)
>
> Right now my fields were using the string type, which is not got because I 
> think by default it is using a tokenizer etc.. I think I must define a new 
> type field so that my category names will be properly indexed as a facet 
> field. Here is what I have now
>
> 
> 
>  multiValued="true"/>
>  multiValued="true"/>
>
> 
> 
>
> Can someone give me a type configuration which will support my category names 
> which have whitespaces and ampersands?
>
> Thanks in advance
>
> Greg
>