alfresco_fts query

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

alfresco_fts query

Jump to solution

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.

1 Solution

Accepted Solutions
Highlighted
Active Member II

Re: alfresco_fts query

Jump 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!

View solution in original post

3 Replies
Highlighted
Established Member II

Re: alfresco_fts query

Jump to solution

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

Highlighted
Active Member II

Re: alfresco_fts query

Jump to solution

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.

Highlighted
Active Member II

Re: alfresco_fts query

Jump 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!

View solution in original post