1

Using the views module, I've created a page (view) that contains a certain content type. This page doesn't show up when searching the site.

Is this expected behavior? Is there any way to make the page show up in a search?


Instead of creating a page view, I've created a block view and added it to an actual page (content). This works in my particular case and allows the site to index the page to show up in a search. It may not be fancy but I don't have to add a module to make it happen.

Thanks to user cilefen who answered my questions and got me here.

1

To answer the first of two questions: Yes, this is the expected behavior. Views pages are not indexed by Drupal core search.

For the second, Drupal core search is limited. More is possible by using Apache Solr search integration. According to https://www.drupal.org/node/2570521, https://www.drupal.org/project/apachesolr_nan is an example of a module that may do what you need. But you would need access to a Solr server.

  • Is there a way to make a Views page indexed? Or would a workaround be to make a page and add the View as a block to it? – RarelyRed Jun 1 '16 at 20:19
  • @rarelyred that wouldn't work, as the block would not be the 'content' of the page. So it would still not index the view part of the page. – Neograph734 Jun 1 '16 at 22:12
  • Just noticed your updated question. Apparently it does work... But I guess it only indexes the page title. Not the actual views content – Neograph734 Jun 1 '16 at 22:13
  • 1
    @Neograph734 you're right - it only indexes the title and doesn't index the content but, in my particular case, that's not necessary. – RarelyRed Jun 2 '16 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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