Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

In similar question when asking, is it possible to give more weight to a word when the question title is shorter

0 votes
For example, let's say you are asking something about word1. Question A and B both have word1 in their title but question A has only 2 words and question B has 6, I'd like Question A to have a better score.
related to an answer for: Usage and regularity of the search-box
asked Jun 2, 2011 in Q2A Core by Mélanie

1 Answer

0 votes

The short answer is... not easily at all. You can see the query that Q2A uses to find related posts in function qa_db_related_qs_selectspec(...) in qa-db-selects.php - there's no straightforward way to modify this query to take account of the number of words in the title of each potentially related post, though no doubt it could be done, with a little more nesting of subqueries.

answered Jun 3, 2011 by gidgreen
Well... I'll dig! :) Just to specify ) I'm looking to modify the questions that are proposed when you ask a question, which use the search methode. Thanks!