> ## Documentation Index
> Fetch the complete documentation index at: https://labs.laer.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# dtSearch

### Supported dtSearch syntax

Epiq AI supports dtSearch by translating a subset of dtSearch syntax into Lucene syntax. Below is a list of examples of dtSearch syntax Epiq AI supports.

| Type                   | Search String     | Description                          |
| ---------------------- | ----------------- | ------------------------------------ |
| **Proximity**          | a w/5 b           | a must occur within 5 words of b     |
| ​                      | not (a w/5 b)     | must not have a within 5 of b        |
| ​                      | a pre/3 b         | a must occur within 3 words before b |
| ​                      | (a pre/3 b) w/7 c | nested proximity                     |
| ​                      | "a b" w/5 b       | quoted phrase support in proximity   |
| ​                      | a w/5 b\*         | wildcard support in proximity        |
| ​                      | (a or b) w/5 c    | Proximity OR                         |
| **Regular expression** | "##\[a-b]\{3}"    | Regex support                        |

### Unsupported dtSearch syntax

This dtSearch syntax is not currently supported by Epiq AI but it can be rewritten in Lucene syntax that is supported:

| dtSearch String  | Lucene equivalent                                                | Description                                                           |
| ---------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------- |
| a not w/2 b      | (a NOT "a b"\~2) AND (a NOT "b a"\~2)                            | a must occur, but not within 2 words of b                             |
| (a and b) w/10 c | (a AND b) AND ("a c"\~10 OR "c a"\~10 OR "b c"\~10 OR "c b"\~10) | a and b must both occur, either a or b should be within 10 words of c |
