On Wed, May 27, 2009 at 6:07 AM, escher2k <esche...@yahoo.com> wrote:

>
> Example:
> Root cat -> Digital -> Watch -> "Timex Essentials"
> Root cat -> Men -> Accessories -> "Timex Essentials"
>
> In the example above, we essentially have a product that is a part of two
> separate hierarchies.
> In the use case that I have, I want to index the following information -
>
> Name                     Category
> -----------------  -----------------------------------------
> Timex Essentials    Root cat, Digital, Watch, Men, Accessories
>
> The query I want to execute is-
> q=Timex
> fq=category:%Digital%
>
>
Instead of indexing the categories as a string, you can index them as
separate values in a multi-valued field. Then the query will look like:
q=Timex&fq=category:Digital

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to