cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search: how to change default operator AND to OR

john_snow
Champ on-the-rise
Champ on-the-rise

Hi, guys

I am using alfresco 5.2, i have created a custom type and some properties and now i try to config the advanced search using my properties.

The problem is when i tape a search, i realize that the advanced searsh work with an AND operator between properties,

my fisrt question is; how can I change this default operator AND to OR  ?

my second question is: i have another property "Date of creation" and i want to search files created by range of date, exemple: file created BEETWEEN dd/mm/yy AND dd1/mm1/yy1

Thank you

4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator

A quick google turns up this Add-On from Contezza:

Alfresco Share AND Search | Alfresco Add-ons - Alfresco Customizations

And another quick search turns up this thread with examples on doing Lucene date range queries:

Lucene query for a Date range

john_snow
Champ on-the-rise
Champ on-the-rise

Thank you Jeff, i will try this. 

john_snow
Champ on-the-rise
Champ on-the-rise

Hi jeff,

i tried the Add-on and this is not what i need, this add-on let's you change the OR to AND in the keyword search

in my case i have three custom proprty from a custom type, and i try to create an advanced search by my cutom proprties.

when i search Alfresco use the AND operator between my proprties,

advanced search 

any idea about this ?

thank's and sorry about my english.

Hi again

i've found the solution to change operator to OR by addinf this:


"<control-param name="mode">or</control-param>" to "share-form-config.xml" in the config section of cm:content

now i will try to rsolve yhe problem of tha rang search

thanks