You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jon Drukman <js...@cluttered.com> on 2011/02/03 01:38:28 UTC

DataImportHandler: no queries when using entity=something

So I'm trying to update a single entity in my index using DataImportHandler.

http://solr:8983/solr/dataimport?command=full-import&entity=games

It ends near-instantaneously without hitting the database at all, apparently.

Status shows:

<str name="Total Requests made to DataSource">0</str>
<str name="Total Rows Fetched">0</str>
<str name="Total Documents Processed">0</str>
<str name="Total Documents Skipped">0</str>
<str name="">
Indexing completed. Added/Updated: 0 documents. Deleted 0 documents.
</str>
<str name="Committed">2011-02-02 16:24:13</str>
<str name="Optimized">2011-02-02 16:24:13</str>
<str name="Time taken ">0:0:0.20</str>

The query isn't that extreme.  It returns 8771 rows in about 3 seconds.

How can I debug this?


Re: DataImportHandler: no queries when using entity=something

Posted by Gora Mohanty <go...@mimirtech.com>.
On Thu, Feb 3, 2011 at 3:23 PM, Darx Oman <da...@gmail.com> wrote:
> add to url "&clean=false"
> http://solr:8983/solr/dataimport?command=full-import&entity=games&
> clean=false
>
> *clean* : (default 'true'). Tells whether to clean up the index before the
> indexing is started
[...]

Sorry, what does that have to do with the original poster's question?

Regards,
Gora

Re: DataImportHandler: no queries when using entity=something

Posted by Darx Oman <da...@gmail.com>.
check your log file you might have a connection problem

Re: DataImportHandler: no queries when using entity=something

Posted by Darx Oman <da...@gmail.com>.
add to url "&clean=false"
http://solr:8983/solr/dataimport?command=full-import&entity=games&
clean=false

*clean* : (default 'true'). Tells whether to clean up the index before the
indexing is started


>

Re: DataImportHandler: no queries when using entity=something

Posted by Gora Mohanty <go...@mimirtech.com>.
On Thu, Feb 3, 2011 at 6:08 AM, Jon Drukman <js...@cluttered.com> wrote:
> So I'm trying to update a single entity in my index using DataImportHandler.
>
> http://solr:8983/solr/dataimport?command=full-import&entity=games
>
> It ends near-instantaneously without hitting the database at all, apparently.
[...]

* Does the data import work without the entity=... ?
* Please show us your data import configuration file, and schema.xml.

Regards,
Gora

Re: DataImportHandler: no queries when using entity=something

Posted by Darx Oman <da...@gmail.com>.
sorry


add to url "&clean=false"
http://solr:8983/solr/dataimport?command=full-import&entity=games&
clean=false

this is by mistake
it was intended for somebody else

Re: DataImportHandler: no queries when using entity=something

Posted by Erick Erickson <er...@gmail.com>.
Here's a magic URL, not available from the admin page that may help
debugging:

..../solr/admin/dataimport.jsp

Best
Erick

On Wed, Feb 2, 2011 at 7:38 PM, Jon Drukman <js...@cluttered.com> wrote:

> So I'm trying to update a single entity in my index using
> DataImportHandler.
>
> http://solr:8983/solr/dataimport?command=full-import&entity=games
>
> It ends near-instantaneously without hitting the database at all,
> apparently.
>
> Status shows:
>
> <str name="Total Requests made to DataSource">0</str>
> <str name="Total Rows Fetched">0</str>
> <str name="Total Documents Processed">0</str>
> <str name="Total Documents Skipped">0</str>
> <str name="">
> Indexing completed. Added/Updated: 0 documents. Deleted 0 documents.
> </str>
> <str name="Committed">2011-02-02 16:24:13</str>
> <str name="Optimized">2011-02-02 16:24:13</str>
> <str name="Time taken ">0:0:0.20</str>
>
> The query isn't that extreme.  It returns 8771 rows in about 3 seconds.
>
> How can I debug this?
>
>