Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 15:47 UTC
Updated:
21 Feb 2014 at 13:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerWell views just uses internally the search.module and search.module doesn't support searching in strings, but they use searching in words.
If you want people to just search in the node body you could use content: body as filter and use contains as operator, though this might be slower as the search.module query.
Comment #2
rawrzors commentedThanks,
This might be out of the scope of this issue, but do you have any idea how to resize the box created by your method?
Comment #3
dawehnerCss is the key.
Marking the issue as fixed.
Comment #5
rooby commentedJust for reference, for anyone who needs this and doesn't mind running a couple of hacked modules.
This requires:
* A hack to the drupal core search module - See the patch at #498752-19: Partial word search for Drupal 7
* A hack to views - see the patch in this post. - This patch supports search filter and argument but you can use one without the other if desired.
Comment #6
liquidcms commented#1 - won't work too well as Body is now a field and doesn't contain the full node (with other fields)
but there is a Combine Fields Filter which also lets you pick "contains" as an operator. this lets you chose which Fields to search in.
Comment #7
rooby commentedThere is also the http://drupal.org/project/computed_field module, which lets you make a fields of all the fields you want to search on and then you can filter by that field.
Comment #8
ditcheva commentedHi folks,
So does this mean that the patch in #5 will not be applied? I'm also interested in partial word searching on the 'Search Terms' filter.
Have folks found other ways of doing that? I'm wondering why this issue has been closed...
Comment #9
ditcheva commentedComment #10
rooby commentedYes, this won't be committed, because it requires a patch to drupal core in [#6001310-19] to work.
Because that drupal core patch is a change in functionality it won't get into drupal 7, but if you want to make an issue to fix it in drupal 8 (if there isn't already one) maybe drupal 8 could address this.
Comment #11
ditcheva commentedOh, ok. Thanks for responding! I may just go the Computed field filter value with a 'Contains' operand then...