Hi guys!

I have a recipes website, and I would like to optimize my search module to sort my results by title depending of if the keyword is in the title or not.
Example: if the keyword is "Pumpkin", I want to have the recipe "pumpkin Pie" before the recipe "Autumn Pie" which has the keyword pumpkin in its content, but not in the title (even if it has more often the word "pumpkin" in its content than the recipe Pumpkin pie).
I already change the weight of the keywords importance in the admin side, but it doesn't do the work.

Does anyone knows if a module does that? or how I could do that?

Thanks a lot.

Comments

jhodgdon’s picture

Status: Active » Fixed

Please ask this question in the support forums or IRC. This is the issue queue for Drupal Core issues, not a support forum. Thanks! (click on Community and Support in the header of drupal.org to find more information)

Anonymous’s picture

Assigned: voxy » Unassigned
Priority: Major » Normal
Status: Fixed » Active

I'm confused on this one. The op is filing a support request. Why should they move to the forum then?

Opening for now.

jhodgdon’s picture

Status: Active » Fixed

The "support request" category is provided so that contributed modules can use the issue queue to provide support.

I am the only person that reads Drupal Core issues in the "search.module" component, and due to many other responsibilities in the Drupal community, I don't personally have time to answer your support question.

Which is why I suggested that you go ask it in one of the community's actual support channels.

Anonymous’s picture

<?php 

if ($project != 'Drupal Core') {

print 'support request', so that @jhodgdon can get some sleep; 

} else {

print 'get more coffee or volunteers'. 

?>

;-) Anyway kidding aside, back on topic.

@Voxy

You might try to build a view for your search result, you can set it up so that it searches the title only.
Also take a look at the Apache Solr and the Lucene API module. I'm not sure if they will be able to do what you are looking for. Have never heard of anything like this before, does not mean it does not exist. Please try your post in the forum if those modules don't help, as jhodgdon requests.

Hope it helps.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.