私はdjango-oscarプロジェクトをセットアップし、solr 4.7.2をdocumentationとして有効にしました。solを使用したdjango-oscarの提案を検索
Solrは正常に動作しているようです。 'exxample' の提案をテストする(?はlocalhost:8983/Solrの/ collection1 /スペルspellcheck.q = exxample &スペルチェック=真>)私が手:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">10</int>
</lst>
<result name="response" numFound="0" start="0"/>
<lst name="spellcheck">
<lst name="suggestions">
<lst name="exxampl">
<int name="numFound">1</int>
<int name="startOffset">0</int>
<int name="endOffset">8</int>
<int name="origFreq">0</int>
<arr name="suggestion">
<lst>
<str name="word">exampl</str>
<int name="freq">2</int>
</lst>
</arr>
</lst>
<bool name="correctlySpelled">false</bool>
<lst name="collation">
<str name="collationQuery">exampl</str>
<int name="hits">2</int>
<lst name="misspellingsAndCorrections">
<str name="exxampl">exampl</str>
</lst>
</lst>
</lst>
</lst>
</response>
私も必ずSolrのことを確認するためにOSCAR_SEARCH_FACETSを有効にしていますDjango-Oscarによって正しく登録されており、正常に動作しているようです。
しかし、私がdjango-oscarで簡単なスペルミスをテストすると、検索結果は0回、提案は返されません。私は次に何をすべきか分からない。
大変お手伝いいたします。
私はSolrを検索に使用したときに役立ちました。単語を検索するように追加したいのですが、それはあなたがこれを意味すると示唆しています。クリックして検索結果を表示 –