alexshyba / SitecoreSearchContrib

Extension to Sitecore.Search namespace. Includes AdvancedDatabaseCrawler and Searcher. Make sure to check out the website for the project.
http://sitecorian.github.io/SitecoreSearchContrib
25 stars 21 forks source link

AllTemplatesField #21

Closed kvarley closed 11 years ago

kvarley commented 11 years ago

Is there anything specific in terms of configuration that needs to be added to take advantage of the functionality offered in scSearchContrib.Crawler.DynamicFields.AllTemplatesField?

I guess I'm not clear on how that's actually plugged into the library by default in anyway and I'm not seeing all of the base templates (recursively) showing up in my index.

alexshyba commented 11 years ago

Hello,

You have to register the dynamic field in configuration, please take a look at the latest scSearchContrib.Crawler.config file: https://github.com/sitecorian/SitecoreSearchContrib/blob/master/scSearchContrib.Crawler/App_Config/Include/scSearchContrib.Crawler.config

You should see something like this if you open the index in Luke: alltemplates_field

kvarley commented 11 years ago

Thanks for the reply. So then this doesn't really have anything to do with the SearchBaseTemplates parameter in the SearchParam class?

alexshyba commented 11 years ago

The SearchBaseTemplates parameter was not used in any way. I just fixed it. The searcher is now using _alltemplates field behind the scenes if this property is true.