Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-07

Searchable docs online

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hello,

Given the questions of late, I have created a search page for the docs:

https://www.freepascal.org/docsearch/docsearch.html

This will search in the manuals, and in the reference documentation for the units.

There is ample room for improvement, but the page already works.

Things to improve:
- Allow 'contains'
- Allow 'minimum rank' (rank is the number of times a word appears in a page)
- Allow to specify in which manual you want to search.
- Integrate searching in the doc pages themselves.

The underlying mechanisms for this search are 100% FPC based: fpindexer, fcl-web, and the webpage logic is done using pas2js. (meaning you need to have Javascript enabled)

Feedback and comments welcome.

Michael.

Reply by email

Rainer Stratmann
to Michael Van Canneyt

Is the server itself written in freepascal?
Or is it apache or nginx?

Michael Van Canneyt wrote 27 lines
Hello, Given the questions of late, I have created a search page for the docs: https://www.freepascal.org/docsearch/docsearch.html This will search in the manuals, and in the reference documentation for the units. There is ample room for improvement, but the page already works. Things to improve: - Allow 'contains' - Allow 'minimum rank' (rank is the number of times a word appears in a page) - Allow to specify in which manual you want to search. - Integrate searching in the doc pages themselves. The underlying mechanisms for this search are 100% FPC based: fpindexer, fcl-web, and the webpage logic is done using pas2js. (meaning you need to have Javascript enabled) Feedback and comments welcome. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email

Michael Van Canneyt
to Rainer Stratmann
Rainer Stratmann wrote
Is the server itself written in freepascal? Or is it apache or nginx?

The search server is a single program which is switchable between CGI and standalone HTTP server using a define.
I use HTTP server for development, it is deployed as CGI.

Michael.

Reply by email

Jan Kampherbeek
to Michael Van Canneyt: Given the questions of late, I have created a search page for the docs:…

Thanks! This comes in very handy :-)

Jan Kampherbeek

Op 5-7-2018 om 15:50 schreef Michael Van Canneyt:

Show quoted text 29 lines
Hello, Given the questions of late, I have created a search page for the docs: https://www.freepascal.org/docsearch/docsearch.html This will search in the manuals, and in the reference documentation for the units. There is ample room for improvement, but the page already works. Things to improve: - Allow 'contains' - Allow 'minimum rank' (rank is the number of times a word appears in a page) - Allow to specify in which manual you want to search. - Integrate searching in the doc pages themselves. The underlying mechanisms for this search are 100% FPC based: fpindexer, fcl-web, and the webpage logic is done using pas2js. (meaning you need to have Javascript enabled) Feedback and comments welcome. Michael. _______________________________________________ fpc-pascal maillist  -  http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email

Michael Van Canneyt
to Ryan Joseph
Ryan Joseph wrote
Just tried to use https://www.freepascal.org/docsearch/docsearch.html and it seems to have a bug (not working, errors in the JS console). Awaiting the source on svn also. :)

Possibly, I have been doing some experiments. I have re-enabled it.

It is now also referred to from the main docs page: https://www.freepascal.org/docs.var

The search term edit box now has type-ahead enabled.

Sources (webpage/server) can be found on:
https://svn.freepascal.org/svn/html/docsearch/

The server needs the latest fpindexer:

https://svn.freepascal.org/svn/fpc/trunk/packages/fpindexer/

The indexer works using postgres, but sqlite, firebird (in fact any SQLDB DB) are also supported. There is also support for a custom file format.

The "client" is written in pas2js.

So it comprises now a full-fledged example of how FPC can be used as a full-stack web development environment.

In a couple of moments, I will commit a more general version of the HTML searchengine under fpindexer examples.

Michael.

Reply by email