psyinfra / tipue-search-lite Goto Github PK
View Code? Open in Web Editor NEWServerless search for static websites
License: Other
Serverless search for static websites
License: Other
Lists of common words (aka stop words) vary greatly by search engines.
I imagine that what is most appropriate depends on the content and size of the index. However, I suspect that the list we have is a bit too extensive.
It should also be possible for the consumer of TSL to override the contents of the list.
The changes are getting to the point that TSL is no longer a drop-in replacement for TipueSearch.
We will continue to maintain strict compatibility with the index generated for Tipue. But many configuration options have been removed or behave somewhat differently.
These should be documented.
This should run ESLint (#8) on every push to master
and PR.
The search code is quite verbose. A faster (and more readable) solution would be to use JavaScript's regex abilities.
I think there is a case sensitivity issue here.
For example, the search for "blue" displays the correct summary (containing "blue"), but "BLUE" does not (which I think shows text from the beginning of the page).
The set
var is not addressable by the user.
This connects to a question about how TSL should be invoked. Currently it runs by default and relies on global variables. If that approach continues, then set
should become global and inhabit a TSL-specific namespace. However, this is generally considered a bad idea.
IMO, allowing defaults to be overwritten with invoking TSL makes most sense.
TSL "supports" the -
syntax, but all it does is skip the term (treat it like a common word) rather than removing pages from the results that match the term.
ESLint can help with catching style and syntax errors.
A subset of rules should be selected, and committed to the repository as a .eslintrc.json
file.
The HTML is built, and then inserted as a block into the page.
One of the first things built is the duration info. The search has happened, but not the building of results. This skips over a fairly reasonable chunk of work.
Though less linear, I recommend building all other HTML first, then prepending the results found + search time information.
The tab name s updated with the number of results, but only for the first search.
"forrest" has 7 results and leads to:
(7) Tipue Search
Every subsequent search keeps the 7, rather than updating each time.
demo/index.html does not reset the timer when searching two times in a row the same word.
This leads to the timer displaying search times like 1610.32 seconds.
When search contains
...
The whole text gets displayed in bold, including all results from all other search results.
[
opening square brackets lead directly to error.
(This is not always true because e.g. "[ ", with a space as part of term works, but the problem should still be handled).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.