Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change or set values for ache.yml with REST API #194

Open
josesu92 opened this issue Jun 9, 2020 · 1 comment
Open

Change or set values for ache.yml with REST API #194

josesu92 opened this issue Jun 9, 2020 · 1 comment

Comments

@josesu92
Copy link

josesu92 commented Jun 9, 2020

Hello...
Is posible change this values with REST API?:
link_storage.link_strategy.use_scope: true
link_storage.link_classifier.type: MaxDepthLinkClassifier
link_storage.link_classifier.max_depth: 1
Or which file I'll can change the code for enable this, for use with the REST API.
Thanks

@aecio
Copy link
Member

aecio commented Jun 10, 2020

No. Currently, only two crawl types of crawls (DeepCrawl or FocusedCrawl, which have specific hard-coded configurations can be started via the REST API.

The entry point for the REST API is at the class RestServer. The crawlers are created at CrawlersManager.createCrawler (line 79). More specifically, the configurations files are generated in the method createConfigForCrawlType of the same class.

A good way to modify this would be to add a third type of crawl (Custom) where the user provides the configuration via another REST API parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants