miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
The Other miniBB Support Forums / The Other /  
 

Search Modes and Results

 
Author cmarangon
Partaker
#1 | Posted: 22 May 2018 23:22 
Hello!

Question:
In my forum I search for the word "cat" and for the word "giraffe".

It returns 1 result for "cat" and 4 results for "giraffe".

How can I make it write:

Result, in the singular, when I search for "cat"
and
Results, in the plural, when I search for "giraffe"?

Author cmarangon
Partaker
#2 | Posted: 23 May 2018 02:11 
How can I search in both FIELDS, TOPICS and MESSAGES?

Author Paul
Lead Developer 
#3 | Posted: 23 May 2018 13:13 
cmarangon:
In my forum I search for the word "cat" and for the word "giraffe".
Do you mean that when searching, you specify these two words at once, or do you searcgh separately for each word? Not quite sure I understood your question.

cmarangon:
How can I search in both FIELDS, TOPICS and MESSAGES?
You could only search in Titles or Messages, not both at once. In the most recent versions of miniBB, if no results are found in some field, you will be suggested an auto-link to search in the other field.

Titles are the most important on the forum, so you should care about their quality at first, boosting them with all the top keywords which could be used in search to find them.

Author cmarangon
Partaker
#4 | Posted: 24 May 2018 03:19 
Hi Paul!

I will try to elaborate a best text.
I will use your forum as example, because it is in English, easier to access and working fine.


Acessing

linktominibb forum /index.php?action=search

we have as option to choose in FIELD

TOPIC TITLES
MESSAGES

So it gives us the option to choose TOPIC TITLES OR MESSAGES.

This means that when I choose TOPIC TITLES I automaticaly exclude search for a word in MESSAGES and vice-versa.
.
But lets suppose that I need to search in TOPIC TITLES AND MESSAGES.
.
Lets again suppose that I have the word toad that is found 2 times in TOPIC TITLES and 3 times in MESSAGES.
This word will appear 5 times if I look in both fields simultaneously.

So my question,

Is there a way to choose search for a word in TOPIC TITLES AND MESSAGES simultaneously?
at the same time?

So FIELD should have another option
something like:

1 - TOPIC TITLES
2 - MESSAGES
3 - TOPIC TITES & MESSAGES

Kind regards,

Carlos

Author Paul
Lead Developer 
#5 | Posted: 24 May 2018 17:19 
I already wrote above: you could only search in Titles or Messages, not both at once.

In the newer version this is extended. For example, searching by "cantains" brings nothing by default. But there is a link to "Search: Fields: Messages", clicking it you are switched to another mode, and there is a record found.

That's how it works at the moment. No other ways are planned to implement. Searching in many fields at once would mean we need to cache/replicate titles and messages in a standalone separate field, that would make the database size 2x larger. Implementing it with default mySQL commands makes it hard to execute on big DBs.

You can also install Google search tool, when it indexes your forum, it will search for absolutely everything.

Author Paul
Lead Developer 
#6 | Posted: 24 May 2018 17:26 
Also, it seems I understood your very first question. So, if only one record is found, you'd like to display:

Result found: 1
And not like now:

Results found: 1
Right?..

If so, I could give you the steps how to make it possible, but it will require to modify your forum's core script, and my 1st question - is it so important?

The Other miniBB Support Forums / The Other /
 Search Modes and Results
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑