Thank you, Donovan! Your answer and xDebug helped me.
The decision of my problem was very simple:
1) I've made a mistake, when mechanically replaced Zend_Lucene methods
on code from IBM tutorial. The invoke of
try {
$this->solr->addDocuments($doc);
$this->solr->commit();
$this->solr->optimize();
}
code was in the "foreach" loop. So addDocuments method got wrong
parameters (objects instead of array of objects) and commit method
received empty xml.
2) Also I used default schema.xml
$doc->text = $to_index;
That is the mistake, because in xml there were no field "text".
Also I've seen in the schema type of field - dynamicField. "If a field
name is not found, dynamicFields will be used if the name matches any
of the patterns."
Are there any methods in your library to work with that type? Or I
should make changes in schema each time I add custom field to
Apache_Solr_Document?
On Jan 19, 9:19 pm, Donovan Jimenez <
donovan.jime...@gmail.com> wrote:
> Step 1, lets make sure you're indexing what you think you are: Do a query
> for *:* , do you see your document(s) that you indexed (it should return
> everything in the index).
>
> Step 2, if you see all expected documents, then I imagine your problem might
> be either you're not querying the fields you expect to, or they're not
> indexed as you expect them to be. Does your query use field identifiers or
> is it relying on the default search field configured in the schema.xml? If
> that seems correct, also try adding the debugging parameters to your request
> to get an idea of what Solr is doing under the hood:
http://wiki.apache.org/solr/CommonQueryParameters#Debugging
>
> Hope this helps,
> - Donovan
>
> >
php-solr-clie...@googlegroups.com<
php-solr-client%2Bunsu...@googlegroups.com>
> > .