Hi,
I created my own model and node type (mycustomtype). Now I would like to search according to these parameters via Share. I know how to create own form in advanced search, but I would like to define a search query (and / or for individual properties).
Is it possible?
Thank you.
Solved! Go to Solution.
Hi @miroslav
You should be able to search for properties like so:
dc:company:Hyland
This will limit search against a single property (dc:company).
To test this I created a custom content type called Whitepaper (following this example). This has 3 properties, one being dc:company
I created a Whitepaper and added Hyland as the company. Search for dc:company:Hyland returns one result:
I also created a standard document & added the word "Hyland" in the name, title, body & description. Searching for "Hyland" returns only this document:
Searching for dc:company:Hyland or TEXT:Hyland returns both documents.
HTH,
Hi @EddieMay , thank you for reply! The blog is realy usefull.
I will ask differently, is it possible to use filter queries in Share application like "cm:creator:user1 OR cm:creator:user2"?
You can perform search strings in different syntaxes:
https://docs.alfresco.com/search-enterprise/concepts/searchsyntax-APIs.html
The most common is AFTS, that has a wide variety of operators:
https://docs.alfresco.com/search-enterprise/concepts/searchsyntax-intro.html
Thank you @angelborroy , is it possible to execute this query in Share (live/simple/advanced)? I have two property and would like to achieve conjunction (OR). Something like this
Hi @miroslav
Search tips shows you can search against such terms. It has an example of using
creator:username
but creator:username searches against all nodes, including folders, etc.
This result looks like it searched for "admin" or "eddie" everywhere, including within document text, titles, etc.
Hi @miroslav
You should be able to search for properties like so:
dc:company:Hyland
This will limit search against a single property (dc:company).
To test this I created a custom content type called Whitepaper (following this example). This has 3 properties, one being dc:company
I created a Whitepaper and added Hyland as the company. Search for dc:company:Hyland returns one result:
I also created a standard document & added the word "Hyland" in the name, title, body & description. Searching for "Hyland" returns only this document:
Searching for dc:company:Hyland or TEXT:Hyland returns both documents.
HTH,
Thank you, the problem was with solr indexing. You can enter FTS expressions in the simple search field and that's exactly what I need.
Hi @miroslav
Thanks for updating your thread & great news that you got it fixed.
Cheers,
@EddieMay wrote:Hi @miroslav
You should be able to search for properties like so:
dc:company:Hyland
This will limit search against a single property (dc:company).
To test this I created a custom content type called Whitepaper (following this example or thishttps://homework-writer.com website). This has 3 properties, one being dc:company
I created a Whitepaper and added Hyland as the company. Search for dc:company:Hyland returns one result:
I also created a standard document & added the word "Hyland" in the name, title, body & description. Searching for "Hyland" returns only this document:
Searching for dc:company:Hyland or TEXT:Hyland returns both documents.
HTH,
There are some things that I do not know. Thanks a lot!
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.