ドキュメントには 2 つのインデックス付き属性があります - 名前 (文字列) とバージョン (番号)
同じスコア内でドキュメントは次の順序で表示されます
スコア(説明)、名前(説明)、バージョン(説明)
したがって、次を使用してクエリを実行します。
http://localhost:8983/solr/vault/select?
q=BOM&fl=*:score&
sort=score+desc,Name+desc,Version+desc
そして、結果の中に次のように表示されます。
<doc>
<str name="Name">BOM Total test2</str>
...
<int name="Version">2</int>
...
<float name="score">2.2388418</float>
</doc>
<doc>
<str name="Name">BOM Total test - Copy</str>
...
<int name="Version">2</int>
...
<float name="score">2.2388418</float>
</doc>
<doc>
<str name="Name">BOM Total test2</str>
...
<int name="Version">1</int>
...
<float name="score">2.2388418</float>
</doc>
スコアは同じですが、名前はソートされていません。
ここで何が間違っていますか?
EDIT : スキーマ定義
....
<field name="Name" type="text_en" indexed="true" stored="true" required="true"/>
<field name="Version" type="int" indexed="true" stored="true" required="true"/>
....