Commit df2f71d6 authored by Marc Egger's avatar Marc Egger
Browse files

add documentation for advanced search of qfq docs

parent 5420a2bf
Pipeline #3515 failed with stages
in 2 minutes and 25 seconds
Searching Documentation
This page was copied from:
Read the Docs uses :doc:`/server-side-search` to power our search.
This guide explains how to add a "search as you type" feature to your documentation,
and how to use advanced query syntax to get more accurate results.
You can find information on the search architecture and how we index documents in our
:doc:`Search </development/search>` docs.
.. contents:: Table of contents
:backlinks: none
:depth: 3
Search query syntax
Read the Docs uses the `Simple Query String`_ feature from `Elasticsearch`_.
This means that as the search query becomes more complex,
the results yielded become more specific.
Exact phrase search
If a query is wrapped in ``"`` (double quotes),
then only those results where the phrase is exactly matched will be returned.
Example queries:
- https://docs.rea>
Exact phrase search with slop value
``~N`` (tilde N) after a phrase signifies slop amount.
It can be used to match words that are near one another.
Example queries:
Prefix query
``*`` (asterisk) at the end of any term signifies a prefix query.
It returns the results containing the words with specific prefix.
Example queries:
Fuzzy query
``~N`` after a word signifies edit distance (fuzziness).
This type of query is helpful when the exact spelling of the keyword is unknown.
It returns results that contain terms similar to the search term as measured by a `Levenshtein edit distance`_.
Example queries:
Build complex queries
The search query syntaxes described in the previous sections can be used with one another to build complex queries.
For example:
.. _Elasticsearch:
.. _readthedocs-sphinx-search:
.. _Simple Query String:
.. _Levenshtein edit distance:
\ No newline at end of file
......@@ -90,4 +90,5 @@ This documentation is for the TYPO3 extension **qfq**.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment