Method inside the call Nutch a custom interface Nutchindexwriter, we look at one of his implementation class Solrwriter, we mainly look at his close method, the code is as follows:
At shutdown, Nutch sends a packet of encapsulated data using an HTTP-based post method to send a request packet to the SOLR server, Solr.commit (); This method explains some deviations in the previous article, and SOLR's entire transaction is on the SOLR server side, This is different from the previous transaction, and this method is to send another request to commit the current transaction.
As for the previous index of additions and deletions are implemented in this class, if you want to know more, you can view this class implementation.
At this point, Nutch's entire index process has been basically completed.
Due to the haste of time just introduced the approximate process, if you want to know some of the details, if you are interested can leave a message. or send me a letter in the station.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.