방금 Solr을 설치했습니다. 이제 어떻게 사용하는지 배우려고합니다. Solr Cell 및 langid 기능을 사용하고 싶습니다. 따라서 링크 된 자습서를 따랐습니다. Solr Cell은 작동하지만 아무 것도하지 못하게합니다.Solr 4.0에서 맹목적인 작업을 할 수 없습니다.
<updateRequestProcessorChain name="langid">
<processor class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory">
<str name="langid.fl">text,title,subject,description</str>
<str name="langid.langField">language_s</str>
<str name="langid.fallback">en</str>
<bool name="langid.map">true</bool>
</processor>
<processor class="solr.LogUpdateProcessorFactory" />
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
(나는 또한 티카와 함께 시도), 그리고 내가 쿼리 할 때 내가
curl "http://localhost:8983/solr/update/extract?literal.id=test&commit=true" -F "[email protected]"
를 사용하여 문서를 전송하지만, text:[* TO *]
내 문서를 나에게 다시 제공 : solrconfig.xml
에서
,이이 그러나 text_en:[* TO *]
은 그렇지 않습니다. language_s
, 비록 내가 그것을 저장 된 것으로 선언하더라도, 완고하게 결석합니다; *:word
은 "words"
인데도 아무 것도 찾지 못합니다. 로그에서 아무 것도 찾을 수 없습니다. 내 가장 좋은 추측은 혀끝 소리가 나지 않는다는 것입니다. 왜 그런지 모르겠습니다.
EDIT : 해답을 찾았 read more docs : LANGID가 업데이트 요청 처리 체인으로 구성되어 있기 때문에, p는
, 이는 (이 자동 아니다)를 선택받을 필요가있다.
curl "http://localhost:8983/solr/update/extract?literal.id=test&commit=true&update.chain=langid" -F "[email protected]"
게시 주셔서 감사합니다, 같은 문제가있었습니다. P.S 나의 경우 (최신 SOLR), 업데이트 URL은 -Durl = "http : // localhost : 8080/solr/update? update.chain = langid –