2013-05-20 6 views
1

콘텐츠 트리의 콘텐츠 항목 아래에 하나 이상의 웹 사이트가있는 내 sitecore 웹 사이트에서 lucene 검색을 통합했습니다. app_congif/include folder에 새로운 searchindex.config 파일을 추가했습니다. 또한 lucenesearch 소스를 siteroot로 변경했습니다.Lucene는 2 개의 웹 사이트가있는 sitecore에서 검색합니다

SiteRoot = database.GetItem("/sitecore/content"); 

그러나 검색이 작동하지 않습니다. 그것은 보여줍니다

/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> 

여기 내 콘텐츠 트리입니다. sitecore/content/DruBlue에서 검색하고 싶습니다.

enter image description here

는 사람이 좀 도와 주시겠습니까?

+0

색인을 다시 작성했는지 확인하십시오. 필요한 경우 먼저 항목을 게시하십시오. – Trayek

답변

6

당신은 구성에 오류가 있습니다 : 그들은 같은 태그 이름을 가진 모든으로

<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> 

이 제품은 {52BDB3C4-0585-437C-89AD-6AAC81950633} 템플릿 만 포함됩니다. 당신은 당신이 예를 들어 template1, template2 ... 또는 news, article, event, 사용하는 경우 중요하지 않습니다 그들 (각각 다른 태그를 사용해야합니다.

<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> 

은 자세한 내용은 Sitecore search and indexing PDF 파일을보기를

그런 다음 인덱스를 다시 작성해야

(당신이 Sitecore 데스크톱에서이 작업을 수행 할 수 있습니다>제어판>데이터베이스>는 검색 인덱스을 재 구축. WHE를 색인을 다시 생성하면 색인에 항목이 있는지 확인하려고합니다. Sitecore index viewer module 또는 독립형 Luke - Lucene Index Toolbox을 사용할 수 있습니다.

Here you can find more information about solving Sitecore and Lucene problems.

관련 문제