Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have a View with and Exposed Filter: Search: Search Terms to filter the view result based in the keywords entered in this filter.

I works, but not as I expected.

Lets say I have a node with the title "The car, a good transport". Then:

  • if I enter the keyword: car the node is shown
  • if I enter the keywords: car a good the node is not shown
  • if I enter the keywords: good car the node is not shown

Is this behaviour right? I need the node to be shown in all these situations

UPDATE: I see that there is already an open issue about this: http://drupal.org/node/1615438

share|improve this question
    
do you want that node "The car, a good transport" as result, if you enter anyone of above 3? –  Sathiya Feb 26 '13 at 5:24
    
yes that is what I need –  chefnelone Feb 26 '13 at 7:52
    
If you want to search nodes based on title alone, you can try with Node:title instead of Search:search terms in filter section and select the operator as "Contains any word". –  Sathiya Mar 1 '13 at 6:44
    
good idea, but I also need to search into the body of the node. –  chefnelone Mar 1 '13 at 10:39
    
@Sathiya Based in your idea I added the node:title and node:body and get it working. Do you mind to move your comment as an answer so that I can accept it? –  chefnelone Mar 4 '13 at 12:20
add comment

2 Answers

up vote 4 down vote accepted

If you want to search nodes based on title alone, you can try with Node:title instead of Search:search terms in filter section and select the operator as "Contains any word"

share|improve this answer
add comment

Search API allows the indexing of multiple fields. This would allow you to search both title and body fields.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.