Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.7
Component:
search data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2013 at 12:46 UTC
Updated:
12 Mar 2014 at 18:52 UTC
Jump to comment: Most recent
Comments
Comment #1
Mołot commentedAs far as I remember search index only indexes latest (aka current) revision of a given node, so the way it is now filter you ask for would not make any sence anyway.
Comment #2
gregglesBased on comment #1 marking this fixed.
Comment #3
Mołot commentedI dunno, maybe OP has some specific problem and filter like this would be legitimate for him, no matter how illogical it seems to me?
Comment #4
BrockBoland commentedNah, we kind of gave up on this and just exposed a filter on the title field instead.
But, if you're curious what I was trying to do: I have a site using Workbench Moderation, and was building a view to report on the various moderation states of nodes. With that module, you can create a new, unpublished draft on a node that is published—so, revision 123 might be published, while revision 124 is not (while a content admin works on changes to the node). I needed a view to show the details from the latest revision of each node, not the published revision, and to expose a filter to search the details of those latest revisions.
Not do-able, but we found a good-enough-for-now solution.
Comment #6
damonbla commentedHello BrockBoland, I was wondering if you could mention that good-enough-for-now solution you came up with. We are running into this problem right now (using Workbench Moderation) and can't get our views to show the unpublished drafts. It's always the published version. Thanks for any help!
Comment #7
BrockBoland commentedI honestly can't remember now, but I'm pretty sure that we just added a filter on node title instead of doing a Search Term filter.
To use the latest drafts in a view:
- Build a view using Content Revisions as the base table
- Add relationship for Workbench Moderation: Node
- Add a filter for Workbench Moderation: Current (yes)