Hello, and thanks very much for this awesome package. I was a little apprehensive of facets, but this package has actually made it quite a lot of fun to add to our search system.
I have everything running as required if I do as the getting started doc states and define my BaseBrowser class. But, what I need to do is change what fields are to be faceted depending on some other data stored in umbraco. And this data can change over time.
So I'm looking to change the BaseBrowser.FacetFields collection when an event fires and then rebuild my index in code. I can't seem to modify that collection though.
Is this possible? There is no setter on the field either, so I can't just redefine the collection in its entirety rather just modifying the existing collection.
I already have an Indexer.DocumentWriting event running, so I can change the fields in the index as needed. I just can't work out how to change the facet fields in the browser to correspond with that change.
There must be some black magic going on where my BaseBrowser is discovered at start up some how. Is there some way I can trigger that code to happen again when I chose?
Dynamically Change facet fields at runtime
Hello, and thanks very much for this awesome package. I was a little apprehensive of facets, but this package has actually made it quite a lot of fun to add to our search system.
I have everything running as required if I do as the getting started doc states and define my BaseBrowser class. But, what I need to do is change what fields are to be faceted depending on some other data stored in umbraco. And this data can change over time.
So I'm looking to change the BaseBrowser.FacetFields collection when an event fires and then rebuild my index in code. I can't seem to modify that collection though.
Is this possible? There is no setter on the field either, so I can't just redefine the collection in its entirety rather just modifying the existing collection.
I already have an Indexer.DocumentWriting event running, so I can change the fields in the index as needed. I just can't work out how to change the facet fields in the browser to correspond with that change.
There must be some black magic going on where my BaseBrowser is discovered at start up some how. Is there some way I can trigger that code to happen again when I chose?
Thanks for the assistance!
is working on a reply...