1, when the defined field error solr
1.1 malformed
Description: There is no isolation between words, a click, select multiple.
Solution: According to the original label re-writing a word.
1.2, word problems jar package
Reasons: 1. lack jar package. 2. jar package version is too low.
Solution: put the jar package in line with the solr container / opt / solr / server / solr-webapp / webapp / WEB-INF / lib directory.
Here, the lack of the jar package
2, solr can not import data
2.1, multi-threaded breakpoint hit in the thread. As shown below
2.2, it can not import data to solr, there is no error.
Use the parent class subclass to replace abnormal abnormal arrest .
As can be seen in the figure below, some of the goods tagList missing field values.
Therefore, in the manager.schema solr file edit custom fields required = false set does not have to. The problem is solved.
2.3, the code does not go down, use Evaluate tools
Code is blocked for no reason, you can use this tool. It is shown in the figure below, the occurrence of the null pointer process. Click stackTrace (stack trace) can navigate to the location of the problem. Then traced, you can find the problem.
3, field names used in solr from SolrDocument objects must manage-schema in the same
If not the field type, then to return to the leading end of the data:
No data show that the back end will be reported null pointer.
Detailed ProdSolr entity class