06-07-2022 03:39 AM
Hi,
I'm using the search API and technically it works : I mean I'm able to have a result .. but the result is pretty weird
My query is something like
$ curl -X POST \ "http://localhost:8080/alfresco/api/-default-/public/search/versions/1/search" \ -H "accept: application/json" -H "authorization: Basic YWRtaW46YWRtaW4=" \ -H "Content-Type: application/json" \ -d "{ \"query\": { \"query\": \"irfm:docId:*\" }}"
I put in in a simple script that take the research pattern in argument
./search.sh irfm:docId:I0001??????
term = irfm:docId:I0001?????? result = 1552
./search.sh irfm:docId:I0002??????
term = irfm:docId:I0002?????? result = 1000
(in that case it's really astonishing to have such a round result .. )
./search.sh irfm:docId:I0003??????
term = irfm:docId:I0003?????? result = 960
./search.sh irfm:docId:I0004??????
term = irfm:docId:I0004?????? result = 0
Ok this could be fine but when I verify and try to look at every nodes the result is NOT the sum of all subresults
./search.sh irfm:docId:I000???????
term = irfm:docId:I000??????? result = 1040
It's the same result with the star wildcard ..
./search.sh irfm:docId:I000*
term = irfm:docId:I000* result = 1040
..
What am I doing wrong ?
Thanks in advance
Explore our Alfresco products with the links below. Use labels to filter content by product module.