How to query with Comment?

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

How to query with Comment?

I want to query with tags and comments.

but I can't query with comments.

I thought If i create a same tag(with alfresco node) to comments. I could query with just tags.

So, I have tried create a tag to comments(give cm:taggable).

but, it does not work.

how to query with tags and comments?

3 Replies
Highlighted
Established Member II

Re: How to query with Comment?

I don't fully understand what and how - but I will try to point out where to get you the needed information.

Tag Search:

TAG:'SomeTag'

With any other simple property like 'comment' or description, you can simply do a fts query like this:
cm:description:'SomeDescription'

Full Text Search Query Syntax 

Highlighted
Senior Member II

Re: How to query with Comment?

I learned in another discussion (answer from Axel Faust‌) that searching for comments does not work like searching for tags or metadata, because the comments are not part of the documents. You can search for them, but you will find a document-associated discussion and would have to resolve the association to get the according document.

A workaround is to store the content of the comments in a metadata field of the document (i.e. by behaviour)...

A Tag query works like Markus Joos‌ described:    TAG:mytag   You can try it in the share search - but I think you already know that.

Highlighted
Established Member II

Re: How to query with Comment?

yes - sorry, I mistook comments for description!