MyBB Community Forums

Full Version: Searching on keywords
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
In \inc\functions_search.php there is a function clean_keywords_ft(), which gives one plus:
background subscription => +background subscription
subscription background => +subscription background

and Fulltext search needs syntax (in sql):
For "all" => +background +subscription
For "any" => background subscription
^ thank you for tracing them Smile
Thanks, .m. Smile
Other forums have combobox or radio buttons for All/Any words (terms).
Without that, IMO, mybb should assume ALL, unless there is any advanced element OR,+,-,*,|,(,)

From kramsman's link:
'+apple macintosh'
Find rows that contain the word “apple”, but rank rows higher if they also contain “macintosh”.

So that is what is produced.
The radio box approach makes this much more transparent. It is confusing otherwise.

Thanks again for the help. I learned something!
Pages: 1 2