在另一個SO問題上,我要求澄清我對不同類型的solr提交的理解。這是螺紋連接Understanding the different type of SOLR commitssolr comiit params的默認值是多少?
現在,基本上我想知道Solr的下面會發生什麼,當我通過commit=true
或commit=false
任何Solr的POST請求。
提交=真正
curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983/solr/keywords/update/json/docs?commit=true' --data-binary '{ "id": "550148", "keyword": "astle city", "formatted_address": "Auckland, New Zealand", "country_code": "NZ", "region": "Auckland", "place": "Auckland", "lat": "-36.84846", "lng": "174.763332", "update_date": "2015-10-0500: 49: 35", "index": "0", "north": "NULL", "south": "NULL", "east": "NULL", "west": "NULL" }'
提交= FALSE
curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983/solr/keywords/update/json/docs?commit=false' --data-binary '{ "id": "550148", "keyword": "astle city", "formatted_address": "Auckland, New Zealand", "country_code": "NZ", "region": "Auckland", "place": "Auckland", "lat": "-36.84846", "lng": "174.763332", "update_date": "2015-10-0500: 49: 35", "index": "0", "north": "NULL", "south": "NULL", "east": "NULL", "west": "NULL" }'
什麼是承諾PARAMS時,我不把它的默認值?
再次感謝您的回答。我明白了,如果沒有搜索者被打開(open searcher = true),我將無法搜索我編入索引的文檔,並打開我需要做Soft Commit或Hard commit的搜索者。所以基本上'commit = true'就是硬提交,'commit = false'就是軟提交。我對嗎 ?如果我沒有使用我的url設置任何東西,commit param的默認值是什麼? –
不是。您是否閱讀過文檔? commit = false不是軟提交。 它根本沒有提交。 softCommit = true是軟提交。 –
現在感謝了 –