On Tue, Mar 24, 2009 at 2:03 PM, Ashish P <ashish.ping...@gmail.com> wrote:

>
> So it indexes A B, C D, E F properly... So I get facets
> A B (1)
> C D (1)
> E F (1)
> This is the exact output of facets I want.
>
> But I also want to search this document when I just search individual word
> 'A' or 'D' etc.
> So I want facets exactly same as above but at the same time to be able to
> search on individual words also.
>

Yes, you can create another field whose type is text (or anything which can
tokenize on whitespace and punctuation). Use the copyField directive to copy
the contents into both your original and the above field. Search on the
above field and facet on the original field.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to