thegrumpys / odop

Open Design Optimization Platform (ODOP) - Coil spring design app; mechanical springs; compression spring, extension spring, torsion spring
https://www.springdesignsoftware.org
MIT License
4 stars 5 forks source link

Filter Help Lookup blurb amount by Page, Sentence, and Word. #693

Open grumpyinca opened 2 years ago

grumpyinca commented 2 years ago

As a continuation from #684, a desired refinement for the full-text Help Lookup facility is to Filter the size of the "blurb" by Page, Sentence, and Word. See also: #689.

Specifically, the number of pages (Help topics) displayed in the blurb should be limited to a maximum of approximately 10. The number of sentences captured in the blurb should be limited to a maximum of approximately 10. The word length of an entry in the blurb should be limited to span from the beginning of the sentence or approximately 10 words before the term to the end of the sentence or approximately 10 words after the term.

See these items for pagination of the blurb presentation when the number of pages goes beyond the maximum: https://react-bootstrap.github.io/components/pagination/ https://github.com/react-bootstrap-table/react-bootstrap-table2/blob/master/packages/react-bootstrap-table2-paginator/README.md

grumpyinca commented 2 years ago

I suggest the current master branch response to a Help Lookup term of "+hook +stress" is good justification for developing Sentence and Word limits. More specifically, it shows that the system really needs matching for complete phrases.