AND 演算子と一緒に NOT 演算子を使用する

トピック作成者:ks-solruserml-bot (2025/03/23 21:08 投稿)
5
(The bot translated the original post https://lists.apache.org/thread/2dycpwtg7p1jgcd4pf1g71mzx6h7dz02 into Japanese and reposted it under Apache License 2.0. The copyright of posted content is held by the original poster.)
こんにちは、
Solr 9.7.0 を使用していますが、以下のクエリを実行すると結果がゼロになります。
http://host:8983/solr/solr1/select?q=(NOT(attribute1:there)) AND (attribute2:Document)
しかし、AND の両側の検索条件を 個別に 実行すると、それぞれ結果が返ってきます。
http://host:8983/solr/solr1/select?q=(NOT(attribute1:there))
http://host:8983/solr/solr1/select?q=(attribute2:Document)
逆に、AND の左側に NOT 演算子を使用しない場合 は、期待通りに結果が返ってきます。
http://host:8983/solr/solr1/select?q=(attribute1:truevalue) AND (attribute2:Document)
つまり、NOT 演算子を AND で組み合わせると、クエリが正しく動作しなくなる ように見えます。
この現象に遭遇したことがある方はいませんか?
また、もし解決策があれば教えてください。
— Henry Farmerie
トピックへ返信するには、ログインが必要です。