Search
Content is automatically indexed when it is created, modified, or uploaded in Cloud CMS. The index is across the Content properties and any attached file eg Word, PDF,..
Platform
![](/documentation/gitana/3.2/guide/guide/ui/search/search1.png)
Project
![](/documentation/gitana/3.2/guide/guide/ui/search/search2.png)
Project Search Settings
- go to Project Settings (left nav). Note: To have the Project Settings as an option you must have access: eg Tenant owner, or in the Project Manager Team
- select Search. The Project Search Screen can be updated and will apply the settings for the project only.
Search Syntax
Logic
| ------- | -------------- | -------------- | | Or | Search for documents that contain one or more of the key words. | banana apple (banana OR apple) | | And | Search for documents that contain all key words. | banana +apple (banana AND apple) | | Not | Search for documents that do not contain the key word after "NOT". | banana -apple (banana NOT apple) |
Wildcards
| --------- | ------------------- | -------------- | | ? | replace one character in a word | apple: ap?le | | * | replace an unknown number of characters in a word | apple: ap* | | ~ | append a word to enable fuzzy search | banana: bnanann~ |
Sample Usages in JSON
{
"query": {
"match_phrase" : {
"show" : "Game of Thrones"
}
}
}
Search for documents with a field "show" that matches any phrases start with "Game of T"
{
"query": {
"match_phrase_prefix" : {
"show" : "Game of T"
}
}
}
Search for documents that have "Stephen Hawking" in either field "title" or "author"
{
"query": {
"multi_match" : {
"query": "Stephen Hawking",
"fields": ["title", "author"]
}
}
}
Search for documents with text "US" or "States" in them
{
"query": {
"query_string" : {
"query": "US States"
}
}
}
Search for documents with the exact text "United States" in them
{
"query": {
"query_string" : {
"query": "\"United States\""
}
}
}