我有Solr 5.3.1並且需要爲除某些字段以外的所有字段執行查詢(我需要在某個字段中搜索而不用這種方式檢索字段以檢索[/? q =查詢& FL = FIELD1,FIELD2,字段3])如何忽略SOLR查詢中的某些字段
我嘗試了一些解決辦法,但不能工作
1. How to exclude fields in a SOLR query [本soluation不起作用]
2以下溶液的工作,但需要更多時間]
query = field1:"+txtSearch+"OR field1:"+ txtSearch+" OR field1:"+txtSearch
3.I設置索引=「假」在數據-config.xml中它只忽略在這個領域的搜索,但是當我搜索的所有字段http://localhost:8983/solr/test?q=query在所有領域的查詢搜索,無論索引=」假」或真
我期待這一切鏈接
Retrieving specific fields in a Solr query?
How to exclude fields in a SOLR query
012在schema.xml中被提及種https://www.drupal.org/node/1933996
**感謝**它現在的工作:) –