---
title: Enumeration: KlevuTypeOfSearch
slug: klevucore-reference/enumeration-klevutypeofsearch
docTags: 
createdAt: 2023-11-09T09:45:59.073Z
---

 / [Exports](docId:7vdpEs-8-0Tv_43dyA7ly) / KlevuTypeOfSearch

## Table of contents

### Enumeration Members

- [And](docId:3FsfdwGnKdoXmw8Q6AiU3)
- [Default](docId:3FsfdwGnKdoXmw8Q6AiU3)
- [FuzzyAnd](docId:3FsfdwGnKdoXmw8Q6AiU3)
- [FuzzyOr](docId:3FsfdwGnKdoXmw8Q6AiU3)
- [Or](docId:3FsfdwGnKdoXmw8Q6AiU3)
- [WildcardAnd](docId:3FsfdwGnKdoXmw8Q6AiU3)
- [WildcardOr](docId:3FsfdwGnKdoXmw8Q6AiU3)

## Enumeration Members

### And

• **And** = `"AND"`

All of the exact words of a query must be found in a record for it to be
included in the results. No fuzziness or wildcards are included.

For example a search for "hooded jacket" will only return records which
contain the exact terms "hooded" AND "jacket".

### Defined in

[models/KlevuTypeOfSearch.ts:64](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L64)

***

### Default

• **Default** = `"DEFAULT"`

When this value is specified, Klevu will go through a number of attempts to
find matching records. The first type attempted is WILDCARD\_AND. If there
aren't any results found, Klevu tries to find products with the FUZZY\_AND
query type.

As long as no matches are found, Klevu will continue to fire different query
types in the following order:

WILDCARD\_AND
FUZZY\_AND
WILDCARD\_OR
FUZZY\_OR
Note that when a search term only contains a single word, or more than six
words, the 'OR' query types will be skipped.

### Defined in

[models/KlevuTypeOfSearch.ts:18](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L18)

***

### FuzzyAnd

• **FuzzyAnd** = `"FUZZY_AND"`

This is the same as a WILDCARD\_AND query, however a certain amount of
'fuzziness' is allowed to account for spelling mistakes.

For example, if the searched query contains spelling mistakes like "hooder
jakcet", Klevu will still be able to match any records containing the words
"hooded" AND "jacket".

### Defined in

[models/KlevuTypeOfSearch.ts:37](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L37)

***

### FuzzyOr

• **FuzzyOr** = `"FUZZY_OR"`

This is the same as a WILDCARD\_OR query, however a certain amount of
'fuzziness' is allowed to account for spelling mistakes.

For example, if the searched query contains spelling mistakes like "hooder
jakcet", Klevu will still be able to match any records containing the words
"hooded" OR "jacket".

### Defined in

[models/KlevuTypeOfSearch.ts:56](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L56)

***

### Or

• **Or** = `"OR"`

At least one exact word of a query must be found in a record for it to be
included in a results. No fuzziness or wildcards are included.

For example a search for "hooded jacket" will only return records which
contain one of the exact terms "hooded" OR "jacket".

### Defined in

[models/KlevuTypeOfSearch.ts:72](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L72)

***

### WildcardAnd

• **WildcardAnd** = `"WILDCARD_AND"`

This is an 'AND' query so all words of the query must be found somewhere in a
record for it to be included in the results. The last word of the query will
have a wildcard suffix appended.

For example, if the searched query is "hooded jacket", this will become
"hooded jacket\*", ie. Klevu will try to find records containing the word
"hooded" AND any words beginning with "jacket".

### Defined in

[models/KlevuTypeOfSearch.ts:28](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L28)

***

### WildcardOr

• **WildcardOr** = `"WILDCARD_OR"`

This is an 'OR' query so at least one of the words in the query must be found
somewhere in a record for it to be included in the results. The last word of
the query will have a wildcard suffix appended.

For example, if the searched query is "hooded jacket", this will become
"hooded jacket\*", ie. Klevu will try to find records containing the word
"hooded" OR any words beginning with "jacket".

### Defined in

[models/KlevuTypeOfSearch.ts:47](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/models/KlevuTypeOfSearch.ts#L47)
