search
property in the configuration file or the command-line:
search=anchors
To allow search for the article titles, the table of content titles, and add a full text search:search= titles fullTextSearch=trueTo allow search for the article titles only:
search=articles
To disable search entirely:
search=false
function getArticles() { var articles = [{"name": "a element","id": "a_element","category": "articles","title": "","titleID": "","url": "articles/article_syntaxlink.html"}, {"name": "access to external links","id": "access_to_external_links","category": "articles","title": "","titleID": "","url": "articles/article_externallinks.html"}, {"name": "algorithm","id": "algorithm","category": "articles","title": "","titleID": "","url": "articles/article_algorithm.html"}, {"name": "ant integration","id": "ant_integration","category": "articles","title": "","titleID": "","url": "articles/article_ant.html"}, {"name": "api basic tutorial","id": "api_basic_tutorial","category": "articles","title": "","titleID": "","url": "articles/article_tutorialapi.html"}, {"name": "api documentation elements basic tutorial","id": "api_documentation_elements_basic_tutorial","category": "articles","title": "","titleID": "","url": "articles/article_tutorialapidoc.html"}, ... {"name": "wiki status","id": "wiki_status","category": "titles","title": "example","titleID": "example","url": "articles/article_showstatus.html"}] return articles; }
search=anchors
In that case the Search box will search for article titles, table of content sub-titles, and anchors. Clicking on a link will navigate to the corresponding article, title, or anchor.
searchable
attribute.<article desc="the article"> <title title="first chapter"/> the first chapter <title level="2" title="second chapter"/> the second chapter <title title="examples" searchable="false"/> text inside the second chapter </article>Here the titles in the article are searchable and as such are included in the search except the "examples" title.
elasticlunr
JavaScript library. However, the version of the JavaScript library shipped with the generator is compatible with it, so the full-text search will still work if you use the shipped library as isjava -jar docGenerator.jar -input=wiki/input -output=wiki/output -search=true java -jar docGenerator.jar -input=wiki/input -output=wiki/output -search=articlesExample with search on articles and titles, without full text search:
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -search=titles
Example with search on articles and titles, with full text search:
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -search=titles -fullTextSearch=true
Example with search on articles and titles, with full text search and maximum index compression:
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -search=titles -fullTextSearch=true -fullTextSearchCompressionLevel=maximum
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.