Hi there,
I would like to create a custom "facet group" in my index where values are placed in specific groups. I have different use cases, but let's assume price as an example. My products can have a variety of prices and I would like to add them to groups like "from 0 to 100", "from 101 to 200" and so on. Here's what I was thinking:
1. Get the lowest price in the system
2. Get the highest price in the system
3. Determine the various groups based on the highest and lowest price and do some rounding so each group has round numbers as its boundaries
4. Loop over the product data, find the price and create a new facet (I think?) for the price group.
Does this make sense? What would be my extensibility hook that makes this the simplest to implement? I looked at IIndexSchemaExtender and ProductIndexSchemaExtender but they provide fields, not data. I also looked at IIndexBuilder and ProductIndexBuilder. Is that my entry point? When ProductIndexBuilder is the answer, how do I add just my field without indexing the entire product from scratch?
I looked at the manual for indexing and it has a few dead links that could be helpful:
"If you do not want a field provided by an extender, you can exclude it. Read more here
Note: You can create your own schema extenders. Read more about the SchemaExtender API here."
However, the two occurrences of "here" go nowhere. Anyone know what they should be pointing to?
Thanks,
Imar