Search API - problem with dash

cancel
Showing results for 
Search instead for 
Did you mean: 
mbikl
Member II

Search API - problem with dash

Hi,

I use search API (alfresco/api/-default-/public/search/versions/1/search)

I want to search *MF-42/2020/70-2* in the field MF-AISGSmiley Very HappyokumentCisloJednaciEvidencni. If I use the query below, I get nodes with MF-42/2020/70-1, MF-42/2020/70-2, MF-42/2020/70-3.

Why? How to search only MF-42/2020/70-2?

 

Thank you.

Martin

 

QUERY:

{
"query": {
    "query": "(MF\\-AISGSmiley Very HappyokumentCisloJednaciEvidencni:\"*MF-42/2020/70-2*\")"
},
"include": [
"properties"
],
"scope": {
    "locations": [
 "nodes"
]
}
}