You can check your language configuration.
To verify that the index was created using the correct locale configuration:
curl -s '{$hostname}:9200/alfresco/_settings/' | jq
To check how your text is split into tokens:
curl -X GET "{$hostname}:9200/alfresco/_analyze?pretty" -H 'Content-Type:
application/json' -d'{"analyzer" : "locale_content", "text" : "I found a
dog."}'
Note: For a new environment ensure that the initial reindexing is run
first.
To verify that the content of a particular node has been correctly extracted and stored in the index:
curl -s {$hostname}:9200/alfresco/_doc/{$nodeId} | jq ._source
To execute a search query:
curl -s -u admin:admin --header "Content-Type: application/json" -d
'{"query":{"query":"dog","language":"afts"}}'
"{$hostname}:8080/alfresco/api/-default-/public/search/versions/1/search" | jq
.list.entries