Giter Site home page Giter Site logo

tipue-search-lite's People

Contributors

aqw avatar jonamfischer avatar tobiaskadelka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tobiaskadelka

tipue-search-lite's Issues

examine commTerms list

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.

document configuration deviations from TipueSearch

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.

simplify search code

The search code is quite verbose. A faster (and more readable) solution would be to use JavaScript's regex abilities.

page context does not always display matching terms

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).

TSL should be configurable without editing source

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.

"-" syntax doesn't negate

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.

setup ESLint

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.

timer should stop later

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.

tab name is updated only once

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.

handle special characters

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.