2016-09-03 8 views
0

Sitecore 8.0 rev를 기반으로 새 사이트를 만들고 있습니다. 150223이고 Solr 6.2.0.0을 설치하려고합니다. 나는 주로 지침을 여기에 따랐다 : https://born4joy.wordpress.com/2015/09/03/installation-and-configuration-of-solr-for-sitecore-8/ (이 과정과 Sitecore 자체에 익숙하지 않다)Sitecore와 함께 Solr을 설치하는 중 오류가 발생했습니다.

지시 사항의 단계를 완료했으나 아래의 서버 오류가 표시된다. 이 문제에 대한 인터넷 검색에서 유사한 인스턴스를 찾을 수 없습니다.

Server Error in '/' Application. 

Field type 'alphaOnlySort' not found 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: SolrNet.Exceptions.SolrNetException: Field type 'alphaOnlySort' not found 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 


[SolrNetException: Field type 'alphaOnlySort' not found] 
    SolrNet.Schema.SolrSchemaParser.Parse(XDocument solrSchemaXml) +1091 
    Sitecore.ContentSearch.SolrProvider.SolrSearchIndex.Initialize() +914 
    Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.Initialize() +169 

[HttpException (0x80004005): Field type 'alphaOnlySort' not found] 
    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +544 
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186 
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402 
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343 

[HttpException (0x80004005): Field type 'alphaOnlySort' not found] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +716 

답변

1

alphaOnlySort의 fieldType이 누락 된 것 같습니다.

<fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true"> 
    <analyzer> 
    <!-- KeywordTokenizer does no actual tokenizing, so the entire 
     input string is preserved as a single token 
     --> 
    <tokenizer class="solr.KeywordTokenizerFactory" /> 
    <!-- The LowerCase TokenFilter does what you expect, which can be 
     when you want your sorting to be case insensitive 
     --> 
    <filter class="solr.LowerCaseFilterFactory" /> 
    <!-- The TrimFilter removes any leading or trailing whitespace --> 
    <filter class="solr.TrimFilterFactory" /> 
    <!-- The PatternReplaceFilter gives you the flexibility to use 
     Java Regular expression to replace any sequence of characters 
     matching a pattern with an arbitrary replacement string, 
     which may include back references to portions of the original 
     string matched by the pattern. 

     See the Java Regular Expression documentation for more 
     information on pattern and replacement string syntax. 

     http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html 
     --> 
    <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all" /> 
    </analyzer> 
</fieldType> 
+0

감사합니다 파일 당신의 의 schema.xml에 정의 아래에 추가하십시오! 분명히 분명 했어야했는데, 현재의 지식으로는 그 부분이 어디에서 사라 졌는지 알지 못했을 것입니다. (그 파일에 기본적으로 포함되어 있지 않은 이상한!) – dibbledeedoo

관련 문제