Comments (6)
@Tseing I was able to set it as a comma-separated string of selectors I believe. Have you tried that out?
from stork.
Hello @nandac! This feature is available, but admittedly not well-documented. You can add the exclude_html_selector
field to your config file to globally define a selector to exclude from indexing.
To define exclusions on a file-by-file basis, you can use the exclude_html_selector_override
config option in a file object.
Let me know if this helps! Happy to provide examples, etc. if this isn't quite enough.
-James
from stork.
Thanks, @jameslittle230 that is what I was looking for.
I do have one question though, is it possible to specify multiple selectors to exclude? For example something like:
exclude_html_selector = "figure", "p#author", ...
In addition, I am actually using stork-search with the pelican-search plugin, which unfortunately does not support this setting so that is something I would need to contribute to the plugin I guess.
from stork.
I have the same question. Is it possible to support to set multiple selectors to be excluded? I found exclude_html_selector
is defined as a string, so it can't be set multiple values at least for now.
from stork.
@nandac Cool, it works! I mistakenly thought exclude_html_selector
defines HTML tags to be excluded. Thank you for your reply! I am using Pelican as well : )
from stork.
Thanks for helping out here! I'm closing this issue and will improve the documentation here.
from stork.
Related Issues (20)
- API: allow using a local `.wasm` file HOT 9
- Add contributing.md
- Add stork.js.map to github release assets HOT 1
- Search required 3 chars to return results, but appear to load with 1 and 2 HOT 4
- Build & publish Mac ARM binary upon new release HOT 1
- Working with Subtitles | timestamp_format "MinutesAndSeconds" HOT 2
- Allow user to configure result messages HOT 1
- Test failure in pretty_print_search_results
- indexation is pretty slow HOT 1
- Ruby text isn't handled properly
- How to enable search with filename HOT 2
- Enable exact searching for phrases by using quotes
- Publish Stork indexer library to NPM
- Expose URLs for each excerpt in a result
- Filter results by metadata when searching
- how to use Stork to handle a list of 200-500 documents? (lunrjs style) HOT 1
- Main thread panic in stork search "not a char boundary" HOT 3
- Panic when importing indices built with excerpts_per_result == 0
- onResultSelected should stop changing location if the returned promise is rejected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stork.