• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Implemented Search Operators?

gordy

Well-known member
#1
Would be cool ala Google

example:
X Y ( X's or Y )
X -Y ( all X no Y )
+X +Y ( both X and Y )
" X Y " ( string search )

please? :)
 

Mike

XenForo developer
Staff member
#2
You can do all of that. Except "X Y" isn't X or Y in Google (or here), it's X and Y (or at least very close to it). Or is implemented through | (ie, X | Y).

I have analyzed some search strings that users have used on other boards, and there effectively weren't any boolean operators being used. Even quotes were exceedingly rare.
 

gordy

Well-known member
#3
Okay great! I didn't dig deep enough, I tried it before posting and the minus operator didn't subtract on topic title.

Just tried it again and works as you state :
xenfora -meaning didn't subtract since both words were in the title
xenfora -Spanish subtracted since Spanish was in the body
 

Mike

XenForo developer
Staff member
#4
I'm surprised it's doing that, but I think that might be down to how MySQL is handling it.
 

Tigratrus

Well-known member
#5
You can do all of that. Except "X Y" isn't X or Y in Google (or here), it's X and Y (or at least very close to it). Or is implemented through | (ie, X | Y).

I have analyzed some search strings that users have used on other boards, and their effectively weren't any boolean operators being used. Even quotes were exceedingly rare.
Excellent.
 

gordy

Well-known member
#6
I have analyzed some search strings that users have used on other boards, and their effectively weren't any boolean operators being used. Even quotes were exceedingly rare.
Or poorly executed, more often I've had to google search my own forums (vB) for clarity just to get the right result -
 
F

Floris

Guest
#7
Ok, removed from my big list of things to test .. :)

I think it's great that you can use -minusthis in a search. Using it daily in google to get actual results. If only Google would have --remove:seospam :D
 

Disjunto

Well-known member
#8
I have analyzed some search strings that users have used on other boards, and there effectively weren't any boolean operators being used. Even quotes were exceedingly rare.
I never bother with complex search strings, because most sites don't seem to give me different results with them