Solr version 5
データの検索に使用しています。以下のクエリを使用して、結果single keyword
が一致しても結果を返します。
http://localhost:8983/solr/document/select?q=keyword1+keyword2&wt=json
2 or more
キーワードが一致した場合にのみ結果を取得するクエリを提案できますか?
ありがとう。
dismax (最小値が一致する必要があります) パラメータを使用しますmm
q=keyword1+keyword2&defType=dismax&mm=2&wt=json
In your solrconfig.xml, change the default value of q.op to AND.
<str name="q.op">AND</str>