Search for an exact word

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

Search for an exact word

Jump to solution

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

1 Solution

Accepted Solutions

Re: Search for an exact word

Jump 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

Software Engineer in Alfresco Search Team.

View solution in original post

4 Replies
Community Manager
Community Manager

Re: Search for an exact word

Jump to solution

Try something like this:

To search for an exact term, prefix the term with "=". This ensures that the term will not be tokenized, therefore you can search for stop words. If both FTS and ID base search are supported for a specified or implied property, then exact matching will be used where possible.

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.

Re: Search for an exact word

Jump 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

Software Engineer in Alfresco Search Team.

View solution in original post

niele
Active Member

Re: Search for an exact word

Jump to solution

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).

Re: Search for an exact word

Jump to solution

Yes, that was private. I opened the ticket yesterday.

Software Engineer in Alfresco Search Team.