# SEO Query
# Description
An SEO query request takes a user-friendly URL and translates it into an actual query which can then fetch the required results. It uses the SEO translator to convert the SEO URL back into a query that is readable by 1search. iNav and aspect query does this as well but they generate an SEO URL that is then converted back into the original query instead of just providing the SEO URL.
The translation from an SEO URL to an actual query can be configured in the SEO config
# Benefits of an SEO Query
An SEO query is mutually exclusive to a regular q= query.
Meaning that they cannot be executed at the same time in the same query but
both perform the same task.
# Syntax
sq=<SEO Name>|/<SEO value1>/<SEO value2>/.../<SEO valueN>/&<Other Request (not q=)>
# Attributes
Note: all attributes marked with * are required.
- SEO Name*: The name of the configured SEO, you may have multiple SEO's in one instance
- Facet*: The facet to filter by, can have any number in the search
- Other Request*: This is so that the query will actually be able to filter the results
# Example One
# Code
?sq=books|/Fantasy/Harry Potter/&sr=|Price||
This query produces a list of all the aspects and facets for any item that it finds matching the search filters used in the query. In this case, it is sorting by Price and is searching for fantasy books in the Harry Potter series. The result displays all Harry Potter books found if they are a Fantasy book.
# Example Two
# Code
?sq=books|/Fantasy/2010/&inav
This will produce an iNav of the filtered searches instead of the search results. It will still search for Fantasy genres but will now also search for ones made in 2010.
