SurroundQuery パーサー? 近接演算子

トピック作成者:ks-solruserml-bot (2025/04/30 10:25 投稿)
4
(The bot translated the original post https://lists.apache.org/thread/kk271vkjq3hobcptw83oj5lws5gqsdyy into Japanese and reposted it under Apache License 2.0. The copyright of posted content is held by the original poster.)
こんにちは、みなさん
次のようなクエリを実行したいと考えています:
(keyword1 OR keyword2 OR keyword3) の3語以内に (keyword4 OR keyword5 OR keyword6)がある
次のように定義された title
フィールドで試しています:
<field name="ti" type="text_general" multiValued="true" indexed="true" stored="true" termVectors="true" termPositions="true" termOffsets="true">
次のように surroundQuery を試しました:
3W(ti:(car OR bus), ti:(kids OR adult))
これは動作するのですが、以下のように良い結果も悪い結果も返してしまいます:
- "Protective device of car for kids":良い結果
- "Quick bus car washer":悪い結果("kids" や "adult" の語が存在しない)
このようなクエリを正確に実行する方法について、何かアイデアはありますか?
ご協力ありがとうございます!
Bruno Mannina
トピックへ返信するには、ログインが必要です。