11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

full-import<br />

reload-config<br />

A Full Import operation can be started with a URL of the form http://:/<br />

solr/ / dataimport? command=full-import. The command<br />

returns immediately. The operation will be started in a new thread and the status attribute<br />

in the response should be shown as busy. The operation may take some time depending<br />

on the size of dataset. Queries to <strong>Solr</strong> are not blocked during full-imports.<br />

When a full-import command is executed, it stores the start time of the operation in a file<br />

located at conf/dataimport.properties. This stored timestamp is used when a<br />

delta-import operation is executed.<br />

For a list of parameters that can be passed to this command, see below.<br />

If the configuration file has been changed and you wish to reload it without restarting <strong>Solr</strong>,<br />

run the command<br />

http://:/solr//command=reload-config<br />

status<br />

show-config<br />

The URL is http://:/ solr/ / dataimport? c<br />

ommand=status. It returns statistics on the number of documents created, deleted,<br />

queries run, rows fetched, status, and so on.<br />

responds with configuration<br />

Parameters for the full-import Command<br />

The full-import command accepts the following parameters:<br />

Parameter<br />

clean<br />

commit<br />

debug<br />

Description<br />

Default is true. Tells whether to clean up the index before the indexing is started.<br />

Default is true. Tells whether to commit after the operation.<br />

Default is false Runs the command in debug mode. It is used by the interactive development<br />

mode. Note that in debug mode, documents are never committed automatically. If you want to<br />

run debug mode and commit the results too, add commit=true as a request parameter.<br />

entity The name of an entity directly under the tag in the configuration file. Use this to<br />

execute one or more entities selectively. Multiple "entity" parameters can be passed on to run<br />

multiple entities at once. If nothing is passed, all entities are executed.<br />

optimize<br />

Default is true. Tells <strong>Solr</strong> whether to optimize after the operation.<br />

synchronous Blocks request until import is completed. Default is false.<br />

Property Writer<br />

The propertyWriter element defines the date format and locale for use with delta queries. It is an optional<br />

configuration. Add the element to the DIH configuration file, directly under the dataConfig element.<br />

<br />

The parameters available are:<br />

Parameter<br />

Description<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

210

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!