Lucene search in sitecore with 2 websites -
i integrated lucene search in sitecore website has 1 more website under content item in content tree. added new searchindex.config file in app_congif/include folder. i've changed lucenesearch source siteroot
siteroot = database.getitem("/sitecore/content"); but search isn't working. shows:
unable find results item
which means isn't getting in /standard_items/search_results. searchindex.config:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <database> <database id="master"> <engines.historyengine.storage> <obj type="sitecore.data.$(database).$(database)historystorage,sitecore.kernel"> <param connectionstringname="$(id)"/> <entrylifetime>30.00:00:00</entrylifetime> </obj> </engines.historyengine.storage> <engines.historyengine.savedotnetcallstack>false</engines.historyengine.savedotnetcallstack> </database> </database> <search> <configuration> <indexes> <index id="searchindex" type="sitecore.search.index, sitecore.kernel"> <param desc="name">$(id)</param> <param desc="folder">search_index</param> <analyzer ref="search/analyzer"/> <locations hint="list:addcrawler"> <resources type="sitecore.search.crawlers.databasecrawler, sitecore.kernel"> <database>master</database> <root>/sitecore/content</root> <include hint="list:includetemplate"> <template>{2a609d52-7b9f-49f3-83be-047fd16397a7} </template> <template>{f98712d8-27db-4324-82e6-65242f0977f9} </template> <template>{849ca304-3f51-4fcb-b9b3-2ac7e950b476} </template> <template>{a87a00b1-e6db-45ab-8b54-636fec3b5523} </template> <template>{52bdb3c4-0585-437c-89ad-6aac81950633} </template> </include> <indexallfields>true</indexallfields> <boost>2.0</boost> </resources> </locations> </index> </indexes> </configuration> </search> </sitecore> </configuration> here content tree. want search in sitecore/content/drublue.
can please me ?
you have error in configuration:
<include hint="list:includetemplate"> <template>{2a609d52-7b9f-49f3-83be-047fd16397a7} </template> <template>{f98712d8-27db-4324-82e6-65242f0977f9} </template> <template>{849ca304-3f51-4fcb-b9b3-2ac7e950b476} </template> <template>{a87a00b1-e6db-45ab-8b54-636fec3b5523} </template> <template>{52bdb3c4-0585-437c-89ad-6aac81950633} </template> </include> this part include {52bdb3c4-0585-437c-89ad-6aac81950633} template have same tag name. need use different tags each of them (doesn't matter if use template1, template2 ... or news, article, event, e.g.:
<include hint="list:includetemplate"> <template1>{2a609d52-7b9f-49f3-83be-047fd16397a7}</template1> <template2>{f98712d8-27db-4324-82e6-65242f0977f9}</template2> <article>{849ca304-3f51-4fcb-b9b3-2ac7e950b476}</article> <news>{a87a00b1-e6db-45ab-8b54-636fec3b5523}</news> <event>{52bdb3c4-0585-437c-89ad-6aac81950633}</event> </include> see sitecore search , indexing pdf more details.
then should rebuild index (you can sitecore desktop > control panel > database > rebuild search index. when reindexing done try confirm there items in index. can use sitecore index viewer module or standalone luke - lucene index toolbox.
here can find more information solving sitecore , lucene problems.

Comments
Post a Comment