i want to automatically index a document or a website when it is fed to apache solr . How we can achieve this ? I have seen examples of using a CRON job that need to be called via a php script , but they are not quite clear in explaination. Using java api SolrJ , is there any way that we can index data automatically , without having the need to manually do it ??
How to auto-index data using solr and nutch?
520 views Asked by Saurabh Chaturvedi AtThere are 2 answers
Ali
On
If you are using Apache Nutch, you have to use Nutch solr-index plugin. With using this plugin you can index web documents as soon as they be crawled by Nutch. But the main question would be how can you schedule Nutch to start periodically.
As far as I know you have to use a scheduler for this purpose. I did know an old Nutch project called Nutch-base which uses Apache Quartz for the purpose of scheduling Nutch jobs. You can find the source code of Nutch-base from the following link:
https://github.com/mathieuravaux/nutchbase
If you consider this project there is a plugin called admin-scheduling. Although it is implemented for and old version of Nutch but it could be a nice start point for developing scheduler plugin for Nutch.
It is worth to say that if you are going to crawl website periodically and fetch the new arrival links you can use this tutorial.
Related Questions in APACHE
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Cannot load modules/mod_dav_svn.so into server
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Oracle Http server ISNT-07551
- I cant access file directory with PHP local host on XAMPP. it just shows one of the files I have in my visual studio code
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Issue with Django --> Apache WSGI deployment
- changing the node version used by apache web server
- Apache: How can I redirect to a subfolder with a URL param but serve required content via the main URL?
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- Set up MX records in apache/Ubuntu to point to external mail server
- How to proxy to another port?
- Php can not upload file out of /var/www/html even after disabling Selinux
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
Related Questions in SOLR
- Upgrading to Solr 9 failes due to NoSuchFileException
- regex to produce duplicate string with modification
- Apache atlas UI not showing up
- SAP Commerce Cloud multisite SOLR configuration
- Solr 9 punctuation issue
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- Getting NPE in apache SOLR 8.11.2 while doing atomic update using add-distinct from my java based appication
- how to specify the maximum number of clusters for the STC algorithm in Solr admin console?
- SOLR compatibility of the KNN query parser with function queries
- How to use Solr as retriever in RAG
- Multiple replacement / substitute NGgram string SOLR 8.6
- Solr updates are taking too long. The update requests are stalling
- solrCloud(9.5) integrates springboots, and adds user authentication, and there is no problem with queries, but the new one keeps reporting errors
- Why does Spring Data for Apache Solr run a count query before running the actual query?
- SOLR 'facet.prefix' is not working as expected
Related Questions in NUTCH
- Apache Nutch - How to store crawl data under the folder with the page name/url
- Nutch 1.19 / Solr 9.4.0 How to point Nutch to the Solr instance?
- nutch error: Illegal to have multiple roots (start tag in epilog?)
- What is the correct format for a solrcloud url in Nutch's index-writers.xml config?
- How can I fix the Bad Gateway error when adding Solr as a data source to Grafana?
- Apache Nutch 1.19 Getting Error: 'boolean org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(java.lang.String, int)'
- Running apache nutch in local machine
- Nutch 1.19 Webgraph command error: OutlinkDb job did not succeed, job id: job_local306968781_0001, job status: FAILED, reason: NA
- Nutch 2.x response content : doesn't work properly without JavaScript enabled. Please enable it to continue
- Using Java & Apache Nutch to scrape dynamic elements from a website
- Building Apache Nutch Docker container
- Nutch additional fields for indexing in solr
- after fresh installation of nutch and solr crawl error
- Updating Max Depth for Apache-Nutch Crawler in scoring-depth filter is not working
- Search for solve a error 255 in SOLR Nutch
Related Questions in SOLRJ
- Getting NPE in apache SOLR 8.11.2 while doing atomic update using add-distinct from my java based appication
- SOLR 'facet.prefix' is not working as expected
- SolrJ deleteById does not deletes data in Solr
- How to create Solr Query with SolrJClient for the below JSON?
- How to Search for Literal Asterisks in a String Field with Solr
- SolR PreserverMulti only for specific field
- How to use termfreq(field,value) for both the exact match and partial match in solr?
- SolrJ Confusion about Clients
- Encrypt and Decrypt specific field in Apache Solr
- "Solr Spellchecker Issue: Suggesting 'kothi' Instead of 'kochi'"
- Failed to collect dependencies at org.apache.solr:solr-core:jar:8.0.0 -> org.restlet.jee:org.restlet:jar:2.3.0
- SolR & wildcard. Allow partial keyword
- Trying Solr 9.3 with Spring Boot 3
- SolrJ 9.3.0 Upgrade issues
- Deleting documents by query and commiting in Lucene index taking long time using SolrJ
Related Questions in MOSS2007ENTERPRISESEARCH
- Is it possible to use Elastic Enterprise Search through NEST client in C#
- Can we crawl and index Google Drive documents using nutch and solr?
- How to auto-index data using solr and nutch?
- I need to know how to copy data of specify columns from one list to another using 1 common column in sharepoint 2007
- How to programmatically render DataFormWebPart?
- Refine search results control
- How do I code a custom search page to search current site and sub-sites only in SharePoint 2007?
- How to achieve this site structure?
- MOSS search crawl fails with "Access is denied ..."
- How do I perform a MOSS FullTextSqlQuery and filter people results by the Skills managed property?
- The search request was unable to connect to the Search Service
- MOSS 2007 Navigation Options/Settings
- Windows SharePoint Services Search won't stop
- Enterprise Search web service in SharePoint
- Timeout problems with Microsoft Office SharePoint Server 2007 Query Web Service
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can write a scheduler and call the solrJ code which is doing indexing/reindexing.
For writing the scheduler please refer below links
http://www.mkyong.com/java/how-to-run-a-task-periodically-in-java/
http://archive.oreilly.com/pub/a/java/archive/quartz.html