WixSearchBuilder
Contains functionality for refining a site search. Learn more.
Additional information about this section
Perform actions on an object
- and( )
Refines a search to match documents that meet the conditions of all of the specified filters.
- ascending( )
Adds a sort to a search, sorting by the specified fields in ascending order.
- descending( )
Adds a sort to a search, sorting by the specified fields in descending order.
- documentType( )
Refines a search builder to only search for documents of the specified document type.
- eq( )
Refines a search to match documents whose specified field value equals the specified value.
- facets( )
Categorizes search results according to the specified facets.
- find( )
Returns the documents that match the search.
- fuzzy( )
Sets whether to search for exact matches or approximate matches of the search phrase.
- ge( )
Refines a search to match documents whose specified field value is greater than or equal to the specified value.
- gt( )
Refines a search to match documents whose specified field value is greater than the specified value.
- hasAll( )
Refines a search to match documents whose specified field value contains all of the specified values.
- hasSome( )
Refines a search to match documents whose specified field contains any of the specified values.
- in( )
Refines a search to match documents whose specified field value equals any of the specified values.
- language( )
Refines a search builder to search in the specified language.
- le( )
Refines a search or filter to match documents whose specified field value is less than or equal to the specified value.
- limit( )
Limits the number of documents the search returns.
- lt( )
Refines a search or filter to match documents whose specified field value is less than the specified value.
- ne( )
Refines a search to match documents whose specified field value does not equal the specified value.
- not( )
Refines a search to match documents that do not meet the conditions of all of the specified filters.
- or( )
Refines a search to match documents that meet the condition of any of the specified filters.
- query( )
Sets the search phrase to search for.
- searchFields( )
Refines a search to include only certain fields.
- skip( )
Sets the number of documents to skip before returning search results.