Closed kamsar closed 11 years ago
Awesome, perhaps Alex can add this to the wiki for scSearchContrib.
Great find indeed! Thanks, @kamsar. I've modified the scSearchContrib.Crawler.config file with your suggestion. Looks much cleaner now. https://github.com/sitecorian/SitecoreSearchContrib/blob/master/scSearchContrib.Crawler/App_Config/Include/scSearchContrib.Crawler.config
Does anyone know if it is possible to do something similar to this (using "ref=...") for sections within the crawler config, such as the contents of "
I've figured out a nice trick for defining indexes that span multiple databases (eg master+web, as in the "demo" index included with the source). You can use the "ref" feature to reference a location config twice and simply change the database reference, thus avoiding the need to redefine the field types, field crawlers, etc for each database:
The "ref" can point to anywhere in the config document, I just used a templates node as it seemed logical.
This isn't really a bug in the code, but it might help some folks. It could be used to refactor the demo config file's "demo" index to only need to define stuff once.