私はsolrを初めて使い、xmlファイルを検索しているコアを作成しました。検索は正常に動作していますが、完全ではないようです。たとえば、インデックスされたファイルを検索します。 "U"を使用すると結果が得られます。検索文字列と一致するレコードがあっても結果は得られません。あなたは私にこの問題をチェックするためのヒントを教えてもらえますか?私の目では、schema.xmlとdata-config.xmlが正しく定義されているようです。Solrが不完全な検索結果を返す
事前にアドバイスをいただきありがとうございます。結果を返す必要があるとして、ジョニーU仲の良い友達という名前の誰かのためにあなたのクエリを
`<?xml version="1.0" encoding="UTF-8"?>
<schema name="example" version="1.5">
<uniqueKey>id</uniqueKey>
<fieldType name="date" class="solr.TrieDateField" positionIncrementGap="0" precisionStep="0"/>
<fieldType name="int" class="solr.TrieIntField" positionIncrementGap="0" precisionStep="0"/>
<fieldType name="long" class="solr.TrieLongField" positionIncrementGap="0" precisionStep="0"/>
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<field name="_version_" type="long" indexed="true" stored="true"/>
<field name="idauftrunters" type="string" indexed="true" required="true" stored="true"/>
<field name="id" type="int" indexed="true" stored="true"/>
<field name="patientname" type="text" indexed="true" stored="true"/>
</schema>`
ザビーネ
fieldTypeがフィールドに使用したものは何ですか?それが持っているトークンゾーダーとフィルターは何ですか? –
Solr Adminの[Analysis]ページは、インデックス付きコンテンツとクエリ文字列との比較でどのように表示されますか? – MatsLindh
検索対象の特定のフィールドとそのフィールドがschema.xmlでどのように分析されているかを知ることができます –