: I find solrphp is problem.
:
: i use post.sh£¬£¬it can index data and i can use luke

post.sh does a commit automatically after sending docs, i don't know much
about PHP but doing a quick grep of http://wiki.apache.org/solr/SolrUpdate
i don't see anywhere in the addIndex method you mentioned that it does a
commit ... i tink you are expected to call the sendCommit function
yourself.

A quick way to check if any docs have been added to your index is to look
at the statistics page...

http://localhost:8983/solr/admin/stats.jsp

...if any documents have ever been added you should see a non-zero value
for "maxDocs" in the "CORE" section ... if there are currently some
non-deleted docs you should see a non-zero value for "numDocs" as well.

the other important section to look at is the "UPDATE HANDLERS" section
... if that "commits" count is 0 then your client code has never sent a
commit - the docsPending and deletesPending numbers will tell you how many
commands it has recieved that it hasn't done yet because it's waiting for
a commit.



-Hoss

Reply via email to