I hope I am simply missing something. I am trying to filter a bunch of aggregated nodes by having views search their titles and bodies for particular words. However, if I use more than 1 filter, it simply narrows the field.

So, for example, if I set node:body to "contains" "birds", and then set a second filter to "contains" "bees," the results are limited to birds and bees posts, not posts which contain either term. This seems simple, and is much like a search query. Am I missing something? If not, this seems like a worthwhile feature.

as always thanks to this wonderful community for your support

art

Comments

merlinofchaos’s picture

at this time, Views doesn't support the OR clause in filters.

merlinofchaos’s picture

Though I thought there was a 'contains any of the words' operator on those filters.

ahneill’s picture

Hi merlin, thanks for your thoughts.

It is true there is a "contains any of the words" filter, and I should tell people that are interested that after further testing this does seem to partially help with some querying, so thank you! Most importantly, it appears to filter phrases if you put them in quotes as you would a search phrase.

So this is some help, though it still falls short as follows. You still are limited to one field, ie body OR title, and can't query both fields from what I've seen so far.

I have $100 available to support anyone who can build the EITHER/OR function into views, unless there is a reason I'm missing for not having that option? Just send me a message if you're interested. Merlin, feel free to pass the challenge on to developers. If someone thinks more $ is appropriate, just make a proposal by messaging me.

thanks,

art

merlinofchaos’s picture

OR support is surprisingly difficult because of some of the core design decisions in the query/UI implementation, so unfortunately I don't think you're likely to see this in Views 1.

Views 2 is going to have some OR support because I can take advantage of the rewrite which removes a number of limitations in the design, but Views 2 is 1) quite a ways off and 2) targeted Drupal 6, not Drupal 5.

ahneill’s picture

Thanks again merlin,

I will do without then, but will look forward towards the possibility of OR filtering in the future. If anyone has an idea of how, whether external or internal to drupal, to filter through rss feeds (title and main text) for particular terms and create a new feed let me know...

thanks

art

catch’s picture

Status: Active » Closed (duplicate)

OR filters should be in Views 2.