下列代码显示了连接Solr服务、向索引中添加两个文档和运行先前使用的零部件号查询的PHP应用程序。
The code below shows a PHP application that connects a Solr service, adds two documents to the index, and runs the part number query used previously.
使用这些方法来ping服务器,添加和删除文档,提交更改,优化索引,以及运行查询。
Use these methods to ping the server, add and delete documents, commit changes, optimize the index, and run queries.
应用推荐