Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用AnalyzingFixLookupFactory解决apache solr中的write.lock问题_Apache_Solr_Lucene_Autosuggest_Search Suggestion - Fatal编程技术网

使用AnalyzingFixLookupFactory解决apache solr中的write.lock问题

使用AnalyzingFixLookupFactory解决apache solr中的write.lock问题,apache,solr,lucene,autosuggest,search-suggestion,Apache,Solr,Lucene,Autosuggest,Search Suggestion,我正在应用程序中使用AnalyzingInfixLookupFactory的自动建议功能。但是,当我尝试使用自动建议功能并在一段时间后在文本框中搜索术语时,会抛出write.lock错误。 下面是我在solr-config.xml文件中对Suggester/suggest组件和suggest请求处理程序的配置: <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggeste

我正在应用程序中使用AnalyzingInfixLookupFactory的自动建议功能。但是,当我尝试使用自动建议功能并在一段时间后在文本框中搜索术语时,会抛出write.lock错误。 下面是我在solr-config.xml文件中对Suggester/suggest组件和suggest请求处理程序的配置:

<searchComponent name="suggest" class="solr.SuggestComponent">
  <lst name="suggester">
    <str name="name">mySuggester</str>
    <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
    <str name="dictionaryImpl">DocumentDictionaryFactory</str>
    <str name="field">text</str>
    <str name="weightField">price</str>
    <str name="payloadField">prod_id</str>
    <str name="contextField">ancestors</str>  
    <str name="suggestAnalyzerFieldType">text_general</str>  
    <str name="buildOnStartup">false</str>
  </lst>
</searchComponent>

<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
  <lst name="defaults">
    <str name="suggest">true</str>
    <str name="suggest.count">10</str>
  </lst>
  <arr name="components">
    <str>suggest</str>
  </arr>
</requestHandler>

我的建议者
解析固定查找工厂
文档字典工厂
文本
价格
产品标识
祖先
正文\u概述
假的
真的
10
建议
有什么想法或解决方案可以让我绕过这个问题吗?
谢谢。

我在
AnalyzingInfixLookupFactory
上遇到了同样的问题,切换到
AnalyzingGlookupFactory
为我解决了这个问题。

我还尝试在indexConfig中的solr-config.xml文件中做了以下更改:${solr.lock.type:native}真的10000 15000