Hi Priti,
You can do this by adding an extra field (string type) for facet on
which you need to send query.
1.One product can belong to more than one categories.
You can put internal flag for that category at index time, and at the time of
query you can send that flag to query.
More of less same thing I am doing in www.jagranjosh.com and videos.jagran.com
regards
Ranveer
On Monday 05 Septyember 2011 01:09 PM, Tony Qiu wrote:
Dear Gupta,
In my case, I am doing something similar to you.
I use tow core, one core I build category's tree, another core I use to
build the product's information include the leaf cat of products. So when
one search I get, I will facet the leaf cat, then get the category tree in
the category core via product's leafcat (or you can cache the category tree
in you memery).
Hope this can help u.
2011/9/5 Priti Gupta<pgupt...@sapient.com>
Hi,
We are using solr in our ecommerce application.we are indexing on different
attributes of products.
We want to create category tree with the help of solr.
There are following points about catgory and products to be considered,
1.One product can belong to more than one categories.
2.category is a hierarchical facet.
3.More than one categories can share same name.
It would be a great help if someone can suggest a way to index and query
data based on the above architecture.
Thanks,
Priti