I faced with strange (for me) problem.
When I query with (for example)
SITE:"test" and TYPE:"test:myDoc"
I get a lot of nodes.
Now I add an optional aspect to only 2 of previous nodes and try to get such nodes with
SITE:"test" and TYPE:"test:myDoc" and ASPECT:"test:myAspect"
Responce on node browser is: zero results. But If I cut the SITE part of the query and use:
TYPE:"test:myDoc" and ASPECT:"test:myAspect"
I get only the 2 nodes!
The problem is that I cannot cut the SITE part of the query.
Would anyone know how to solve this strange problem?
I'm stuck.
Thanks in advance.
Solved! Go to Solution.
Solved!
Write here the solution for others with the same or similar problem.
I performed a full reindex with solr (as described on documentation) and now I get correct results. Now both the 2 query:
SITE:"test" and TYPE:"test:myDoc" and ASPECT:"test:myAspect" TYPE:"test:myDoc" and ASPECT:"test:myAspect"
return 2 nodes!
I did never heard about SITE keyword in fts queries, but have you tried specifying PATH instead of SITE? PATH would be something like "app:company_home/st:sites/cm:test". I don't remember exactly the namespaces, but you can find this path searching site's document library noderef in node browser
Thank you, Narkuss, for the answer.
Before to post the message I tryed the PATH alternative with the same (identical) problem.
SITE is a special field.
You can find the complete list here.
Solved!
Write here the solution for others with the same or similar problem.
I performed a full reindex with solr (as described on documentation) and now I get correct results. Now both the 2 query:
SITE:"test" and TYPE:"test:myDoc" and ASPECT:"test:myAspect" TYPE:"test:myDoc" and ASPECT:"test:myAspect"
return 2 nodes!
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.