---
updatedAt: 2025-06-12T21:54:47.000Z
agentTools:
  projectIndex: https://readme.gooru.org/llms.txt
---

# Query Syntax

As default AND operator applied for all the empty space between the query, for example if we\
search for “Water Power” internally it will converted as “Water AND Power”  by search query processor.

Gooru removes stop-words from the index. However, stop words are not removed from the query, which means “ocean” and “The ocean” will return slightly different results.

Search query term supports following patterns:

* Logical expression query
* Resource format filter query
* Prefix filter query
* Standard code query

## Logical Expression Query

Search query supports logical operators (AND, OR). If we pass AND and OR between search strings, query processor will take this query string as logical expression query. Only uppercase AND and OR considered as logical query operators.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Query
      </th>

      <th>
        Results
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        greek OR latin
      </td>

      <td>
        results matched with either greek or latin
      </td>
    </tr>

    <tr>
      <td>
        greek or latin
      </td>

      <td>
        results matched with “greek or latin”
      </td>
    </tr>

    <tr>
      <td>
        greek AND latin
      </td>

      <td>
        results matched with both greek and latin
      </td>
    </tr>

    <tr>
      <td>
        greek latin
      </td>

      <td>
        Same as greek AND latin. results matched with both greek and latin
      </td>
    </tr>

    <tr>
      <td>
        (greek OR latin) AND (science OR math)
      </td>

      <td>
        results matched with greek or latin  and science or math
      </td>
    </tr>
  </tbody>
</Table>

## Resource Format Filter Query

Resource format (webpage, video, text, image) string passed with query will be applied as resource format filter.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Query
      </th>

      <th>
        Results
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        power video
      </td>

      <td>
        Results filtered by **video** resource format
      </td>
    </tr>

    <tr>
      <td>
        atoms webpage
      </td>

      <td>
        Results filtered by **webpage** resource format
      </td>
    </tr>

    <tr>
      <td>
        water text
      </td>

      <td>
        Results filtered by **text** resource format
      </td>
    </tr>

    <tr>
      <td>
        ocean image
      </td>

      <td>
        Results filtered by **image** resource format
      </td>
    </tr>
  </tbody>
</Table>

## Prefix Filter Query

If filter name is prefixed with search query and passed with colon (ie. grade:12) then it will be considered as filter.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Query
      </th>

      <th>
        Results
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ocean grade:6,7
      </td>

      <td>
        Results filtered by grade value 6, 7
      </td>
    </tr>

    <tr>
      <td>
        publisher:”Windows to the Universe”
      </td>

      <td>
        Results filtered by publisher value Windows to the Universe
      </td>
    </tr>

    <tr>
      <td>
        aggregator:CLRN
      </td>

      <td>
        Results filtered by aggregator value CLRN
      </td>
    </tr>
  </tbody>
</Table>

## Standard Code Query

Gooru search supports search with standard code. If the search query matches with Gooru standard code, then query processor will internally apply standard code as standard code filter.

## Standards Supported By Gooru:

* [Common Core State Standards for Mathematics](http://www.corestandards.org/Math/)
* [Common Core State Standards for English Language Arts](http://www.corestandards.org/ELA-Literacy/)
* [Next Generation Science Standards](http://www.nextgenscience.org/next-generation-science-standards)
* [California State Standards](http://www.cde.ca.gov/be/st/ss/)
* [Texas Essential Knowledge and Skills (TEKS) Standards](http://www.tea.state.tx.us/index2.aspx?id=6148)
* [College, Career, and Civic Life (C3) Framework for Social Studies State Standards](http://www.socialstudies.org/c3)
* [Learning What Matters Competency Sets](https://sites.google.com/a/philasd.org/competencyeducation/competencies)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Query
      </th>

      <th>
        Results
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        CA.SCI.9-12.CH.2
      </td>

      <td>
        Results filtered by given standard code value CA.SCI.9-12.CH.2 and query  replaced by “all” query.
      </td>
    </tr>
  </tbody>
</Table>