いくつかのフィールドに適切な方法では動作しません。それは数値を格納するように、両方のフィールドのSolrの範囲クエリは、私はSolrの文書に</strong> & <strong>nofyears_1</strong> weight_value 2つのフィールド<strong>を追加した
スキーマは
<field name="weight_value" type="string" indexed="true" stored="true" />
<field name="nofyears_1" type="string" indexed="true" stored="true" />
以下のように両方がストリングとして格納されます。ここ
問題は、範囲クエリがweight_valueフィールド上で完璧に動作しますが、nofyears_1フィールド上では動作しませんです。
このweight_value:[40 TO 50] => Get all the results only between 40 TO 50
しかし
nofyears_1:[1 TO 10] => Doesn't get results between 1 TO 10, but it fetches the result of 1 & 10 only.
のと同様で、
nofyears_1:[1 TO 5] => It fetches the result of 1, 5 & 15 only.
よう
私の範囲のクエリは、この分野で動作しないのはなぜ?
あなたは数値で範囲クエリをしたい場合は両方のフィールドは、数値フィールドを使用し、文字列、んが、複数の値
ありがとう..私の問題を解決しました。 –