When performing a standard search through Alfresco Share which does a full text search using afts, does anyone know of a way to search for documents with an exact word? For example, if I knew my document contained the word "accessibility" I'd want a way to find only documents that have that exact word and not one of its alternate forms.
As it stands, if I do a simple search for "accessibility" it will also return documents containing words such as "accessible", or "access". This is nice except when you happen to know the exact form of the word you want. I had hoped the equals operator would do what I'm asking but it appears it doesn't work the way I thought it would reading the docs (https://docs.alfresco.com/5.2/concepts/rm-searchsyntax-exact.html).
I saw in another similar thread that there might be a ticket open for exact term searching not working properly (https://issues.alfresco.com/jira/browse/SEARCH-1585) but it's not publically viewable.
Currently using ACS 5.2.4 / Alfresco Search Services 1.3.0.5.
Thanks,
Neil
Solved! Go to Solution.
This is an open issue, exact term searching is not working at the moment.
For your reference:
https://issues.alfresco.com/jira/browse/SEARCH-1585
Try something like this:
For example, the following query will match running but will not be tokenized. If you are using stemming it might not match anything.
=running
For the cm:name field, which is in the index as both tokenized and untokenized, it will use the untokenized field. For example, =part will only match the exact term "part". If you use =part* it will match additional terms, like "partners". If there is no untokenized field in the index, it will fall back to use the tokenized field, and then, with stemming/plurals, it would match.
This is an open issue, exact term searching is not working at the moment.
For your reference:
https://issues.alfresco.com/jira/browse/SEARCH-1585
Okay, thanks for the clarification and for making that ticket publically available to view assuming you just did that (I swear I wasn't able to view it this morning).
Yes, that was private. I opened the ticket yesterday.
using = as prefix wont work in version below search services 2.0 to match exact results right?
@angelborroy pls rply
Hi @Yash_111
It's better to start a new thread explaining in full the issue you have and giving information about the environment, etc.
HTH,
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.