cancel
Showing results for 
Search instead for 
Did you mean: 

search fragments not ANDed by default ?

mll
Champ in-the-making
Champ in-the-making
Hi,

On http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#Conjunctions, I read "If not otherwise specified, the search fragments will be ANDed together by default.".

Well, on my installation of Alfresco, this is not the case.

Searching for foo bar will return documents containing foo or bar.

Could it be that the wiki is wrong on this point?

Thanks
4 REPLIES 4

mll
Champ in-the-making
Champ in-the-making
Sorry for bumping this topic, but I really need to understand if the wiki is wrong or if my Alfresco server is misconfigured.

jpotts
World-Class Innovator
World-Class Innovator
The official documentation makes this clear:
http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/rm-searchsyntax-disjunct.htm...

The conjunctions page does not say that the default is "AND" while the disjunction page does say that the default is "OR".

I will change the wiki page accordingly.

Jeff

andy
Champ on-the-rise
Champ on-the-rise
Hi

At the API level you can set which one you want.
The wiki is correct - but you can set the default  behaviour on the Java Query API.
THe wiki refers to the default for this API.

There are places where the default behaviour is explicitly set by the client.

Share search explicitly asks for implicit OR as opposed to implicit AND.

CMIS CONTAINS() has implicit (and no explicit) AND.

Andy

haa05
Champ in-the-making
Champ in-the-making
Hi,

I have a ticket open at Alfresco to clarify how this can be changed.
Our users are definitely expecting "AND" (Google also uses AND as far as I know).

Arno