Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
Wiki usage
Tutorials
FAQ
License

Full text search architecture



The Full text search is performed by applying Elasticlunr to the search term in the Search template HTML page.

The list of results contain for each relevant article found in the search:
  • The article name
  • The article metadata
  • The article URI
After the articles are found, the HTML page is constructed dynamically for each article in the list of results:
  • An item is added to the list with the article URI, and the article metadata
  • If possible, a context for the result is added by looking for the DOM content of the article page

fulltextsearcharchi
It is only possible to get the context of the search for the html format if the wiki uses the HTTP Server[1]
See Cross-origin resource sharing for more information
.

Adding the context of the result

Looking for the context of the result is performed by looking at the DOM content of each article found in the list of results:
  • For the help format, it is performed in the help application using jsoup
  • For the html html format, it is only possible to get the context of the search for the html format if the wiki uses the HTTP Server.
In both cases the algorithm will look for the DOM content of each articl, beginning with the start of the article "real" content, which is tagged by the "articleContent" tag in the associated div element class attribute at the start of the article content.
There can be other div elements before the start of the article content (for example to group the table of content), or after the start of the article content, but in this case there will be no "articleContent" in its associated class attribute.

Notes

  1. ^ See Cross-origin resource sharing for more information

See also


Categories: Development

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help