cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 6.1.2 + Solr (AFTS): Exact phrase search not working

Sapo2020
Champ in-the-making
Champ in-the-making

Hi everyone,

I’m using Alfresco Content Services 6.1.2 with Solr-based Search Services and I need to implement an exact phrase search in document content.

Requirement:
When searching for a phrase such as “My document”, I want results ONLY when this exact phrase appears in the content in the same order.

Current behavior:
Using:
TEXT:"My document"
or:
ecm:poDeleted:='false' AND TEXT:"My document" AND TYPE:='ecm:ecmDocument'

I still get documents where “My” and “document” appear separately (not adjacent), even though I expect strict phrase matching.

I tried:
TEXT:="My document"

But I get parser errors when using '=' incorrectly before field names. Even when syntax is correct, matching still behaves tokenized.

Questions:
1. Is strict exact phrase search possible using AFTS in ACS 6.1.2 without additional Solr configuration changes?
2. If configuration is required, what needs to be enabled in Solr/Search Services (e.g. cross-locale, exactTermSearch)?
3. What are the recommended settings for enabling exact term search for d:content / cm:content?
4. Are there any performance or index-size side effects after enabling exact phrase search?

Any guidance is appreciated.

3 REPLIES 3

roberto_gamiz
Star Collaborator
Star Collaborator

Hello,

What versión of Alfresco Search Services are you using? 1.x o 2.x?  This blog post is covering this subject

https://connect.hyland.com/t5/alfresco-blog/exact-term-queries-in-search-services-2-0/ba-p/138445

With Alfresco 7.2 and ASS 2.0.11 seems works properly.

Regards




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer



Sapo2020
Champ in-the-making
Champ in-the-making

Hi, thanks for the reply.

I’m currently using:

  • Alfresco Insight Engine 1.4.3
  • Search Services 1.4.3
  • Apache Solr 6.6.5

From what I understand, the blog post you shared refers to Search Services 2.x, where exact-term queries are fully supported. However, since I’m on 1.4.3, it seems that strict exact-phrase matching may not work the same way (or may not be supported at all) without additional configuration or upgrading to 2.x.

If possible, could you confirm whether Search Services 1.4.3 supports exact-term search for multi-word phrases in AFTS, and whether there is any configuration change available for this version to enable strict adjacency and order matching in content?

Thanks again for your help.

Hello,

At the moment I have no access to an instalation with ASS 1.4 to test it, I'm going to try to configure one,  but acording to documentation

https://docs.alfresco.com/search-services/1.4/using/#search-for-an-exact-term

when you use exact term query is used (=field:“multi term phrase”) a full field mach is executed only when the defintion of the property in the content model (https://docs.alfresco.com/content-services/7.1/develop/repo-ext-points/content-model/#definedeploy) is  marked as TOKENIZED=false. In other cases, if cross locale is enabled  for the property used the tokenized version of the fiel not the original value anf if isn't a exception is raidsed.

Regards




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer