10-13-2022 04:08 AM
Hello everyone,
I am trying to execute this query :
{ "query": { "language":"afts", "query":"PATH:\"/app:company_home//*\" AND =gda:typePJ:\"PJ-*\" AND EXACTTYPE:\"cm:content\" AND cm:modified:[2020-01-01T00:00:00 TO 2100-06-30T01:00:00] AND ASPECT:\"marche:AspectExclusion\" AND NOT gda:etat:\"Trait\u00E9 en erreur\"" }, "paging":{ "skipCount":0, "maxItems":50 } }on the search API using postman, but the query result shows me documents that does not satisfy my conditions, for example it shows a document that has a gda:typePJ = "PES PJ" which does not match the wildcard PJ-* !
10-17-2022 08:22 AM
Still waiting for an answer...
10-17-2022 10:28 AM
Hi:
Did you try without the = in the query ? Does this new query work as expected ?
I can't say what's happening, but and exact match with a wildcard does not have much sense for me.
You may use TO NOW instead of TO 2100... for cm:modified. I think you can ignore the PATH query too.
Try to do queries from the biggest query to smallest results, looking how the query results are filtered. This allows you to check each part of the sentence / condition that you are using.
Regards.
--C.
10-19-2022 06:01 AM
Hello @cesarista,
Thank you for your reply,
I have tried to do it without the =, and the result was the same nothing has changed. I think the reason why is that my metadata has a tokenized index, so that the blank spaces in the senteces causes this disfunction. Due to that, I want to know is there any way to force Alfresco Search Service to search for the exact phrase that contain blank spaces even if its metadata is tokenized ?
10-19-2022 06:10 AM
Do you have the exact term search enabled?
https://docs.alfresco.com/search-services/latest/config/indexing/#exact-term-search
By default, this feature is disabled.
10-19-2022 08:43 AM
Yeah the cross locale configuration was done in Solr :
10-19-2022 09:37 AM
Those lines need to be uncommented.
And you need to re-index after uncommenting them.
Explore our Alfresco products with the links below. Use labels to filter content by product module.