Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
search data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2008 at 19:49 UTC
Updated:
13 Mar 2011 at 11:55 UTC
Is it possible to have the view content indexed for search and then the view itself to show up in the search results.
Currently if I search for terms that appear in a view the search result will show the individual nodes, not the view itself.
In some cases you want the nodes themselves to not show up in the search results (they are only building blocks for the view), you can do that with Restriced Search for example, and you want to see the view instead.
Comments
Comment #1
merlinofchaos commentedBecause Drupal's search index only handles nodes, this is not possible.
Comment #2
mariuss commentedI know that, but just as I asked on the Panels support request, I was hoping that either Views or a related module would implement some hooks that will add the view content to the index. Is that even possible?
Comment #3
merlinofchaos commentedI did not equivocate. Not possible means the opposite of possible, which is akin to impossible, which is akin to "Why did you make me repeat myself by re-opening this issue?"
Comment #4
merlinofchaos commentedSomeone mentioned to me via IRC that making a node with viewfield can be a basic nodewrapper and might do what you want. It's not quite the same because you won't be able to accept arguments (and for that part, there really is no solution).
Comment #5
mariuss commentedSorry for making you repeat yourself, that was not my intention. Neither to upset you.
If it is not possible to write a hook to solve this issue then we are dealing with a Drupal limitation. And this is a real problem, I guess we agree on that.
By leaving this issue open you would acknowledge the problem and bring it to other's attention. Out of sight, out of mind.
I know that this is impossible to change at this point, but it is worth bringing up. Why aren't views (and panels for that matter) just special nodes? If that was the case then I guess integrating with Drupal's search would not be an issue. Is that true?
Would it be possible to implement the next version of views and panels around nodes?
Webforms, for example, are special nodes and as a result are searchable.
Thanks for your feedback.
Comment #6
merlinofchaos commentedBecause nodes can't take arguments. Because nodes lock you in to a bunch of stuff that views don't want. Panels has the panels-nodes thing, and you'll note that it's *inferior* to pane pages, but exists for precisely the purpose you want.
Believe me, this idea has been visited and rejected. It doesn't work, and views should not be nodes. Just because Drupal's built in search system is brain-dead and thinks that nodes are the only thing on your site worth searching is immaterial. Use an alternative search system. There is solr and xapian, both of which are seeing a lot of effort. Yes, both are going to be work for you, but if it's important, that's the route you will go.
Comment #7
mariuss commentedOK, so views/panels as nodes are not a viable options, got that.
Are there any feature request filed against Drupal core to expand the search engine? Views and Panels (and I guess other modules as well) are running into serious limitations because of this.
Again, I would leave this feature open and cross references with the appropriate Drupal core issue, just to raise awareness about the issue.
Comment #8
pelach commenteddid something happen about this issue or is it still impossible?