Configuration file question #192
-
Good day to you! I was very excited to find this project. Stork Search looks to be an awesome piece of software and I like how it actually works in the live demo on the project's website. It looks like a tool I was exactly looking for. I also see a big amount of a great work that has already been done on Stork Search. Congratulations & Thank You Mr. James Little! I already decided to give it a try for a website, that uses a generator for static content. Now I would like to ask a question regarding the [input]
base_directory = "federalist"
url_prefix = "https://www.gutenberg.org/files/1404/1404-h/1404-h.htm#link2H_4_"
files = [
{path = "federalist-1.txt", url = "0001", title = "General Introduction"},
{path = "federalist-2.txt", url = "0002", title = "Concerning Dangers from Foreign Force and Influence"},
{path = "federalist-3.txt", url = "0003", title = "Concerning Dangers from Foreign Force and Influence 2"},
{path = "federalist-4.txt", url = "0004", title = "Concerning Dangers from Foreign Force and Influence 3"},
] Now I understand that I need to have the content of each article (content to be included in search) stored on a local computer, I need to know the future url of each article and I need to know the title of each article. And I need to know all three listed parameters in advance. Do I understad it correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@airone506 - Yup, that's an accurate understanding, except for one thing: you don't necessarily need to have the content that you want indexed stored on a local computer; instead, you can index content from published web pages and the Stork indexer will fetch that content from the web. I have yet to write any really good documentation, but you can play around with the files = [
{src_url = "https://whatever.com/my-page", url = "https://whatever.com/my-page", title = "General Introduction"},
# ...
] Happy to help clarify anything further, and good luck with your website! |
Beta Was this translation helpful? Give feedback.
@airone506 - Yup, that's an accurate understanding, except for one thing: you don't necessarily need to have the content that you want indexed stored on a local computer; instead, you can index content from published web pages and the Stork indexer will fetch that content from the web.
I have yet to write any really good documentation, but you can play around with the
src_url
field of the configuration file object. In the example you gave above, you could do something like the following:Happy to help clarify anything further, and good luck with your …