Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 solr 上,我有 10 个核心(产品、卖家……)。我只需要在查询中选择“产品”核心:
from mysolr import Solr solr = Solr(version=4) response = solr.search(q='*:*') documents = response.documents
我们只需要在 url 上指定核心名称:
solr = Solr(base_url='http://localhost:8080/solr/products', version=4)