我想使用的構面放置在數據庫中,每次都可能會發生變化。我在哪裏必須實現方面索引?在ASP MVC應用程序中還是在solr的數據配置中?
Solr provides out of the box faceting.
you would index the data you need to facet in schema.xml and enable faceting during the searches in solrconfig.xml.
On the application side you just need to process the facet data return by Solr.
http://www.lucidimagination.com/devzone/technical-articles/faceted-search-solr
solr如何與solrnet結合使用,solr必須爲每個搜索獲取我的數據庫的新索引,對嗎?
Usually the client (java and ruby) interacts with Solr through http executing searches and processing the results providing you an easy access.
So everytime the search happens Solrnet would be querying the latest index.
我有沒有重建索引的每一個變化?
With Data import handler you can incrementally index you data periodically.
The timestamp handling is performed for you by Solr.
You would need to have jobs which would perform the incremental indexing.
However, if you need to have the data reflected with every change you would need to index the data through application.
Dataimporthandler,在Tomcat 7上的Solr應該可以正常工作。檢查jdk版本,因爲jdk 7在Solr/Lucene中存在一些問題。
我會建議Tomcat 6,因爲我在太多的地方看到第七個問題。可能是錯誤的,雖然 –