Hi list,

Let's say I add a copyField to my solr schema, or change the analysis chain
of a field or some other change.
It seems to me to be an alluring choice to use a very simple
dataimporthandler to reindex all documents, by using a SolrEntityProcessor
that points to itself. I have just done this for a very small collection,
but I was wondering what the caveats are, since this is not the recommended
practice. What can go wrong using this approach?

<document> <entity name="all_from_self" processor="SolrEntityProcessor" url=
"http://localhost:8983/solr/mycollection"; qt="lucene" query="*:*" wt=
"javabin" rows="1000" cursorMark="true" sort="id asc" fl=
"*,orig_version_l:_version_"/> </document>

PS: (It is probably necessary to add a version:[* TO
<current_highest_version>] to ensure it terminates for large imports)
PPS: (Obviously you shouldn't add the clean parameter)

/Bjarke

Reply via email to