SOLR Search Syntax

cancel
Showing results for 
Search instead for 
Did you mean: 
pedwards99
Partner

SOLR Search Syntax

Hi there,

Does anyone know the correct SOLR (fts-alfresco) search syntax when you want to search multi-valued properties?

I have a multi-value text property defined in my content model called msc:keywords and I want to find all documents where any msc:keywords = 'alfresco'

I'm using the Node Browser to enter the query.

Thanks

Paul

2 Replies
Jectpro
Member II

Re: SOLR Search Syntax

It's seems you‘d like to search a property.

you can try this:

@msc\:keywords:"alfresco"

also you can specify TYPE, ASPECT or PATH:

TYPE:"sc:type_name" 
ASPECT:"sc:aspect_name"
PATH:"/app:company_home/cm:test"

 If you want to match both:

+@msc\:keywords:"alfresco" +TYPE:"sc:type_name" 
or
@msc\:keywords:"alfresco" AND TYPE:"sc:type_name" 

math one of them:

@msc\:keywords:"alfresco" TYPE:"sc:type_name" 
or
@msc\:keywords:"alfresco" OR TYPE:"sc:type_name" 
angelborroy
Alfresco Employee

Re: SOLR Search Syntax

Did you tried this approach?

https://docs.alfresco.com/ags/tasks/rm-search-multiple.html

Hyland Developer Evangelist